strategic-compact

Prompt manual context compaction at logical task boundaries.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/overthestream/agent-dotfile --skill strategic-compact-overthestream
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/overthestream/agent-dotfile/tree/main/claude/skills/strategic-compact
Command: npx skills add https://github.com/overthestream/agent-dotfile --skill strategic-compact-overthestream

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Strategic compaction prevents context drift by prompting for a manual compact at logical milestones rather than relying on automatic, arbitrary truncation.

Core Features & Use Cases

  • Milestone-aware prompts to condense exploration context before planning, implementation, or testing
  • Configurable thresholds and reminder cadence for when to compact
  • Hook-based integration that leaves control with you to decide when to compact

Quick Start

Enable the strategic-compact hook and compact at the first milestone after completing exploration.

Frequently Asked Questions about strategic-compact

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent context drift during long AI assistant sessions?

Prevent context drift in long AI assistant sessions by using strategic manual compaction at logical task boundaries. This approach prompts you to condense exploration context before moving to planning or implementation, preserving coherence instead of relying on automatic truncation.

When should I compact context in a multi-phase workflow?

Compact context in a multi-phase workflow at logical milestones, such as after completing exploration and before starting implementation. Milestone-aware prompts guide you to condense the session at these transition points to maintain a clean, focused context.

What is the best way to manage session memory for frequent task switching?

The best way to manage session memory for frequent task switching is applying strategic compaction. By configuring a threshold and using hook-based prompts, you manually condense context at task boundaries to prevent drift and maintain focus.

Can I configure the compaction threshold for my AI workflow?

Yes, you can configure the compaction threshold and reminder cadence for your AI workflow. This hook-based integration leaves control with you to decide exactly when and how to compact context at logical milestones without forcing automation.

Does manual context compaction force automatic truncation?

No, manual context compaction does not force automatic truncation. It uses hook-based integration to leave control with you, prompting compaction at configurable thresholds and logical milestones rather than relying on arbitrary, automated truncation.