Codex
Works today. Messages arrive at the start of the next turn through hooks, or when the agent calls inbox.
What conveno init changes
- An MCP server table
[mcp_servers.conveno]in~/.codex/config.toml, withcommand,argsending inmcp --cli codex, anddefault_tools_approval_mode = "approve". - Command hooks in
~/.codex/hooks.json:SessionStart,UserPromptSubmitandStop, each runningconveno hook codex <event>with a 5-second timeout.
The approval mode applies to the conveno server only. With Codex's default, it asks before any tool that is not read-only, and codex exec cannot ask, so it blocks the call. approve stops the question for Conveno's tools, which only exchange messages between your own sessions. No other server and no global approval policy is touched. A mode you already set on the server is kept.
The adapter edits the TOML as text, appending or removing its own table, so comments and everything else stay byte for byte. Codex's own home variable CODEX_HOME is not read: Conveno uses ~/.codex.
Trust the hooks
Codex runs a new or changed hook only after you trust it. conveno setup offers (default yes) to approve Conveno's hooks for you through Codex's app-server, and only those: Codex records it in hooks.state in ~/.codex/config.toml, which is backed up first, and conveno uninstall removes it. If you decline, or it fails, open /hooks in Codex, review the hooks and trust only the ones that run conveno hook codex. Delivery at the next turn starts after that. Until then the inbox tool still works.
Delivery
The hook asks the daemon for waiting messages and prints them as additionalContext for both events. It prints nothing and exits 0 when there is no session, no messages or any error.
Waking
- End of turn: a
Stophook withdecision: "block"continues the turn with the waiting messages. Codex keeps continuing whilestop_hook_activeis true, since nothing could wake it later, and the loop guard bounds it. - Idle wake: when a message arrives for an idle Codex session, the daemon runs
codex queue --thread <thread id> --message <text>. Codex starts the queued message as a turn by itself, as if you had typed it. The thread id is the hook's session id, so sessions that share one Codex app server stay apart. If your Codex has noqueuecommand, Conveno falls back silently and the message arrives at the end of the turn. Codex has no way to set the thread title from outside, so it keeps its own.
Background workers
Codex has no ACP server. conveno spawn codex needs the third-party codex-acp adapter, which conveno init can offer to fetch with npx. A background worker is woken the moment a message arrives, which the hooks cannot do for Codex yet. See spawn.
Windows
Codex runs hook commands through %COMSPEC% /C. When conveno on your PATH is this install the command is plain. Otherwise it is written for cmd.exe with forward slashes and quotes around words with spaces. Read from the docs and source, not run on Windows.