Your PreToolUse hook may not be blocking anything.
Paste your hook script and settings. Hook Guard flags exit 1 guards, start-of-command matching and hooks that let calls through when they crash, then writes a guard that blocks.
$12, once. The free version works without paying.
Everything runs in this browser tab. Nothing you paste is uploaded. Rules of thumb from public reports dated Nov 10-27, 2026. Check the current Claude Code hooks docs.
Results
Run the tool to see results here.
Price
How it works
- Paste or type your input on the left, or press Load example.
- Press "Check hooks". The work happens in this tab.
- Read the findings, then copy or download the result.
Why this exists
Hook rules fail open in quiet ways: exit 1 does not block, a crashing hook lets the call through, and "cd app && git push" slips past a starts-with check.
- "a PreToolUse guard script that exits 1 does not stop anything, the tool call still runs. Only exit 2 blocks it" — @ihendi92, 2026-11-10
- "exit 2 doesn't block in 17 of 33 Claude Code hooks" — @bonsaixbt (14 likes), 2026-11-15
- "ANTHROPIC'S OWN DOCS SAY CLAUDE TREATS IT AS CONTEXT, NOT ENFORCED CONFIGURATION. hooks are where rules become hard stops." — @0xkurt (14 likes), 2026-11-18