strategic-compact

Suggest manual context compaction at strategic workflow intervals.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/Ced3-han/Harness-Settings --skill strategic-compact-ced3-han
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/Ced3-han/Harness-Settings/tree/main/skills/strategic-compact
Command: npx skills add https://github.com/Ced3-han/Harness-Settings --skill strategic-compact-ced3-han

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides manual context compaction suggestions at strategic points in your workflow to preserve context and optimize task phases.

Core Features & Use Cases

  • Manual Compaction: Suggests manual /compact commands to keep context through task phases instead of arbitrary auto-compaction.
  • Strategic Intervals: Encourages compaction after exploration, before execution, and after milestones.
  • Threshold Detection: Suggests compacting after a configurable threshold of tool calls to prevent mid-task interruptions.

Quick Start

Set up the hook for pre-tool use, then activate the strategic-compact skill in your workflow.

Frequently Asked Questions about strategic-compact

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

FAQPage Schema
How do I manage context window memory during complex code workflows?

To manage context during code workflows, you can manually trigger context compaction at strategic intervals. This preserves relevant context across task phases instead of relying on arbitrary auto-compaction that might interrupt your execution.

When should I use manual context compaction instead of auto-compaction?

Manual context compaction is best used at strategic intervals, such as after exploration, before execution, or after reaching milestones. This prevents mid-task interruptions that often occur with automatic compaction thresholds.

How do I prevent mid-task interruptions from context limits in long coding sessions?

You can prevent mid-task interruptions by triggering manual compaction after a configurable threshold of tool calls. This ensures the context is compacted at a logical breakpoint rather than unexpectedly during an active task phase.

Can I configure the context compaction threshold based on tool calls?

Yes, context compaction can be configured to trigger after a specific threshold of tool calls. This allows you to fine-tune memory management and maintain relevant context before hitting automatic limits.

What is the best way to maintain relevant context across different task phases?

The best way to maintain context across task phases is to use strategic manual compaction. By compacting after exploration and before execution, you control what context is preserved, optimizing memory usage for the next phase.