brainclaw + Roo Code

Native Roo rules with integrated workspace MCP.

brainclaw writes rules natively into .roo/rules/ and configures workspace MCP in .roo/mcp.json. Roo Code gets instant access to your project's shared memory — active constraints, cross-agent claims, and known traps — enabling it to coordinate with other agents working on the same codebase.

Install via Roo Code

Paste this prompt directly into Roo Code and let it handle the setup.

Please run: npm install -g brainclaw && brainclaw init

This sets up brainclaw for Roo Code, writes .roo/rules/brainclaw.md, and configures .roo/mcp.json.

Auto-setup

Run one command. brainclaw detects Roo Code and writes its native files automatically, including .roo/rules/brainclaw.md.

npm install -g brainclaw && brainclaw init

Detection: ROO_* env vars.

What gets generated

After running brainclaw init, these files are created or updated:

  • .roo/rules/brainclaw.md
  • .roo/mcp.json
  • .brainclaw/

MCP integration

brainclaw configures MCP in .roo/mcp.json, giving Roo Code dynamic access to workspace context via MCP tools.

bclaw_work - open a session and claim scope in one call
bclaw_context - ranked prompt-ready context
bclaw_create / bclaw_update - capture decisions and traps, evolve plans
bclaw_release_claim - close the claim and write a handoff

Ready to install?

npm install -g brainclaw && brainclaw init