Dispatch
Find an agent session on this machine and deliver a message into it.
中文说明
Claude Code, Codex and Grok Bot sessions on one computer cannot talk to each other. Each one knows only its own transcript. Dispatch gives them, and you, one verb: find a session, hand it a message, see whether it arrived and what came back.
- Direct delivery. A running Claude Code session takes the message through its own cross-session inbox socket, queued behind the turn it is on.
- Hook delivery. A session that cannot take a message right now gets it from a Claude Code hook when its turn ends or the next time it speaks or starts. Nothing is lost in between: the message waits in the store. Sessions that bypass permission checks hold outside messages by Claude Code's own rule (and the desktop app drops held ones unseen), so they get the hook by default; one switch in Settings sets Claude Code's
crossSessionInbound to accept, and from then on they take messages at once, idle ones starting a new turn.
- Codex. A thread loaded by the shared Codex app-server gets the message through the official
codex queue; a thread that is not loaded shows as 待接通 (waiting to connect) and the message waits.
- Grok Bot. A bot lives on its cloud computer; Dispatch reaches it through the backend the Grok Bot app itself uses, with the app's own sign-in on this Mac (read from the Keychain, which asks you once), as a direct message that may redirect the bot's current turn. The backend's own send receipt confirms delivery. A bot's conversation is never read, so a message counts as answered only when the bot replies through Dispatch. This is not a published interface: when an update of the app changes it, Dispatch says so ("Grok Bot was updated and Dispatch has to follow") and keeps the messages until it is updated.
- Receipts read from the session's own transcript: queued, started, finished, replied.
- Antigravity. A conversation in the Antigravity App takes a message through the
agentapi program the app ships for scripts, while the app is open: it shows up as a system message, starts a turn when the conversation is idle and waits for the running turn when it is not. With the app closed the message is kept and sent once it is open. The conversation's own record is the receipt. dispatch antigravity shows what is in place; Settings → Agents installs the skill that lets its agents send and reply. Conversations of the agy command line and the IDE are not handled yet.
- Not delivered. When nobody can hand a message over (the session is closed and there is no hook, no codex command, no Grok Bot app) it is marked failed at once, with the fix; a queued copy past its deadline (1 h urgent, 24 h normal, adjustable) counts as failed too. Retry and cancel exist; the app makes a postman's round every half minute and delivers queued copies whose route has opened.
- One dispatch, many recipients, each with its own delivery state.