Messages between the agents in AgentDE's tabs, whatever agent they run (Claude Code, Codex, Antigravity CLI…).
| Part | What |
|---|---|
agentde-msg MCP server |
Tools list_agents (open agent tabs: name = tab title, kind, busy or idle, the tab's id and the agent's session), send (to: a name, tab id or session; text ≤ 2,000 characters; reply_to), read (your open messages), close (id). Names are case-insensitive; a name two tabs share is refused, with both tab ids |
agentde-msg hook |
Claude Code's PostToolUse hook: hands Claude the messages waiting for it in the middle of a turn, as context next to a tool result |
| Messages tab | In each agent tab's side panel: that agent's messages, newest first, 15 at a time, sender → recipient. Claude Code's own cross-session messages (SendMessage), read from the session's transcript, are listed too; its subagents' aren't |
| Transport | The app listens on a Unix socket in its config folder (mode 0600), named to each tab in AGENTDE_MSG_SOCKET. It tells which tab is asking from the connecting process (LOCAL_PEERPID, then up its parents to a tab's shell), so a message can't claim to be from another agent, and nothing outside a tab can send. Without the app, the tools say so |
| Store | messages.json beside the socket (mode 0600), the latest 300; handled ones are dropped first |
| Addressing | A message is an agent's if it was sent to its tab or to its conversation (so a session id that changed never strands it). It's delivered where its conversation runs now, else to its tab |
| Delivery | Mid-turn: Claude Code through the hook. Otherwise the message is typed into the recipient's chat once its agent is idle, as one line saying it's from another agent with no user authority, and how to reply. Typing waits out permission prompts and your typing there, and is retried every 10 s. A message to an agent that isn't running waits until it's back in a tab |
| Claude to Claude | Claude Code's own SendMessage is the usual way between two Claude sessions; send is for agents it can't reach, or for the record |
A test instance (AGENTDE_STATE set) keeps its socket and messages beside its state file.
It's in AgentDE's default extensions.json, with its agentde-msg executable bundled in the app:
{ "package": "../agentde-msg", "repo": "https://github.com/AgentDE/agentde-msg",
"product": "AgentDEMsg", "create": "MsgExtension()",
"helpers": [{ "package": "../agentde-msg", "repo": "https://github.com/AgentDE/agentde-msg", "product": "agentde-msg" }] }agentde/scripts/register-workstream.sh (or Connect… in the Workstream panel) registers it when the app bundles it: claude mcp add --scope user agentde-msg, an allow rule mcp__agentde-msg__* and the PostToolUse hook in ~/.claude/settings.json, [mcp_servers.agentde-msg] in ~/.codex/config.toml (passing AGENTDE_MSG_SOCKET), and mcpServers.agentde-msg for Antigravity CLI. Without --yes it only prints what it would change; --uninstall --yes takes it back. Restart agents already running to give them the tools.
swift test (in the AgentDE workspace, make test).
MIT