AI Agents & Systems
What a Claude Code Hook Actually Does, and Why That Matters
A hook is not a stronger instruction to the model — it is a shell command the harness runs whether or not Claude agrees. That mechanical fact is what makes hooks solve real engineering problems, and exactly what makes them a documented attack surface.