Claude Code hooks explained: config structure, matchers, and a copy-paste PreToolUse guard
Anthropic's Claude Code supports hooks—deterministic shell commands or HTTP endpoints that fire at fixed points in a session to block, allow, or reshape actions. A developer explains the configuration…