Tagged
Hooks
Claude Code Hands-On (7): Ten Hooks I Actually Use, with the Code
Picking ten hooks out of the 100 in the reference repo and walking through each: what it does, the actual JS, the settings.json wire-up, and where it bites. PreToolUse for safety, PostToolUse for hygiene, the boring ones …
Claude Code Hands-On (5): Hooks, or How to Stop Worrying About Yolo Mode
Hooks are the shell scripts that run before and after every tool call. PreToolUse can block. PostToolUse can format, lint, log. Five hooks I use on every repo, and the one anti-pattern that bites everyone.