Hooks are user-defined shell commands that execute at various points in Claude Code’s agent loop. They give you deterministic control over Claude Code’s behavior to ensure certain actions always happen at certain times.
Hooks: User-Defined Shell Commands for Claude Code Agent Control
By
–
