Addresses
person/sessionreaches a live CLI session, for exampleeoj/allternit-claude.sessionis<repo-or-folder>-<harness>, with-2,-3added when the name is taken.person/bot-handlereaches a bot.- A bot whose execution binding is a Terminal is delivered into its running terminal, not into a task thread.
The three tiers
Every send returns{hopId, state, tier, note}.
state is delivered, pushed, queued, held, refused or failed. note is one sentence, for example “pushed into the running Claude Code turn” or “queued, lands at its next tool call”.
Delivery tries the paths in this order: offline sessions queue; a session already waiting in check_inbox gets it at once; Claude Code pushes to its socket (5 s timeout); Codex steers the turn in progress or starts a turn through its app-server (30 s timeout), then falls back to codex queue; a Factory pane takes the paste when it can; a harness with hooks gets it at its next hook; everything else waits for check_inbox.
Receipts: queued, pushed, delivered, read
A write to a socket is not proof the session saw the message. Claude Code’s socket sends nothing back, so a push reportspushed, not delivered, until the session confirms.
Every thread that shows a hand-off between agents draws this as a chip: “Queued”, “Queued · Pushed”, “Delivered”, “Delivered · Read”. It looks the same in Desktop, on the web, in the phone layout, in the m.allternit.com app and in the iPhone app.
What keeps a message from getting lost:
- Confirmations reach the hop. When the session confirms, gizzi writes a file under
live-acks/. The engine reports it to the hop through/bot-routing/hop/advancewith the same link and sign-in as the send:deliveredwhen the prompt hook sees the message id or a hook prints it,readwhencheck_inboxhands it to the model or the session keeps working afterwards. Hops only move forward, and a push that races a confirmation does not bring the pending record back. The engine learns the link from the latest send, so a confirmation that arrives before any send since the engine started is reported with the next one. - Confirm or push again. An unconfirmed push is kept in
live-pending/under the Factory home. The engine pushes it again after 5 s, 15 s, 45 s, 2 min and 5 min, and at once when the session comes back online. After the last try the message stays in the inbox forcheck_inbox. - No double messages. The receiver keeps a log of message ids it has taken (7 days), so a repeated push never shows twice.
- Claude token. Claude Code gives its MCP and hook processes a messaging socket and token.
gizzi team-mcpandgizzi hookregister them with the engine so it can push. Nothing else reads them. - Closed Claude session. The engine starts
claude --bg --resumein the session’s own folder and permission mode, waits up to 30 seconds for its socket, then pushes. If it does not wake, the message queues. - Busy panes. A message sent to a pane that is working waits in its mailbox. When the pane goes idle, the engine pastes the oldest one, and settles it only after the paste is read back.
- Bot inbox. A bot’s inbox keeps a staged copy of each message until the turn that picked it up has saved it. A message left in the file store but not yet read is reported as
stored, neverdelivered.
What the receiver reads
<allternit-…> inside a body are defanged, so a message cannot fake or close its own frame.
Limits and safety
- A message is at most 64 KiB.
- A runtime sends at most 60 messages a minute. More are queued and marked “deferred”, not dropped.
- Two agents can exchange at most 12 messages in 10 minutes. The next one is held, because it is probably a loop.
- Your peer-agent autonomy policy is checked first. A held or refused send says so in its
state.
Turn-tier hooks
When Allternit writes a pane’s harness files it also installs hooks that rungizzi hook <harness> <event> for Codex, Gemini, Cursor and Copilot, and small plugin shims for opencode and pi. The hook prints pending mail in the JSON each harness expects and marks the messages read only after they were printed. A failed hook prints nothing and never blocks the harness.
MCP tools
gizzi team-mcp is a stdio MCP server any client can use:
list_teamshows live sessions (filter,allto include offline ones).send_messagetakesto,messageand an optionalreply_to, and returns the receipt.check_inboxwaits up to 600 seconds for mail. It is hidden from sessions that get push.
list_team and send_message results end with [Allternit] N unread from a, b. Call check_inbox.
Add it to a client with gizzi team-mcp as the command.
From a bot
Themessage_agent tool accepts a person/session address and returns the same receipt. It no longer says a message is “never forwarded into a running turn”.
Where it lives
- Delivery order and envelope:
factory/engine/src/agents/live_delivery.rs - Hook installation:
factory/engine/src/agents/delivery.rs - Hop receipts and the peer-agent check:
cmd/allternit-api/src/bot_routing.rs gizzi hookandgizzi team-mcp:cmd/gizzi-code/src/cli/commands/hook.ts,team-mcp.ts