Feature Request: Auto-read CLAUDE.md after context compaction

Resolved 💬 5 comments Opened Dec 19, 2025 by NahumKorda Closed Feb 28, 2026

Feature Request

After context compaction (summarization), Claude Code should automatically re-read the user's CLAUDE.md file before taking any action.

Problem

Currently, rules in CLAUDE.md can include instructions like "After any context compaction, re-read this file before taking any action" - but Claude does not reliably follow this instruction. The model forgets to do so after compaction.

Proposed Solution

Add a built-in behavior that automatically re-reads ~/.claude/CLAUDE.md (and project-level CLAUDE.md) after any context compaction event, ensuring user-defined rules are always applied.

Alternatives Considered

  • Adding the rule to CLAUDE.md (unreliable)
  • Using hooks (no post-compaction hook exists)

Additional Context

This would make CLAUDE.md rules more reliable across long sessions where compaction occurs.

View original on GitHub ↗

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