This is a reference guide for Claude's hook system, which lets you intercept and modify agent behavior at specific points like before tool execution, after prompts, or during session starts. You write hooks as shell scripts that call TypeScript handlers via tsx, reading JSON input from stdin and outputting whether to continue or block. It's most useful when you need guardrails on what tools Claude can use, want to inject context at session boundaries, or need to log agent actions. The pattern is clean but requires understanding the event lifecycle. If you're building a Claude workflow that needs programmatic control over agent decisions rather than just prompt engineering, this is how you do it.
npx skills add https://github.com/parcadei/continuous-claude-v3 --skill hooks