DirectoryProofKitNewsletterSponsor

← Directory

HOOK · Cursor docs

Cursor stop hook follow-up loop

When the agent loop ends, a stop hook can re-run checks and return followup_message to submit another turn automatically. loop_limit caps iterations (default 5).

proof: tests run countproof: logs blocks: agent stops before checks pass

Source

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

By harness

HarnessStatusHow
Cursornative.cursor/hooks.json -> hooks.stop with a command.
Claude CodeadaptedUse a Stop hook with exit 2 instead.
Grok BuildadaptedStop does not block in Grok Build; use PreToolUse on commit.
CodexuntestedUntested.
AGENTS.md genericunsupportedHarness feature.

By model family

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