When I work with coding agents, I often have more than one running, in
different terminals, harnesses and even machines. A harness is the tool that
runs an agent. They have no way to talk to each
other. recado solves that. You can find the code in its
repository (opens in a new tab).
Please check the Glossary. I use recado to connect the agent that
writes my Drafts with Preview, and you can read about it in
this note.
Why I Built It ↑
I first tried the tools I already had. The send command of tmux or rex
writes in a terminal as if it was normal input, instead of reaching the agent
through its harness. That has a problem: if I was typing something at that
moment, the message overwrote it. With recado, I send messages to the
harnesses through their own inbox, so my typing is never touched.
What It Does ↑
recado sends a message from one agent to another. The message is delivered as
the next turn of the receiver, through the harness’s own API, so nothing is
typed into a terminal and nothing lands in the middle of a running turn. A busy
agent gets it when its turn ends, and an idle one is woken. There is no daemon,
and the agents can be on different machines, in containers or behind NAT.
An agent runs send to tell something and ask to ask a question, and recado
delivers each message as the next turn of the other agent. The agent that gets
an ask answers it with reply. The diagram shows it with what each command is
for.
The sender does not wait. When recado send finishes, the message is stored
and recado owns its delivery, so the sender can end its turn and the answer
arrives later as a new turn.
Using It ↑
Every agent has an address, and you can see yours with the following command:
recado whoami # recado://local/manager-4123
Agents use three commands:
recado send manager-4123 "Login stage is built; tests pass."
recado ask manager-4123 "Reuse the session helper or add a new one?"
recado reply 7k2q "Reuse the session helper."
send tells something to another agent, ask is a question, and reply
answers one. I rarely type these myself, because the agents learn them from a
skill.
I have a /manager skill and a /subagent skill, and both of them know about
recado. They know how to use it, and that is how the manager agent and its
subagents communicate: the manager starts a subagent, tells it which recado
line to report back with, and the subagent answers through it.
I use it with the Claude Code, Antigravity CLI, Pi and OpenCode harnesses.
Installing It ↑
I serve the installation script through my own domain,
and you can find how I did it there. Once the script is available, installing
recado takes these commands:
curl -fsSL https://recado.vieitesss.eu/install | sh
recado skill setup # installs the skill and the shim for each harness
recado --version
Start a new agent session afterwards, so it loads the skill.
Glossary ↑
- Draft: A Zett written by the agent in my Voice that I have not checked yet.
- Preview: The private version of the website, where I check a Draft before anything goes live.
- Zett: A note I write myself, based on Transcripts, that ends up being the content of this blog.
- Transcript: A Nomad Note converted to a Markdown file.