···1919cat <<EOF
2020{
2121 "decision": "block",
2222- "reason": "${escaped}\n\n[Stop Hook] Tests failed. Assess whether these failures are related to changes you made this session - if not, mention them to the user and stop."
2222+ "reason": "${escaped}\n\n[Stop Hook] Tests failed. If failures are from your changes, fix them. If unrelated (might be caused by another instance of Claude Code), mention them and stop. If you already asked the user a question that determines how to fix this, wait for their answer."
2323}
2424EOF
2525exit 2
+1-1
.claude/hooks/stop-typecheck.sh
···1919cat <<EOF
2020{
2121 "decision": "block",
2222- "reason": "${escaped}\n\n[Stop Hook] Typecheck failed. Assess whether these errors are related to changes you made this session - if not, mention them to the user and stop."
2222+ "reason": "${escaped}\n\n[Stop Hook] Typecheck failed. If errors are from your changes, fix them. If unrelated (might be caused by another instance of Claude Code), mention them and stop. If you already asked the user a question that determines how to fix this, wait for their answer."
2323}
2424EOF
2525exit 2