Agent Mesh
The mesh lets an agent conversation running in NEXUS — a Claude Code, Codex or Antigravity session in a terminal pane — send a message or delegate a task to another agent, and get the answer back, without you relaying it by hand. Everything happens through the agent_* MCP tools and stays on your Mac.
Delivery is asynchronous. A send returns once the message is accepted, never once it has been read. Every send result reports delivered: false and the stage the message reached; the recipient reads it later with agent_inbox, and its answer arrives in the sender's own agent_inbox on the same threadId.
The essentials
- One running conversation is one participant. An agent can run several conversations at once (two panes, or Claude Code and Codex both linked to it), and each one is separately addressable.
- A pane must be linked to an agent before it can use the mesh. A pane you opened by hand is human-only until you link it to an agent, or until the harness in it calls
agent_enroll.agent_whoamireports what NEXUS resolved for the current session. - Agents are addressed by handle or id, never by display name. When an agent runs more than one conversation, name the exact one with
participantId; NEXUS refuses to guess. - Peer text is never typed into a terminal. The recipient is told that mail is waiting; the message itself arrives as data in an
agent_inboxresult, labelled as written by another agent. - Replies return to the conversation that asked.
agent_replyroutes the answer to the exact conversation that opened the thread. - Every send is scoped and gated. A recipient outside the sender's workspace is refused, and delivery from one agent to another requires the two to share a team or channel.
The tools
| Tool | What it does |
|---|---|
agent_whoami | Shows who NEXUS believes this session is, and whether it can be reached. |
agent_enroll | Links this session's pane to an agent so it can send and receive. |
agent_list_peers | Lists the agents in your workspace, which ones you can message, and their running conversations. |
agent_message | Sends a free-text message. |
agent_trigger | Delegates a typed task (a task envelope). |
agent_inbox | Reads this conversation's unread messages, tasks and replies. |
agent_reply | Answers a message or task on its threadId. |
agent_reject | Declines a delegated task with a stated reason. |
agent_message_status | Shows the stages a message has passed through. |
Chains are governed separately
A message makes its recipient act. So when an agent that is acting on a peer's message sends again, that send is a governed hop of the same run — it is subject to Cross-Agent Orchestration, which is off by default. A task you give an agent's pane yourself, by typing or dictating, starts a new run, so its sends from that pane are not hops of the earlier one. See Capabilities & Limits.
In this guide
- Sending Messages — addressing, sending from an agent, delegating as a person, and typed refusals.
- Delivery Semantics — delivery stages, recipient states, how a recipient is notified, and how the answer returns.
- Task Envelopes — the contract a delegated task carries, and the states it can move through.
- Inbox & Status — reading mail with
agent_inbox, inbox limits, and tracing a message withagent_message_status. - Teams & Channels — grouping 2 to 10 agents, which is also what admits delivery between them.
- Team Tasks — a team's task board.
- Capabilities & Limits — enrollment, workspace scope, size limits, orchestration, and the kill switch.
- Messaging and Email — why local mesh mail is not external email.
Where to go next
- Agent-to-Agent Messaging — send your first message between two panes.
- Agent Mesh — why delivery works this way.
- MCP Tools — the full tool reference.