Claude Code follows CLAUDE.md about 80% of the time, and that number drops as the file grows. Treat it as an instruction budget — how to spend it, and when to graduate a rule into a hook.
Your CLAUDE.md is too long — and that's why Claude Code ignores it