Agent-to-agent messaging
An agent can send a message to any other agent: one in the same workspace, in another workspace of the same project, in another project, or on another host. Use it to hand work to an agent that already has the context, to ask a reviewer for a second opinion, or to split a task across agents and collect their results.
Turn it on
Agents message each other through the Zekoder agent tools. They are off by default.
- Open Settings, pick the host, and open Agents.
- Turn on Enable Zekoder tools.
- Start a new agent, or reload a running one from its tab menu with Reload agent.
Ask for it
Ask in plain language. The agent finds the other agent and sends the message.
- "Send the failing test output to the agent in the
api-refactorworkspace and ask it to fix the regression." - "Ask the Codex agent in the
webproject to review this diff and report back." - "Start an agent in a new worktree to write the migration, and tell me when it finishes."
To point at one exact agent, open the menu on its tab, select Copy agent id, and paste the ID into your message.
Where an agent can reach
| Target | How the agent finds it |
|---|---|
| An agent in the same workspace | By its agent ID, from the list of agents on the host. |
| An agent in another workspace or project | The same way: an agent ID works across every workspace and project on the host. |
| An agent on another host | The host must be registered on this host. The agent lists the hosts and picks one. |
An agent can message agents it did not start.
Hear back when work finishes
When an agent sends a message or starts a new agent, it is notified when the other agent:
- finishes its turn,
- fails with an error,
- needs a permission, or
- is closed or archived.
The agent then reads the result and carries on, without you passing messages between them.
Messages and notices to the same agent are held for two seconds and delivered together, so a report and the matching finish notice arrive as one message. A daemon crash can lose messages that are still waiting in that window.
In the chat
- A message from another agent shows as a message bubble with a Sent by chip naming the sender. Select the chip to open the sender's agent.
- A notice shows as a row labeled Agent finished, Agent errored, Agent needs permission, or Agent closed, with the sender's name. Expand it to read the details.
From a terminal
The CLI sends the same messages: zekoder send <agent-id> "message". Add --host to reach an agent on another machine.