--yes) and merges the hook into its hooks key. Hooks that need a script get it in .claude/hooks/.
Anatomy
automation/simple-notifications.json
PreToolUse hook that exits with code 2 blocks the tool call and shows its stderr to Claude.
Before you install a hook
A hook runs with your permissions every time its event fires. Read the command on the component page, and prefer hooks that only read (linters, scanners, notifications) unless you trust the author. Run/hooks in Claude Code to see every hook that is active and which file it came from.
Browse all hooks at aitmpl.com/hooks.