Claude Code10 min read
Claude Code Hooks: Automate Your Agent Workflow
Claude Code hooks are shell commands that fire on lifecycle events — before/after tool use, session start, stop — to format code, run tests, and block risky actions.
Claude Code hooks are shell commands that fire on lifecycle events — before/after tool use, session start, stop — to format code, run tests, and block risky actions.