Context compaction loses CLAUDE.md guidelines
Resolved 💬 2 comments Opened Jan 21, 2026 by orlinkata Closed Jan 23, 2026
Description
After conversation compaction (when context runs out and gets summarized), Claude loses project-specific instructions from CLAUDE.md.
Observed Behavior
After compaction, Claude forgot:
Co-Authored-Byshould NOT be added to commits (project rule in CLAUDE.md)- Output for Azure DevOps must be in Markdown format
The compaction summary captured the task progress but lost the behavioral rules from CLAUDE.md.
Expected Behavior
CLAUDE.md guidelines should be preserved across compaction, either by:
- Including key CLAUDE.md rules in the compaction summary
- Re-reading CLAUDE.md after compaction
- Flagging critical rules separately from conversation history
Environment
- Claude Code CLI
- Windows 11
- Git Bash terminal
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗