What problem does it solve?
Systematic workflow for debugging Claude Code hooks to diagnose and fix issues where hooks aren’t firing, producing wrong output, or behaving unexpectedly.
Core Features & Use Cases
- Check Outputs First (Observe Before Editing): verify logs and outputs across CLAUDE caches to identify discrepancies.
- Verify Hook Registration: ensure hook events are registered in settings (SessionEnd, PostToolUse, UserPromptSubmit) and global scopes.
- Check Hook Files Exist: verify shell wrappers and compiled bundles exist for hook execution.
- Test Hook Manually: simulate hook invocations with example payloads to validate behavior.
- Check for Silent Failures: diagnose detached spawn patterns and add temporary logging to surface errors.
- Rebuild After Edits: rebuild hook bundles after changes to apply updates.
Quick Start
Follow the hook debugging workflow to identify failing hooks, verify registration, test manually, and rebuild to restore correct execution.