DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to fork a built-in tool to change how it works with Raw CLI

Copy the shipped bash tool, rename it, and change its behavior for one agent.

Short answer: Run npm install -g @tlelabs/raw if Raw is not installed yet; then copy the example folder examples/tools/bash/ to ~/.config/raw/tools/my_bash/; Change the manifest id and name in the copied folder, then edit its index.mjs as needed. All steps.

Authorization notice. Raw CLI is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.

Who it is forA team lead whose agent needs a shell tool that behaves differently, such as a stricter wrapper or a team-specific default.

The problemBuilt-in tools are fixed in most harnesses, so custom behavior usually means forking the whole product.

The outcomeA local copy of the bash tool that one agent selects in place of the built-in, with the change kept in a file the team can read.

What you need first

  • Node.js 22.13+ on macOS, Linux or Windows 10/11
  • Bash for the bash tool (Git Bash on Windows, or PowerShell if Bash is absent)
  • A local model served over an OpenAI-compatible endpoint, or a hosted model with an API key
  • Comfort editing a strict JSON config file

Steps

  1. Run npm install -g @tlelabs/raw if Raw is not installed yet.
  2. Copy the example folder examples/tools/bash/ to ~/.config/raw/tools/my_bash/.
  3. Change the manifest id and name in the copied folder, then edit its index.mjs as needed.
  4. In your agent's tools.use list, replace builtin/bash with local/my_bash.
  5. Run raw --agent raw "Run the test suite" and check that the output shows your tool's behavior. (inferred, check the README)

Prompt for your agent

Using the repo lploc94/raw-cli, copy examples/tools/bash/ to ~/.config/raw/tools/<tool-name>/, change its manifest id and name, and select local/<tool-name> in the agent <agent-name>. Expected output: a successful run of one shell command through the forked tool. Verify the run output shows the forked tool name and a status line.

Caveat. The README gives the copy path and the id and name edits, but the exact contents of index.mjs are not described, so the change itself is up to you.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for lploc94/raw-cli and "Fork a built-in tool to change how it works"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer