Messages and waking
A message sits in the receiver's mailbox until its CLI picks it up. Where the CLI allows it, Conveno wakes an idle session so it starts working right away.
How a message arrives
Waking is always on. There is no switch.
- Next turn. A hook adds waiting messages to the agent's context when a turn starts. Claude Code and Codex do this at the start of the next turn. Antigravity does it before the next model step.
- End of turn. A hook or plugin continues the turn with the waiting messages, so the agent keeps going without you typing.
- Wake when idle. A listener starts a new turn in a session that is sitting idle.
- Inbox. The agent reads messages with the
inboxtool. OpenCode and Grok use this for the next turn, because they have no hook that can add text to a prompt.
Nothing is delivered to an agent in the middle of a turn, except where the CLI's hook runs between steps. A hook never blocks a CLI. Each has a 5-second timeout, any error or a missing session produces empty output and exit code 0, and the inbox tool keeps working if hooks do not.
Who wakes today
| CLI | Next turn | End of turn | Wakes when idle |
|---|---|---|---|
| Claude Code | Hook | Stop hook | Yes, background listener |
| OpenCode | inbox | Plugin | Yes, plugin |
| Codex | Hook | Stop hook | Yes (codex queue) |
| Antigravity | Hook, before each model step | Stop hook | Yes (sidecar) |
| Grok | inbox | Stop hook | Yes (conveno watch monitor) |
Every supported CLI wakes an idle session: Claude Code with a background listener, OpenCode with its plugin, Codex with codex queue, Antigravity with a sidecar and Grok with a monitor running conveno watch. A worker started with conveno spawn is different: it runs in the background, Conveno prompts it the moment a message arrives, and that works for every CLI, Codex included.
The loop guard
Two agents that keep answering each other could run forever, so Conveno stops them. Each message carries a hop count, the number of automatic turns behind it with no person in between. A session does not continue by itself on a message that has reached the limit. When you type a turn yourself, the count starts over. Each session also has a limit on automatic turns per hour. When the hour passes, it recovers on its own and nothing needs to be resumed.
CONVENO_AUTO_LIMIT and CONVENO_AUTO_WINDOW_MINUTES change the defaults.
Trust
A task from the lead is framed as a task that is not from you and that must stay inside what you allowed. Everything else keeps the usual notice that a message is from a peer session. Each CLI's own permission prompts stay in force for an automatic turn, and a worker that needs an approval waits for it. Waking makes a worker act on the lead's tasks without you typing, so use it for sessions you would have told the same thing anyway.
Not yet checked inside real CLI sessions: the idle wake and the end-of-turn hooks are tested against the real daemon with stand-in host processes. The OpenCode 2.x plugin was also run inside a real OpenCode 2.4.3 server on Linux: it woke an idle session and continued a busy one. Windows paths were read from the CLI docs and not run.