What problem does it solve?
Auto-compaction triggers at arbitrary points during Claude Code sessions, often mid-task, which discards critical context, breaks multi-step workflows, and ignores logical phase boundaries in your work, leading to lost progress and reduced output quality.
Core Features & Use Cases
- Dual-signal suggestion system: Combines context size (scaled to your model's token window) and tool call count to trigger compaction prompts only when relevant, avoiding unnecessary interruptions.
- Phase-aware guidance: Includes a decision table to help you identify optimal compaction points, such as after research, post-milestone, or before switching to unrelated tasks.
- Configurable thresholds: Adjust tool call limits, context size triggers, and reminder intervals to match your workflow and model window size.
- Use Case: For long development sessions, multi-phase projects (research → plan → implement → test), or when switching between unrelated tasks, this skill ensures you compact exactly when it won't disrupt your work, preserving relevant context for the current phase.
Quick Start
Activate the strategic-compact skill to receive timely suggestions for manual context compaction during long or multi-phase work sessions.