Tagged

Safety

Apr 20, 2026 Claude Code Hands-On 5 min read

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.