compact-context

Capture session state into a checkpoint file and compact conversation history.

2|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/softwaresalt/agent-intercom --skill compact-context
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compact-context
Source: https://github.com/softwaresalt/agent-intercom/tree/main/.github/skills/compact-context
Command: npx skills add https://github.com/softwaresalt/agent-intercom --skill compact-context

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses the limitation of context windows in AI models by preserving essential session information and reducing the conversation history to free up valuable working space.

Core Features & Use Cases

  • Session State Capture: Creates a structured checkpoint file of the current session's state, including active tasks, modified files, decisions, and open questions.
  • Context Compaction: Reduces the conversation history to reclaim context window space, allowing for longer or more focused interactions.
  • Resumption Point: Enables seamless continuation of work by providing a detailed checkpoint file that can be loaded into a new or compacted session.

Quick Start

Invoke the skill to compact the current context.

Frequently Asked Questions about compact-context

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

FAQPage Schema
How do I save AI session state before compaction?

To save AI session state before compaction, capture active tasks, modified files, decisions, and open questions into a checkpoint file. This preserves essential context and creates a resumption point before reclaiming context window space.

What is context compaction in AI coding sessions?

Context compaction is the process of reducing conversation history to reclaim context window space. It allows for longer or more focused interactions by summarizing or removing older messages while preserving key session details.

How do I free up context window space without losing session history?

Free up context window space by creating a structured checkpoint file of active tasks and modified files, then compacting the conversation history. This approach retains essential information while reducing the active context footprint.

When should I checkpoint my conversation history?

Checkpoint your conversation history when the context window approaches its limit. Creating a checkpoint file ensures that active tasks, key decisions, and open questions are safely stored before reducing the conversation history.

Can I resume an AI coding session after compacting the context?

You can resume an AI coding session after compacting by loading the previously generated checkpoint file. This file contains the structured session state, enabling seamless continuation of work in a new or compacted session.

Does context compaction re-read modified files?

Context compaction does not re-read modified files. It gathers active tasks, key decisions, and open questions directly from the existing conversation context to build the checkpoint file efficiently.