Claude Code ignores repository instructions after compaction
Long sessions work fine until auto-compaction kicks in, then the agent starts violating CLAUDE.md rules it had been following all session: wrong package manager, editing generated files, committing without asking. The rules are still on disk; it just stops consulting them.
Claude Code6 repliesProblem8h ago