DirectoryProofKitNewsletterSponsor

← Directory

HOOK · xAI docs

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/hooks
Checked 2026-10-16. Read the original before installing.

By harness

HarnessStatusHow
CursoradaptedbeforeShellExecution with matcher git commit.
Claude CodeadaptedPreToolUse with if: Bash(git commit *).
Grok BuildnativeDocs: timeouts, crashes, malformed output are fail-open.
CodexuntestedUntested.
AGENTS.md genericunsupportedHarness feature.

By model family

Clauden/a
GPTn/a
Groksource
Geminin/a
"source" = the source targets it; "untested" = not verified by ProofOfDone yet.

Proof of the week

One verification pattern every week, adapted per harness and model. No spam.