HN
Python utility package for building Claude Code hooks
A Python utility package for building Claude Code hooks with minimal boilerplate.
Claude Code hooks are custom scripts that run at specific points during Claude Code's execution. They allow you to:
Building Claude Code hooks involves repetitive boilerplate:
claude-hook-utils handles all of this, letting you focus on your validation logic.
Extend this class and override the hooks you need:
JSONL-based logging for easy debugging. Logs are organized by namespace (plugin name).