brainclaw + Cline

Persistent rules and VS Code MCP for autonomous agents.

brainclaw writes persistent rules under .clinerules/ that survive across Cline sessions and configures VS Code MCP settings so the agent can query live workspace state. This means Cline respects your project's constraints, avoids claimed files, and follows coordination protocols without manual briefing.

Install via Cline

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

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

This sets up brainclaw, writes .clinerules/brainclaw.md, and configures .vscode/cline_mcp_settings.json.

Auto-setup

Run one command. brainclaw detects Cline and writes its native files automatically, including .clinerules/brainclaw.md.

npm install -g brainclaw && brainclaw init

Detection: CLINE_* env vars.

What gets generated

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

  • .clinerules/brainclaw.md
  • .vscode/cline_mcp_settings.json
  • .brainclaw/

MCP integration

brainclaw configures MCP in .vscode/cline_mcp_settings.json, giving Cline 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