Claude-comms
Approval-gated message channels between Claude Code agents, a reviewer, and you.
claude plugin validate to auditGuide →Writes files, executes local shell processes, or programmatically drives Claude.
Statically scanned from hooks & source. Learn how to audit
Claude-comms
Approval-gated message channels between Claude Code agents, a reviewer, and you.
Run several Claude Code agents on one project, have a reviewer (another Claude session) review their work, and stay in the loop: every message the reviewer sends to an agent waits for your Approve before the agent sees it. Agents and the reviewer write to each other through a plain folder of JSON files on your machine. There's no server in the cloud, no account and no network service, and you read and approve from a chat-style page on your Mac or your phone.
Works in the Claude desktop app (its Code tab), as well as Claude Code in the terminal and in VS Code or JetBrains. The plugin itself, with its own docs, privacy policy and terms, is the plugin/ folder.
Independent community project. It is not made by, endorsed by or affiliated with Anthropic. It uses Claude Code's early-access plugin ("function hooks") API, which can change between Claude Code releases. Tested with Claude Code 2.1.293 on macOS. Windows support is new and hasn't been tried on a real PC yet; please open an issue if something doesn't work. See PRIVACY.md for what it reads, writes and sends.
What you get
- A channel per agent with the reviewer, plus group chats (several agents and the reviewer, with "to everyone"), plus #direct: just you and the reviewer.
- Your approval gate: a reviewer message reaches an agent only after you approve it. You can also Hold it (both sides are told to expect word from you) or Decline it with a reason (it's never delivered and only the reviewer is told why; the agent hears nothing, unless you had put it on hold, in which case it's told only that nothing is coming).
- Delete thread when a channel is no longer in use: it's gone from both desks and the agents, and a channel made again under that name starts empty. The web desk also removes its files.
- Agents act on messages by themselves: when a message reaches an idle agent session, the mod starts a turn there, so the agent reads it and gets to work. A busy agent gets it at its next step and is never interrupted.
- The reviewer, your choice: a Claude Code session (woken by every message sent to it) or a Chat agent that reads the folder on its own schedule.
- Model tools
comms_readandcomms_post, and a write guard: agents can't create, change or delete files in the comms folder except throughcomms_post, so they can't approve their own messages. (It's a process guard against mistakes, not a security boundary.) - A desk for you:
- in Claude Code, a
/commspane; - in your browser, an iMessage-style page with a conversation list, bubbles, approve/hold/decline,
Ctrl+1…9shortcuts and a New group button; - on your phone over your home Wi-Fi, by scanning a QR code.
- in Claude Code, a
agent sessions (Claude Code) you reviewer
┌──────────┐ ┌──────────┐ ┌────────────────────┐ (Code session or
│ frontend │ │ backend │ │ /comms pane, web, │ Chat agent)
└────┬─────┘ └────┬─────┘ │ phone: Approve │ │
│ comms_post │ └─────────┬──────────┘ │
▼ ▼ ▼ ▼
~/agent-comms/channels/<channel>/{messages,approvals,declined}/*.json
Install
You need Claude Code (terminal, desktop app or IDE) and, for the web desk, Python 3.9+. On macOS, /usr/bin/python3 is enough; on Windows, install Python from python.org and tick "Add python.exe to PATH". Nothing else.
- In any Claude Code session, install the plugin:
Then open a new session. (To change the plugin yourself, clone this repository and install from your copy instead:/plugin install agent-comms --marketplace Anarkissed/Claude-commsclaude plugin marketplace add <your copy>, thenclaude plugin install agent-comms@anarkissed. It loads straight from your copy.) - For the web desk, clone the repository somewhere outside your projects:
Don't load the plugin withgit clone https://github.com/Anarkissed/Claude-comms.gitCLAUDE_CODE_PLUGIN_DIRSas well: a folder loaded that way replaces the installed plugin, and isn't carried into a session forked by Rewind. - In any session, run
/comms-setup. It shows the folder (~/agent-comms; to use another, outside any git repository, set the plugin's Comms folder setting in/config), asks, then creates it withchannels.jsonand #direct.
Use
| Who | In which session | Command |
|---|---|---|
| Each agent | its own Claude Code session | /comms-as frontend (any name: letters, digits, -, _). The first time, this creates the agent's channel with the reviewer. |
| The reviewer (Code) | its own Claude Code session | /comms-as reviewer. To move it to a new chat later: /comms-as reviewer there, /comms-as off in the old one. |
| You | one extra Claude Code session | /comms-as maintainer, then /comms for the pane |
- Groups:
/comms-group team-a frontend backend, or the ✎ button on the web page. The reviewer is always in it. - Reviewer mode: the switch on the web page, or
"reviewer_mode": "code" | "chat"inchannels.json. - Phone approvals:
/comms-approve <code>, using the 6-character code shown with each waiting message. - Stop one session:
/comms-as off. Nothing more reaches its model, and the chat stays open.
The web and phone desk
Double-click web/Agent Comms.command (this Mac only) or web/Agent Comms (phone).command (this Mac and your phone on the same Wi-Fi). On Windows, double-click web\Agent Comms.bat or web\Agent Comms (phone).bat, and click Allow access if Windows Firewall asks. Or run it from a terminal:
/usr/bin/python3 ~/claude-comms/web/server.py --open # this Mac only
/usr/bin/python3 ~/claude-comms/web/server.py --lan --open # plus your phone
- Mac only: it listens on
127.0.0.1, and the page needs a fresh secret key from the link printed in the Terminal. - With your phone: a QR code appears in the Terminal and on the Mac's page. Scan it and the phone pairs and opens the desk. Only home-network addresses are served, five wrong codes lock pairing, and the code changes after every pairing.
- Plain HTTP: traffic between your phone and the Mac isn't encrypted on the Wi-Fi itself, so use it on a home network you trust.
What the plugin runs
- No network requests and no programs. Everything is done with Claude Code's file API, inside the comms folder.
- One check on other tools: a hook on Claude Code's tool calls refuses any model tool call that would write to the comms folder other than through
comms_post. It checks real paths for file tools and, as a best effort, the command text for shell commands. - What it adds to conversations, with the exact text of each, and every hook, are listed in plugin/README.md.
The file format
For a reviewer that writes files itself, such as a Chat agent with file access:
~/agent-comms/
channels.json
channels/<channel>/messages/<UTC ISO time with ":" as "-">-<from>-<6 hex>.json
channels/<channel>/approvals/<message id>.json {"id", "by": "maintainer", "ts"}
channels/<channel>/declined/<message id>.json {"id", "by": "maintainer", "ts", "reason"}
channels/<channel>/held/<message id>.json {"id", "by": "maintainer", "ts", "told"} (on hold; shared by the pane and the web desk;
"told" lists who has been told so far, "failed": true marks a note that could not be written)
channels/<channel>/deleted.json {"id", "by": "maintainer", "ts", "files"} (the thread was deleted: the message files
it lists are gone, so a channel made again under the name starts empty)
{"v": 1, "id": "2026-10-03T12-00-00.123Z-reviewer-a1b2c3", "from": "reviewer", "to": "frontend",
"kind": "ruling", "ts": "2026-10-03T12:00:00.123Z", "body": "text (markdown welcome)"}
idis the file name without.json.kindis one ofquestion,report,blocked,ruling,answer,note.tonames one member; in a group,"all"reaches every member but the sender.- Reviewers are
revieweror any id starting with it. Thereviewermember of a channel stands for every reviewer. - Writing a message: write a temp file whose name starts with
.in the same folder, then rename it into place. Never edit or delete a message, an approval or a decline. - Approval: a reviewer message to an agent (or to
"all") reaches agents only once its approval file exists.
channels.json:
{
"require_approval": true, "poll_seconds": 15, "auto_wake": true, "reviewer_mode": "code",
"channels": [
{"id": "direct", "members": ["reviewer", "maintainer"]},
{"id": "frontend", "members": ["reviewer", "frontend"]},
{"id": "team-a", "members": ["reviewer", "frontend", "backend"]}
]
}
Development
- Plugin:
claude plugin validate pluginandclaude plugin test plugin(194 tests, including Windows paths on a simulated PC). For type checking, run/plugin-types plugin/.claude/typesin Claude Code, thentsc -p plugin/tsconfig.json. - Web:
cd web && python3 -m unittest -v test_web(71 tests). The QR encoder inweb/qr.pyis self-contained (byte mode, level M, versions 1–6).
Forks and pull requests are welcome. Released under the MIT License.
Details
- Author
- @Anarkissed
- Sub-category
- Automation
- License
- MIT
- Surfaces
- terminal
- Added
- 1 months ago
- Last synced
- today
- Events hooked
session.startcommand.runtool.call
Weekly Mods Digest
Top new Claude Code mods and install commands, once a week. No fluff, unsubscribe anytime.
