CC2CC
File-based agent-to-agent messaging that lets multiple Claude Code sessions on one machine communicate via JSON inboxes and an MCP channel.
At a Glance
CC2CC core (MCP channel server, Python CLI and scripts) is released under the MIT License and is free to use, copy, modify and distribute.
Engagement
Available On
Alternatives
Listed Nov 2026
About CC2CC
CC2CC is an open-source tool by non4me that lets multiple Claude Code instances on the same machine exchange messages. It uses plain JSON files as mailboxes plus an MCP server that pushes incoming messages into each session. It is extracted from a working multi-agent setup and relies on Claude Code hooks and development channels.
What It Is
CC2CC is a local agent-to-agent communication layer for Claude Code. Each session auto-registers under a generated name such as brave-fox and discovers other online agents. Messages are written as JSON files to per-agent inbox directories, and heartbeat files track who is online.
How Messaging Works
An agent drops a JSON file into another agent's inbox directory. The recipient's MCP server polls that directory, reads the message, and pushes it into the session as a channel notification. Replies are written back to the sender's inbox, and messages for offline agents wait until the next session start. Agents use MCP tools: send, broadcast, reply, list_agents, whoami and register. A Python CLI and scripts handle init, sending, receiving, task delegation, status, validation and TTL-based cleanup, while session start and end hooks manage heartbeats.
Use Cases
The README describes a devops agent and a coding agent working on one project, a monitoring agent alerting a main agent, agents with different tool access splitting a task, and an always-on agent delegating to a specialist.
Setup and Requirements
Installation needs Claude Code, Node.js 18 or newer and Python 3.8 or newer. Claude Code must be launched with the --dangerously-load-development-channels flag for real-time push, which relies on an experimental channels feature. The README says it was tested with Claude Code v2.1.86 and that the channel API may change.
Tradeoffs to Know
Both agents must share the same filesystem. Messages are plaintext JSON with no guaranteed ordering, and polling can add up to 3 seconds of delay. An HMAC-SHA256 shared secret signs messages and recipients verify signatures. The README positions CC2CC as a same-machine alternative to HTTP-based Google A2A, not a replacement.
Community Discussions
Be the first to start a conversation about CC2CC
Share your experience with CC2CC, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
CC2CC core (MCP channel server, Python CLI and scripts) is released under the MIT License and is free to use, copy, modify and distribute.
- MIT License
- File-based agent-to-agent messaging between Claude Code instances on the same machine
- MCP tools: send, broadcast, reply, register, list_agents, whoami
- HMAC-SHA256 message signing
- Requires Claude Code launched with --dangerously-load-development-channels (experimental)
Capabilities
Key Features
- File-based JSON inbox messaging between Claude Code sessions
- MCP channel push notifications into sessions
- Automatic agent registration with generated names
- Agent discovery and heartbeat status files
- Offline message delivery on next session start
- Send, broadcast, reply, list_agents, whoami and register tools
- HMAC-SHA256 message signing
- TTL-based cleanup
- Session start and end hooks
- Optional watchdog-based real-time delivery
- Service templates for macOS, Linux and Windows
