Strategic Context Compaction

•
113k
•

Optimizes Claude's performance by suggesting manual context compaction at logical task boundaries rather than arbitrary intervals.

The Strategic Compact skill enhances Claude Code sessions by monitoring tool usage and prompting for manual context compaction at intelligent milestones. Unlike default auto-compaction which can trigger at disruptive moments, this skill ensures that vital implementation details are preserved during critical phases while bulky research or debugging logs are cleared when they are no longer needed. It provides a structured framework for transitioning between research, planning, and execution, maintaining high response coherence and speed during long-running development sessions exceeding 200K tokens.

주요 기능

01Hook integration with Edit and Write operations for seamless workflow
02Intelligent tool-call tracking to monitor session context pressure
03112,918 GitHub stars
04Phase-aware guidance for transitioning between research and execution
05Support for manual summaries to carry over specific focus points during compaction
06Customizable activation thresholds for compaction suggestions

사용 사례

01Transitioning from intensive research and exploration to high-fidelity code implementation
02Clearing verbose debugging traces and error logs after a bug is successfully resolved
03Maintaining performance in complex, multi-phase development projects