Grok Build PreToolUse commit gate
PreToolUse is the only blocking event in Grok Build: exit 0 allows, exit 2 denies. Match the shell tool on git commit and deny unless a fresh passing test artifact exists.
proof: tests run countproof: CI artifact blocks: done claim lands in repo without passing tests
Source
https://docs.x.ai/build/features/hooksChecked 2026-10-16. Read the original before installing.
By harness
| Harness | Status | How |
|---|---|---|
| Cursor | adapted | beforeShellExecution with matcher git commit. |
| Claude Code | adapted | PreToolUse with if: Bash(git commit *). |
| Grok Build | native | Docs: timeouts, crashes, malformed output are fail-open. |
| Codex | untested | Untested. |
| AGENTS.md generic | unsupported | Harness feature. |
By model family
| Claude | n/a |
| GPT | n/a |
| Grok | source |
| 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.