About
Context Compactor is a specialized utility designed for Claude Code to manage high-volume sessions that approach token limits. It employs an intelligent preservation strategy that distinguishes between 'must-keep' data—such as architectural decisions and unresolved bugs—and 'discardable' data—such as verbose logs and stale search results. By scoring message importance and validating coherence post-compaction, it ensures that Claude remains efficient and context-aware without hitting memory boundaries, making it essential for complex, multi-stage development tasks where session longevity is key.