strategic-compact

Suggest manual context compaction at configurable tool-usage thresholds.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps manage the AI's context window by suggesting manual compaction at logical points in a workflow, preventing the loss of important information that can occur with arbitrary auto-compaction.

Core Features & Use Cases

  • Context Management: Proactively suggests /compact commands to clear the AI's memory at strategic moments.
  • Workflow Awareness: Triggers suggestions based on tool usage thresholds and periodic reminders, aligning with task phases rather than arbitrary limits.
  • Use Case: After completing a complex research phase and before starting to write a report, the skill might suggest compacting the research notes to keep the implementation plan clear.

Quick Start

Ensure the suggest-compact.sh script is configured in your ~/.claude/settings.json hooks to automatically run on PreToolUse for Edit or Write tools.

Frequently Asked Questions about strategic-compact

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

FAQPage Schema
How do I prevent AI context loss during long workflow phases?

Manual context compaction prevents AI context loss by suggesting targeted `/compact` commands at logical task intervals. This approach preserves critical information by prompting you to clear context strategically between phases, rather than relying on arbitrary auto-compaction that might drop key details.

What is manual context compaction and how does it differ from auto-compaction?

Manual context compaction is the process of intentionally clearing AI memory at logical workflow breakpoints. Unlike arbitrary auto-compaction, it tracks tool calls and prompts you to compact context only when a configurable threshold is reached, ensuring task phase continuity.

How do I set up automated context management suggestions for AI sessions?

Set up automated context management by configuring a shell script in your `~/.claude/settings.json` hooks. Attach the script to the `PreToolUse` event for `Edit` or `Write` tools so it tracks usage and suggests compaction when thresholds are met.

Can I configure the token usage threshold for context compaction prompts?

Yes, you can configure the token usage threshold for context compaction prompts. The system tracks tool calls against this configurable limit and provides periodic reminders to compact context, aligning memory management with your specific task phases.

When should I manually compact context instead of relying on automatic limits?

You should manually compact context at logical workflow transitions, such as after completing research and before writing a report. This prevents arbitrary auto-compaction from discarding important implementation plans or research notes mid-task.

Does this context management approach work without external dependencies?

Yes, this context management approach works without external dependencies. It relies solely on a configured shell script integrated into your existing settings hooks to monitor tool calls and trigger manual compaction suggestions.