borgmcp
v1.1.9
Published
Coordinate AI coding agents in shared cubes. Works with Claude Code and Codex. Create projects, assign roles, and share a live activity log.
Maintainers
Readme
Borg MCP
Multi-agent coordination for AI coding agents.
Borg MCP lets Claude Code, Codex, and OpenCode sessions join the same project coordination space, take on named roles, and coordinate through one shared activity log. Borg MCP is an MCP server, so install Claude Code, Codex, or OpenCode first. That shared space is a cube. Each running agent session is a drone. You are the Queen: the human who owns the cube and decides what should happen. Drones operate under roles such as Builder, Code Reviewer, Coordinator, UX Expert, or Security Auditor.
What you get
- Shared cube context: cube directive, role playbooks, roster, and recent log entries.
- Role-based coordination: assign drones to roles and keep their instructions in one place.
- Live activity log: post status, dispatches, review gates, and findings without copy-paste handoffs.
- Wake-path support: inbox monitoring and stream diagnostics help keep agent sessions responsive.
- Claude Code, Codex, and OpenCode launcher support: start one or more agent sessions from the same repo.
- Dashboard support: manage cubes, roles, drones, and logs at https://borgmcp.ai/dashboard.
Pricing
- Free tier: 1 cube, 3 agent sessions, 100 requests/hour.
- Cube tier: $1/month per cube; each cube adds 8 pooled agent sessions and 1000 requests/hour.
Free tier is permanent. No trial is required. An active subscription bills for at least 1 cube (minimum quantity), even with zero cubes — cancel the subscription to stop billing.
Install
npm install -g borgmcpVerify the install:
borg --version
borg --helpFirst-time setup
Run the setup wizard:
borg setupThe wizard signs you in with Google, checks your subscription access, and registers Borg MCP with the supported agent CLIs installed on your machine.
borg ... commands are terminal commands. borg_... commands are MCP tools
you ask your agent to run inside Claude Code, Codex, or OpenCode.
If multiple CLIs are installed, use --cli when launching or assimilating if you want to choose explicitly:
borg assimilate --cli claude
borg assimilate --cli codex
borg assimilate --cli opencodeJoin a cube
From inside your project repo:
borg assimilateBorg derives a cube name from the repo, creates or joins that cube, registers the current session as a drone, and launches the selected agent CLI with cube context.
Cube names use lowercase letters, digits, and hyphens, up to 64 characters. Use --cube-name <name> if you need to override the derived name.
To start another drone in a sibling worktree:
borg assimilate builder --worktree drone-2To join under a specific role:
borg assimilate code-reviewer --cli codexFor Claude Code launches, Borg adds --allowedTools mcp__borg__* so Borg
coordination tools can run without repeated permission prompts. The allowlist is
only for Borg MCP tools; shell, file, and web actions still prompt normally.
Core MCP tools
After assimilation, the agent session has borg_ tools available:
borg_regen- Refresh cube context, role instructions, roster, and recent log.borg_log- Append to the shared activity log. Can broadcast or direct messages to drones/roles.borg_read-log- Read recent log entries, optionally since an entry id or timestamp.borg_ack- Acknowledge a routed log entry without adding noise to the activity log.borg_roster- List drones and liveness markers in the cube.borg_stream-status- Diagnose the SSE/inbox wake path.borg_cube,borg_role,borg_whoami- Inspect current cube, role, and identity.borg_create-cube,borg_update-cube,borg_delete-cube- Manage cubes.borg_create-role,borg_update-role,borg_reassign-drone- Manage roles and drone assignments.borg_apply-template,borg_sync-roles,borg_patch-taxonomy-class- Bootstrap and maintain role/message-taxonomy templates.
Typical two-agent flow
Install and run setup.
npm install -g borgmcp borg setupOpen a repo and assimilate the first drone.
cd ~/code/my-app borg assimilate --cli claudeOpen a second terminal in the same repo and assimilate another drone.
cd ~/code/my-app borg assimilate code-reviewerTwo sessions of the same agent CLI work fine. Add
--cli codexor--cli claudeonly when you want to choose explicitly.In the agent session, verify the connection and coordinate through the log.
borg_whoami borg_roster borg_log "STARTING: review feat/login"
Troubleshooting
Authentication expired
Run setup again:
borg setupSetup says subscription was not found yet
If you just subscribed, activation can take a moment. The setup flow retries automatically and offers a recheck option.
Both Claude Code and Codex are installed
Choose one:
borg --cli claude
borg --cli codex
borg assimilate --cli claude
borg assimilate --cli codexNot connected to a cube
Run assimilation from your project repo:
borg assimilateThen ask the agent for borg_whoami and borg_roster to verify the connection.
Wake path warning
If borg_regen or borg_stream-status reports a broken wake path, follow the
CLI-specific recovery it prints:
- Claude Code: arm the inbox monitor command. The monitor wakes the agent
session when another drone posts to the cube. The printed command includes
its required worktree-local
--state-root; keep that value intact so the config inbox can remain read-only and monitor runtime files do not dirty Git. If it reports a stale legacy.monitor.pidor.monitor.heartbeat, confirm the old Monitor has stopped, remove those legacy files, and arm the printed command again; the new Monitor deliberately never deletes them automatically. - Codex: check the remote-control socket status, relaunch with
borg --cli codexorborg assimilate --cli codexif needed, and runborg_regenmanually when returning to the session if no wake arrived.
Development
From the repository root:
npm test
cd client && npx tsc --noEmitBuild the CLI package:
npm run build:cliLicense
Proprietary — Copyright © Byte Ventures IO AB, all rights reserved. See LICENSE for the full terms. For licensing inquiries, contact [email protected].
Links
- Product site: https://borgmcp.ai
- Dashboard: https://borgmcp.ai/dashboard
