Stop hook test gate
A Stop hook runs your test command. Exit 2 (or decision: block with a reason) prevents the agent from ending its turn, so it keeps working until the check passes.
proof: tests run countproof: logs blocks: agent stops before checks pass
By harness
| Harness | Status | How |
|---|---|---|
| Cursor | adapted | Cursor's stop hook cannot block but can return followup_message to auto-continue (loop_limit default 5). See the Cursor stop-loop entry. |
| Claude Code | native | Configure under hooks.Stop in .claude/settings.json. |
| Grok Build | adapted | In Grok Build PreToolUse is the only blocking event (docs.x.ai hooks). Gate git commit with PreToolUse instead. |
| Codex | untested | No hook equivalent found in the cited Codex docs. |
| AGENTS.md generic | unsupported | Hooks are harness features, not AGENTS.md. |
By model family
| Claude | source |
| GPT | n/a |
| Grok | n/a |
| Gemini | n/a |
Sponsor slot: your verification tool here, one sponsor per week. Details
Proof of the week
One verification pattern every week, adapted per harness and model. No spam.