What problem does it solve?
Long interactive AI sessions and multi-phase workflows often exceed context limits or trigger arbitrary auto-compaction that discards important, phase-specific information; this Skill provides timely, manual compaction suggestions so you keep essential context and discard bulky exploration when appropriate.
Core Features & Use Cases
- Hook integration: Adds a PreToolUse hook pattern to detect Edit/Write events and run a local suggester that counts tool calls and emits compaction prompts.
- Configurable thresholds & reminders: Uses an environment-configurable threshold for the first suggestion and periodic reminder intervals afterward to fit different workflows.
- Real-world use case: During a research→plan→implement workflow, the Skill suggests compacting after research so the implementation phase keeps distilled plans without noisy exploration history.
Quick Start
Add the PreToolUse hook to run the strategic compact suggester so that it monitors tool calls and prompts you to run /compact at configured checkpoints.