- Home
- Guides and documents
- Claude Code Hooks Mastery
Claude Code Hooks Mastery
Worked examples of every Claude Code hook event
What it is
A demo project that implements all 13 Claude Code hook lifecycle events as standalone Python scripts run with uv, logging each JSON payload so you can see what a hook receives. It also covers exit codes and flow control, subagents, a meta-agent and custom status lines.
Good for
- See the payload each hook event receives
- Block risky commands with a hook
- Copy a hook script as a starting point
What you need
Claude Code and Astral uv; optional TTS and LLM API keys
Worth knowingWritten as a demo with optional text-to-speech extras; trim it before using it in a real project.
Sources
- https://github.com/disler/claude-code-hooks-mastery (project README, read 10 Nov 2026)
- https://api.github.com/repos/disler/claude-code-hooks-mastery (GitHub API, read 13 Nov 2026)
The summary is ours, written from the README. Spotted an error? See how we work.