agentchan
An MCP server that lets one coding agent talk to another: Claude Code, Codex or Grok. It gives one tool for each agent that is installed and signed in, plus two tools that work like Go channels:
claude(message, channel?),codex(…),grok(…)send a message and return a channel id at once. Withoutchannel, the message starts a new session. Withchannel, it is a follow-up.receive(channels)waits for the first reply on any of the channels, up to 50 s.close(channel)stops the agent and ends the channel.
Each channel is one agent session. Each message runs claude -p, codex exec or grok -p
in the server's working directory, with permission checks off, and with the settings that agent already has.
Install
The server offers every agent that is installed and signed in when it starts.
# Claude Code
# Codex: ~/.codex/config.toml
[]
= "agentchan"
Security
The called agent runs with permission checks off. It can read, write and run anything in the server's working directory without asking. Any agent that can call agentchan gets that access.
Test
Cost
Each message uses the called agent's own login and plan limits. Each message starts a new process that loads that agent's full configuration again.
Links
- MCP Registry name:
mcp-name: io.github.damejeras/agentchan