context-compression

Compress AI conversation history and codebases to reduce token usage.

Updated Nov 13, 2025
One-click install
npx skills add https://github.com/466852675/TISHICIKU-2025 --skill context-compression-466852675
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-compression
Source: https://github.com/466852675/TISHICIKU-2025/tree/main/07-Skill%E5%BA%93/context-compression
Command: npx skills add https://github.com/466852675/TISHICIKU-2025 --skill context-compression-466852675

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires json, re, dataclasses, enum, typing, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of managing large conversation histories and codebases that exceed AI context window limits, preventing information loss and ensuring efficient AI operation.

Core Features & Use Cases

  • Context Compression Strategies: Implements various techniques like anchored iterative summarization and opaque compression to reduce token usage.
  • Tokens-Per-Task Optimization: Focuses on minimizing total tokens consumed for task completion, not just per request.
  • Use Case: When an AI agent has been working on a large codebase for hours and its context window is full, this Skill can compress the history, preserving critical information like file modifications and decisions made, allowing the agent to continue working effectively without forgetting previous steps.

Quick Start

Use the context-compression skill to summarize the conversation history to reduce token usage.

Frequently Asked Questions about context-compression

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

FAQPage Schema
How do I reduce token count when AI conversation history exceeds context window limits?

To reduce token count and fit conversation history within context window limits, you can apply anchored iterative summarization and opaque compression. These strategies preserve critical information like file modifications while mitigating artifact trail degradation.

What is anchored iterative summarization for AI agent memory?

Anchored iterative summarization is a context compression strategy for AI agent memory. It systematically summarizes conversation history to optimize tokens-per-task, ensuring functional quality is maintained through probe-based evaluation methods.

How do I compress large codebases in LLM conversation history without losing file modifications?

To compress large codebases in LLM conversation history without losing file modifications, employ regenerative full summaries. This preserves critical decisions and modifications, allowing the AI agent to continue working effectively without forgetting previous steps.

When should I trigger context compression for LLM optimization?

You should trigger context compression for LLM optimization when the AI agent's context window is full after working on a large codebase. Careful selection of compression triggers and evaluation via probe-based methods ensures functional quality is maintained.

What is the best way to optimize tokens-per-task for AI agents working on long coding sessions?

The best way to optimize tokens-per-task for AI agents is using context compression strategies like opaque compression and anchored iterative summarization. This minimizes total tokens consumed for task completion, not just per request.

Are there limitations to conversation summarization when mitigating artifact trail degradation?

Conversation summarization limitations depend on compression triggers and probe-based evaluation methods. While regenerative full summaries mitigate artifact trail degradation, careful selection is required to prevent information loss and maintain functional quality.