brainclaw + OpenCode

AGENTS.md plus live MCP for terminal-first workflows.

brainclaw reuses the standard AGENTS.md format for OpenCode and adds workspace MCP via opencode.json, enabling OpenCode to query live coordination state. This gives terminal-first workflows the same shared memory and constraint awareness as IDE-based agents.

Install via OpenCode

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

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

This sets up brainclaw for OpenCode, reuses AGENTS.md for instructions, and writes opencode.json for MCP access.

Auto-setup

Run one command. brainclaw detects OpenCode and writes its native files automatically, including AGENTS.md.

npm install -g brainclaw && brainclaw init

Detection: OPENCODE_* env vars or ~/.config/opencode.

What gets generated

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

  • AGENTS.md
  • opencode.json
  • .brainclaw/

MCP integration

brainclaw configures MCP in opencode.json, giving OpenCode 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