STACKS
As of +30 days +90 days +1 year
how-anthropic-works-with-claude-code c7
checked on 18 Nov 2026
valid until 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

Address

stacks.jakubdudek.com/how-anthropic-works-with-claude-code/c7
In a document: [[how-anthropic-works-with-claude-code#c7]]
JSON