[BUG] Claude keeps forgetting about the context in CLAUDE.local.md after compacting
Environment
- Platform (select one):
- [X] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other:
- Claude CLI version: 0.2.106
- Operating System: MacOS 15.2
- Terminal: Terminal App
Bug Description
I have some generic guidelines for Claude in CLAUDE.local.md, a .gitignored file in project's directory. One of them instructs it about using docker to run the tests of my app.
Steps to Reproduce
- Prepare CLAUDE.local.md file with specific instructions
- Run a session until auto-compact
- Ask Claude to do something for which those instructions would've been necessary
Expected Behavior
After a sessions gets autocompacted, Claude Code forgets about that, and I have to keep reminding it.
Actual Behavior
I would like to see Claude have the CLAUDE.local.md file in memory at all times.
Same Problem here. THe whole CLAUDE.md stuff seems to need a redo.
Confirmed. I have been forced to remind Claude to read claude.md for two months. Depending on the auto-compact timing, Claude can at times even ignore the analysis and summary. Not meaning to conflate different issues, but the chat initialization does seem to need an overhaul.
Yes, this is one of the very few really annoying bugs. Limits the professional usage. It forgets the slash functions, too. CC is still the best, though:)
This is a tough one to constantly deal with. Trying to catch it after each compact and tell it to reread claude.md and related rules is a big challenge.
THIS is a general problem on all platforms. And it is really annoying to be forced to decide to loose project context or coding regulation context. or remember to instruct the LLM to re read claude.md. 24 * 100$/month customer.
FIX this. gemini-cli does not have this issue.