CLAUDE.md vs hooks vs AgentTrail: how to stop Claude Code ignoring your rules
Claude Code treats CLAUDE.md as context, not enforced configuration, so a rule written there can lose to the task in front of it. Here's what does enforce one, from permission rules to a PreToolUse hook you write yourself to AgentTrail Guard, tested on a real --force-reset.
