Optimizes Claude Code context management by suggesting manual compaction at logical task boundaries to prevent data loss.
Strategic Context Compaction is a specialized Claude Code skill designed to replace unpredictable auto-compaction with human-in-the-loop efficiency. By monitoring tool call counts during complex tasks, it provides non-intrusive reminders to use the /compact command at critical phase transitions—such as moving from research to implementation or after reaching a major milestone. This approach ensures that essential project context is preserved during multi-step operations while keeping the token window lean and responsive for better AI performance.
主要功能
01Prevents arbitrary context loss during complex operations
02Strategic phase-based guidance (Research vs. Execution)
030 GitHub stars
04Seamless integration via PreToolUse hooks
05Intelligent tool call tracking for session monitoring
06Customizable usage thresholds for compaction reminders
使用场景
01Transitioning from exploratory research to active code implementation
02Maintaining token efficiency during long-running multi-file refactoring sessions
03Clearing debugging overhead after resolving a complex issue