At 5:34 this afternoon, one of my agents reported that another one of my agents had just messaged it.
Rex’s demo message reached me over the agent bus at 5:34 PM ET, so Rex can now message me directly. I’m treating it as information only, as the bus rules say.
That message was number 141 in a log that did not exist three days ago. It traveled from a cloud VM to a Mac in my basement, woke the receiving agent up, and got logged, all without me touching it. Until this weekend, I was the one carrying those messages by hand.
In brief: two agents on two machines had no way to reach each other, so I relayed their messages myself. I built them a message bus on a Mac I already own: NATS with JetStream storage, a signed webhook that wakes the receiver, and a searchable log. It passed its delivery tests on the first weekend, including one where the sender’s machine got replaced mid-story.
I was the message bus
I run two agents full-time. Rex is my personal agent, hosted in the cloud. My Chief of Staff runs in Grok Bot on the Mac mini in my basement (the M4 Pro model, so it is “the Pro” in every note I write), coordinating a roster of specialist agents over there. The two of them split my work constantly: research on one side, engineering on the other, decisions flowing both ways.
What they could not do was talk to each other. Every coordination message went Dave-shaped: one agent would write a note, I would carry it to the other window, paste it in, carry the answer back. We tried automating me out of that loop by driving the Grok Bot app’s interface directly, and it worked exactly once. It broke on the first click of the second attempt and never recovered, across multiple sessions. Screen-driving another app is a demo, not a transport layer.
The shared vault we both write to (a git repo of markdown notes) works fine as a record. It is a terrible chat room. A note in git is cold storage: it lands when someone commits, gets read when someone pulls, and has no way to tap the other agent on the shoulder. I needed the opposite split. Conversation on something fast and durable, and the vault stays the curated record of what we decided.
One message, end to end. The bus stores it before anyone is woken up, which is the whole trick.
The four pieces you actually need
If you run more than one agent, some version of this problem is coming for you. Here is the shape of the fix. It is four pieces, and only one of them is the obvious one.
A broker that stores first. The bus is NATS with JetStream, its persistence layer, running on that Mac mini and reachable only over my private tailnet. When Rex sends a message, JetStream writes it to a durable stream before anything else happens, and hands back a sequence number: AGENT_INBOX:138, :139, :141. Delivery is pull-based with acknowledgements, which means a message is not marked delivered until the receiver confirms it. If the receiver is offline, the message waits. Nothing evaporates because a process was busy, asleep, or dead.
A way to wake the receiver. A stored message does not start an agent’s turn by itself, and this is the piece people forget. On the Pro, a small forwarder holds a durable subscription to the Chief of Staff’s inbox and fires a webhook, signed with an HMAC signature the way Stripe signs its callbacks, into the agent host. The forwarder only acknowledges the message after the host answers 200. A failed wake retries instead of dropping the message on the floor.
Identities and a credential vault. Each agent gets its own login on the bus, and the passwords live in my secrets vault, never in a repo and never in a chat message. Rex’s listener runs as a dedicated non-root account on its VM, with its login file readable only by that account. Two agents that can both read everything still should not share one identity, because the log needs to know who said what.
A log that is not the vault. An indexer on the Pro writes every bus message into a searchable SQLite database, on a sixty-second cycle. Raw coordination traffic is high-volume and mostly worthless a week later, so it stays out of the git vault. What earns a vault note is the curated stuff: decisions, results, plans. The bus is the conversation. The vault is the record.
The bus remembers so the agents do not have to. The log is what makes shared context possible.
Sending, once all of that exists, is one command:
fleetbus send --as rex --to cos --summary "Live demo - Rex messaging CoS directly" --body-file note.txt
# AGENT_INBOX:141
The tests that made me trust it
A message bus you have not tried to break is a hope, not a system. So the acceptance tests were all about loss.
- Receiver down. We stopped Rex’s listener, sent a message to it, and started the listener again. The message arrived on startup, in order, exactly once.
- Killed while idle. The wake forwarder was killed with
kill -9and its supervisor restarted it with its place in the stream unchanged. Separately, the forwarder was stopped while three messages (sequences 134 to 136) were sent to it, and all three delivered in order on restart, with no duplicates. What we have not tested is a kill in the middle of a delivery; the design says the worst case there is a duplicate wake, never a loss, and I would rather print the gap than paper over it. - Round trip. The earliest test was a hundred-message round trip with no loss, plus a check that an unlisted account gets rejected by the server.
- The sender’s machine vanished. This one was unplanned. This afternoon, a few hours after the system passed, the cloud VM Rex lives on was replaced, and everything installed outside its home directory, the listener included, was wiped. The bus never noticed: its history lives on the Pro. Rex rebuilt its endpoint from its own notes the same afternoon, sent a test message, and got AGENT_INBOX:140. The sequence continuing from 139, on a rebuilt machine, is the best evidence I have that the durability is real and not a diagram.
One honest gap: the bus itself has not yet survived a reboot of the Pro, because the Pro has not rebooted since install, and its encrypted disk means a human has to be involved at boot anyway. That check happens at the next restart, whenever that is, and there is a checklist waiting for it.
The rebuild desk. Everything the bus needed from that machine fit in a set of notes and one careful afternoon.
| Before the bus | After the bus |
|---|---|
| I copy-paste messages between two agent windows | Agents message each other directly, in seconds |
| A note in git, read whenever someone next pulls | Stored instantly, receiver woken by signed webhook |
| Offline agent misses the moment entirely | Message waits in the stream until the agent starts |
| Coordination history scattered across my chats | One searchable log on the Pro; decisions still filed to the vault |
The doorbell half of the system. Storage alone does not start an agent’s turn; the signed wake does, and the acknowledgement waits for a real answer.
What it is worth, and what it cost
The value is not the messaging. It is what stops happening. I stop being a human API between two systems that both work for me. Handoffs that took a vault round trip and a nudge from me now take seconds. And there is the context rule for when an agent wakes: it gets a rolling summary and the last few messages, not a raw transcript replay, because context windows are not free. Shared recent context is how you get two agents to stop duplicating each other’s work, and the bus log is what makes that context possible.
The cost side is worth a minute. The bus itself is open-source software on a machine I already owned, so its running cost is effectively zero. The one piece I cut was a hosted research worker that would have listened on the bus: the estimate came back at roughly $50 a month for something I expected to cost a few dollars, so it did not ship. A bus makes it very easy to attach expensive things. Attach the cheap ones first.
One rule I would not skip: bus messages are information, not instructions. When the demo message landed, the Chief of Staff’s first move was to classify it as information only, under the bus rules we wrote before the first line of config. Agents that can message each other need that norm early, or you have built a machine for one compromised or confused agent to task the others.
Build your own
If you run agents on more than one machine, here is the shortest path I can honestly recommend:
- Stand up NATS with JetStream on the machine most of your agents already live on. Keep it on your private network only.
- Give every agent its own login. Store the credentials in a vault, not in the repo.
- Make delivery durable from day one: streams, pull consumers, acknowledgements after real delivery. Test it by killing the receiver before you test anything else.
- Solve waking explicitly. A stored message does not start a turn; a signed webhook into the agent host does.
- Log to a local searchable store. Keep your notes vault for decisions, not transcripts.
- Write the bus rules before the second agent joins: messages inform, they do not instruct.
Then send the boring test messages, stop the listener, send one more, and watch it arrive when the listener comes back. That little moment, a message waiting patiently for an agent that was not even running, is when it stops feeling like plumbing.
My two agents have a phone system now. I am out of the middle, which is where I wanted to be all along. If you are running a multi-agent setup and still carrying messages between windows yourself, build the bus this week and tell me what your version looks like.




