What Claude Code Hooks Can and Cannot Enforce

Claude Code hooks are the only mechanism that enforces rules at the process level rather than relying on model compliance. They run as shell commands before (or after) tool calls in the parent interactive session, and they can block operations the model would otherwise execute despite instructions not to.