Grok
Works today, for xAI's official grok-build CLI (binary grok). It is not the community grok-cli. Messages arrive when the agent calls inbox and, at the end of a turn.
What conveno init changes
Two files. $GROK_HOME/config.toml (default ~/.grok/config.toml, %USERPROFILE%\.grok\config.toml on Windows):
- A table
[mcp_servers.conveno]runningconveno mcp --cli grok. - A permission rule
{ action = "allow", tool = "mcp", pattern = "conveno__*" }, so the agent can call Conveno's tools without asking. A rule with more keys than those three is yours and stays.
Both tables are appended as text and the rest of the file stays byte for byte.
The second file is $GROK_HOME/hooks/conveno.json, with one Stop hook running conveno hook grok Stop. Grok loads every *.json file in that folder as a trusted global hook. Uninstall deletes the file when it only held that hook and did not exist before.
Delivery: inbox
For the next turn, messages reach a Grok session through the inbox tool. Grok's UserPromptSubmit discards the hook's output, so it cannot add context. SessionStart ignores stdout. PreToolUse and PostToolUse accept additionalContext but only after a tool has run, which is not a prompt-time hook, so Conveno does not use them.
Claude Code hooks in Grok
Grok also loads hooks from ~/.claude/settings.json by default. With the Claude Code adapter installed, Grok therefore runs conveno hook claude. That is handled: a hook delivers only to a session of its own CLI, so a Claude hook that finds a Grok session prints nothing and takes no messages. They stay queued for Grok's inbox. This was read from the docs and source and has not run, because a Grok turn needs a sign-in.
Waking
The Stop hook continues the turn with the waiting messages. It prints {"decision":"block","reason":"..."}, which Grok feeds to the model as a user message. It does this at a genuine turn end (reason end_turn); the extra fire at session end only records the end. Grok sets stopHookActive while it is continuing and ends the turn after 8 continuations; the hook still continues while it is set, because a message that arrives mid-turn is delivered at its end. Conveno's loop guard bounds the chain. The idle wake uses Grok's monitor tool: conveno init writes ~/.grok/rules/conveno.md, which tells Grok to start one persistent monitor running conveno watch <name>, and adds an allow rule for exactly that command so it does not ask. The command is plain conveno when conveno on your PATH is this install. Otherwise it is the path of a short launcher script that init writes (bin/conveno in the data folder, ~/.conveno/bin/conveno on macOS), because Grok never auto-allows a quoted command or one that starts with node; the rule names that path. If the path would need quoting, the launcher is skipped and Grok asks. Each line the watcher prints wakes Grok, and the line says whether it is a task from the lead or a peer message. Grok also gets messages after a tool call (PostToolUse) and at the end of a turn (Stop) as additionalContext. The monitor needs Grok to start it once per session; not yet run in a signed-in Grok.
What was checked
grok 1.0.92 was installed without signing in. init, doctor, a second init (no change) and uninstall ran over a file with existing content, and uninstall restored it byte for byte. grok mcp doctor completed the handshake and listed 8 tools. grok inspect lists the hook file, also with GROK_HOME set, and conveno doctor shows Grok as end of turn. Hook payloads and Windows behaviour are from the docs and source and have not run.