01 Jul 9, 2026 · 9 min read
Hooks in Claude Code - the Deterministic Layer Your Agent Cannot Skip
What hooks are in Claude Code, how blocking actions with exit code 2 works, and four practical examples: blocking commits without tests, lint after every edit, a secrets guard, and session-start context.