strategic-compact

Summarize session context and list modified files for compaction.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When a session’s context window fills up, important tasks, decisions, and constraints can be lost amid excessive data such as full file contents, search results, and intermediate reasoning.

Core Features & Use Cases

  • Preserves active task lists, key decisions, modified files, current working context, user constraints, and discovered gotchas.
  • Discards full file contents, search results, completed tool output, intermediate reasoning, and resolved error messages.
  • Provides a step‑by‑step compaction strategy: summarize accomplishments, list modified files, note open issues, and record the next steps.

Quick Start

Ask the agent to compact the session by summarizing achievements, listing modified files, and noting key decisions in a concise markdown block.

Frequently Asked Questions about strategic-compact

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

FAQPage Schema
How do I reduce large session contexts without losing key decisions and tasks?

You can compact the session by applying a strategy that discards non-essential content like full file contents and intermediate reasoning, while preserving active tasks, decisions, constraints, and modified files in a concise summary.

When should I compact a session context window?

You should compact a session context window when it is near full, after many file reads, or when transitioning between major subtasks to prevent losing important constraints amid excessive data.

What specific information is preserved during session context compaction?

During session context compaction, the process preserves active task lists, key decisions, modified files, current working context, user constraints, and discovered gotchas while discarding resolved error messages and completed tool output.

What is the best way to summarize achievements before transitioning between major subtasks?

The best way to summarize achievements is to generate a concise markdown block that lists modified files, notes open issues, records next steps, and preserves key decisions to trim excess context.

Does context compaction discard full file contents and search results?

Yes, context compaction discards full file contents, search results, completed tool output, intermediate reasoning, and resolved error messages to free up space while retaining essential working context.