npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

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.

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 borgmcp

Verify the install:

borg --version
borg --help

First-time setup

Run the setup wizard:

borg setup

The 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 opencode

Join a cube

From inside your project repo:

borg assimilate

Borg 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-2

To join under a specific role:

borg assimilate code-reviewer --cli codex

For 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

  1. Install and run setup.

    npm install -g borgmcp
    borg setup
  2. Open a repo and assimilate the first drone.

    cd ~/code/my-app
    borg assimilate --cli claude
  3. Open a second terminal in the same repo and assimilate another drone.

    cd ~/code/my-app
    borg assimilate code-reviewer

    Two sessions of the same agent CLI work fine. Add --cli codex or --cli claude only when you want to choose explicitly.

  4. 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 setup

Setup 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 codex

Not connected to a cube

Run assimilation from your project repo:

borg assimilate

Then 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.pid or .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 codex or borg assimilate --cli codex if needed, and run borg_regen manually when returning to the session if no wake arrived.

Development

From the repository root:

npm test
cd client && npx tsc --noEmit

Build the CLI package:

npm run build:cli

License

Proprietary — Copyright © Byte Ventures IO AB, all rights reserved. See LICENSE for the full terms. For licensing inquiries, contact [email protected].

Links