[BUG] Claude keeps forgetting about the context in CLAUDE.local.md after compacting

Resolved 💬 8 comments Opened May 9, 2025 by siovene Closed Jan 6, 2026

Environment

  • Platform (select one):
  • [X] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • 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

  1. Prepare CLAUDE.local.md file with specific instructions
  2. Run a session until auto-compact
  3. 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.

View original on GitHub ↗

This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗