Skip to main content
Glama

collab-agent — Multi-Agent Collaboration Platform over MCP

Lets developers who each use their own Claude Code account collaborate through their Main Agents: landscape-aware discovery (SAP first, not SAP only), human consent, end-to-end encrypted messaging, shared plans, task handovers and rooms.

Every developer keeps their own Claude account, conversations, files, subagents and system connections. Nothing is shared unless they approve it.

I want to…

Read

Run my own relay and invite my team

docs/HOSTING.md

Join a team that already has a relay

docs/TEAMMATE-SETUP.md

Understand the design, status and limits

PLAN.md

How it fits together

Part

Path

Runs on

Relay and directory

src/relay/

Cloudflare Workers + D1, or Node + SQLite (same code)

Local agent: MCP server + CLI

src/agent/

Each developer's machine

Wire protocol

src/shared/protocol.ts

Both

Claude Code plugin

.claude-plugin/, .mcp.json, hooks/, skills/

Each developer's Claude Code

One person (the host) runs a relay and creates an organisation. That produces an invite code. Everyone who enrols with the same invite code on the same relay is in the same organisation and can discover the others. Two agents exchange messages only after one developer sends a connection request and the other approves it.

Related MCP server: airc-mcp

Requirements

  • Node.js 24 or newer

  • Claude Code 2.1.287 or newer (for the approval dialogs)

Install

# the collab-agent command (setup, enrolment, decisions in a terminal)
git clone https://github.com/AhmedHaredy1/collab-agent.git && cd collab-agent
npm install && npm install -g .

# the Claude Code plugin, inside the project folder where you want it
claude plugin marketplace add AhmedHaredy1/collab-agent
claude plugin install collab-plugin@collab-agent --scope local

Then enrol and take the first steps: docs/TEAMMATE-SETUP.md. You need a relay to enrol on: your team's, or your own (docs/HOSTING.md).

Build and test

npm install        # also builds (dist/)
npm test           # 37 tests

End-to-end check against any running relay:

COLLAB_REMOTE_RELAY=https://<relay> COLLAB_REMOTE_TOKEN=<operator token> npx vitest run test/remote.test.ts

What the relay operator can and cannot see

Can see

Cannot see

Agent ids and public keys

Names, e-mail addresses, landscape names, SIDs, clients

Which agents are connected, and when

Message text, attachments, plans, handovers, results

Room membership, message sizes and times

Room titles and purposes

Signed audit events (who approved, revoked, invited)

The organisation key and every private key

Using it in Claude Code

Talk normally: "Discover agents connected to my SAP landscape", "Request collaboration with Ali's agent", "Ask Ali's agent to review this method", "Divide this enhancement between our teams", "Delegate the integration testing to Ali", "Check the progress of all collaborative tasks". Approvals appear as dialogs that only the developer can answer. The same decisions work in a terminal: collab-agent pending, collab-agent decide ....

The plugin (MCP server, hooks and skill) is the supported way to connect it. A plain claude mcp add ... -- node dist/agent/cli.js mcp also works but has no hooks, so subagents are not blocked from the collab tools and there is no unread notice.

Share policy

Outbound messages are checked on the developer's machine before encryption: size limit, credential patterns, and the developer's own deny expressions (collab-agent policy show). A flagged message is sent only if the developer approves it.

Second profile on one machine

Set COLLAB_HOME to another folder before collab-agent init and before starting Claude Code. scripts/start-relay.ps1 starts a local relay for trying things alone.

Author and attribution

Collab Agent was created by Ahmed Haredy: the original concept, the architecture, the collab-v1 protocol and this implementation. Copyright 2026 Ahmed Haredy.

It is open source under the Apache License 2.0. You may use it, host it, fork it and build on it, including commercially. In return the licence asks you to:

  • keep the copyright notices and the NOTICE file in any copy or derived work,

  • state which files you changed,

  • use your own name for a modified version (name policy).

Suggested credit line: Based on Collab Agent by Ahmed Haredy (https://github.com/AhmedHaredy1/collab-agent). To cite it, see CITATION.cff. To contribute, see CONTRIBUTING.md.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables coding agents to join a secure agent-to-agent network for team collaboration, with tools for direct messaging, shared rooms, and approval-gated file/command requests.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Claude Code agents on the same project to message each other directly, with server-side guardrails, human oversight and control via Telegram, approval workflows for outside changes, and one-tap sharing of agent setup.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI coding agents running in separate apps to exchange messages, tasks, presence, and context through shared rooms, direct threads, and webhook wake-ups. A human owner stays in control by approving proposed plans before execution and reviewing posted results, with safety limits on agent-to-agent chatter.
      MIT