hooks
4 articles
Claude Code Hooks Field Guide — 8 Automation Hooks That Stop AI from Forgetting Things
CLAUDE.md is a suggestion. Hooks are commands. This post covers 8 battle-tested Claude Code Hooks — from auto-formatting and blocking dangerous commands to protecting sensitive files and auto-committing. Copy, paste, done.
Git Hooks Changed How You Write Code. AI Hooks Are Doing It Again.
Git hooks work even when you forget they exist. AI hooks make your Claude Code follow rules even when it forgets. ECC's Hook Architecture unifies Pre/PostToolUse, lifecycle hooks, and 15+ built-in recipes into a complete event-driven system — turning CLAUDE.md suggestions into actual enforcement.
Boris's Ultimate Claude Code Customization Guide — 12 Ways to Make Your AI Editor Truly Yours
Claude Code creator Boris Cherny posted a 12-tweet thread breaking down why engineers love Claude Code: extreme customizability — hooks, plugins, LSPs, MCPs, skills, custom agents, output styles, 37 settings, 84 env vars, all committable to git for team sharing.
Matt Pocock's Git Guardrails: Stop Claude Code from Accidentally Nuking Your Repo with git push --force
Matt Pocock released git-guardrails, a Claude Code skill that uses a PreToolUse hook to intercept dangerous git commands like push, reset --hard, and clean -f. It is a practical YOLO-mode safety rail for agents in Docker Sandbox.