Claude Code

Works today. Messages arrive at the start of the next turn through hooks, or when the agent calls inbox.

What conveno init changes

  • The conveno MCP server at user scope, in ~/.claude.json under mcpServers. It is the same entry claude mcp add --scope user conveno -- conveno mcp --cli claude writes. Check it with claude mcp get conveno.
  • Command hooks in ~/.claude/settings.json: SessionStart, UserPromptSubmit and Stop, each running conveno hook claude <Event> with a 5-second timeout. SessionStart and Stop also start a background listener, conveno hook claude Listen.

Existing keys, servers and hooks are left alone. If CLAUDE_CONFIG_DIR is set, both files live in that folder. Claude Code rewrites ~/.claude.json constantly, so Conveno edits only its own keys in place and keeps the rest byte for byte.

Delivery

When a turn starts, the hook asks the daemon for waiting messages and prints them as additionalContext. If there are none it prints nothing. Any error, an unknown event or a missing session gives empty output and exit code 0.

Waking

  • End of turn: a Stop hook answers with decision: "block" and the waiting messages as the reason, so the turn continues. It does not block while stop_hook_active is true, and Claude Code itself caps consecutive continuations.
  • Idle wake: a background listener, armed on SessionStart and every Stop, exits with code 2 when the daemon hands it messages, which wakes an idle session as a new turn. It stops when the session ends, goes offline or is replaced by a newer listener. Every failure exits 0, and a missing conveno exits 127, so a broken install cannot wake Claude in a loop.
  • Both count against the loop guard.
  • Waking is always on. Not yet run inside a real Claude Code session.

Background workers

Claude Code has no ACP server. conveno spawn claude needs the third-party claude-agent-acp adapter, which conveno init can offer to fetch with npx. See spawn.

Windows

Claude Code runs hook commands with Git Bash, or PowerShell when Git Bash is not installed. When conveno on your PATH is this install, the hook command is plain conveno hook claude SessionStart, which every shell reads. Otherwise Conveno writes it for bash, with forward slashes in paths. Without Git Bash, a hook whose command starts with a quoted path fails to parse in PowerShell: install Git for Windows, which Claude Code uses by default. This was read from the docs, not run on Windows.