Claude
3 minutes
Hooks run your own commands at fixed points in the agent's lifecycle, enforcing formatting, tests, or policy that a prompt-level instruction cannot guarantee.