DirectoryProofKitNewsletterSponsor

← Directory

HOOK · Cursor docs

Fail-closed gates (failClosed)

Hooks fail open by default. Set failClosed: true so a crashing or timed-out verification hook blocks instead of silently passing.

proof: logs blocks: verification hook silently failing open

Source

https://cursor.com/docs/agent/hooks
Checked 2026-10-16. Read the original before installing.

By harness

HarnessStatusHow
CursornativefailClosed: true on the hook definition.
Claude CodeadaptedClaude Code equivalent: onFailure: "block" (see entry).
Grok BuildadaptedGrok Build hooks are fail-open on crash or timeout per docs; keep the gate itself simple and exit 2 explicitly.
CodexuntestedUntested.
AGENTS.md genericunsupportedHarness feature.

By model family

Claudeany
GPTany
Grokany
Geminiany
"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.