PreToolUse Hooks Are a Tiny State Machine: The Four Exit Codes That Actually Matter
If you have read the Claude Code Hooks documentation, the example you remember is probably one that prints to stderr and exits 0. That example is correct, and it is where most tutorials stop. The four exit codes that decide whether your hook is safe ...
agentkit.hashnode.dev11 min read