Advanced
Claude Code: Hooks Deep Dive
Master the Claude Code hooks system from first principles. Learn to write security gates, feedback loops, and completion validators that enforce your standards at every lifecycle point — without relying on Claude to remember your rules.
01
Hooks Fundamentals: Lifecycle Events in Claude Code
›
02
The Configuration System
›
03
Command Hooks: Shell Scripts as Lifecycle Handlers
›
04
PreToolUse and the Permission System
›
05
Input Gates, Feedback Loops, and Turn Gates
›
06
Matcher Patterns: Precision Targeting
›
07
HTTP Hooks and MCP Tool Hooks
›
08
Prompt Hooks and Agent Hooks: AI-Powered Decisions
›
09
Session and Environment Hooks
›
10
Advanced Hook Patterns
›
11
Hooks in Skills, Plugins, and Managed Settings
›
12
Building a Complete Hook System
›