checked on 18 Nov 2026
valid until 18 Dec 2026not rechecked since 18 Dec 2026
A hook has to return code 2 for a failed test to block the completion of the task.
In the source's words
That tells the harness to block completion and sends Claude back to fix the problem
Source
ai.engineer/talks/vlfCjWuv4es-rethinking-claude-code-best-practices · T3
Find the quote on the page
Address
stacks.jakubdudek.com/how-anthropic-works-with-claude-code/c7
In a document: [[how-anthropic-works-with-claude-code#c7]]
JSON