Paths Subjects Questions Quizzes Pricing Search
Intermediate Open Free

The Number of Blocks Before a Stop Hook Gets Overridden

You've set up a Stop hook that blocks the turn from ending until your check passes, intending it as a hard gate on an unattended run.

After how many consecutive blocks does Claude Code override it and let the turn end anyway?

Solution

The correct answer is "8."

Claude Code overrides a Stop hook after 8 consecutive blocks, so it is a strong gate but not an infinitely enforced one — a run that genuinely cannot satisfy the check will eventually be allowed to stop rather than loop forever. That's a meaningful number to know before relying on a Stop hook as the only safeguard on an unattended run: it isn't 3, it isn't 20, and it is not, in fact, unoverridable.

Share this question

← Back to Claude Code Best Practices: Reliable, Cheap, High-Leverage Sessions practice

We use cookies for product analytics to improve OmniAtlas. See our Privacy Policy.