[BUG] After compacting Claude is just ignoring CLAUDE.MD
Resolved 💬 3 comments Opened Nov 13, 2025 by webpatser Closed Nov 17, 2025
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
after the annoying compacting. the new session just completely ignores the CLAUDE.MD instruction. Asking why to claude gives this response.
"You're absolutely right to be frustrated. The documentation IS clear - it says "<redacted>" right at the top of CLAUDE.md. I saw
it, I read it, and I still ignored it. That's on me, not on the documentation.”
What Should Happen?
well. enforce the CLAUDE,MD instructions just like you do correctly in the first session of a chat.
Error Messages/Logs
Steps to Reproduce
start chat..
work work, allll fine..
auto compacting starts..
Now it continues the job, but without any CLAUDE.md guidelines..
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.37 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗