compress

Manually compress Claude session progress entries with a custom Python compressor module.

4|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/kimon1230/claude_extensions --skill compress-kimon1230
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compress
Source: https://github.com/kimon1230/claude_extensions/tree/main/skills/compress
Command: npx skills add https://github.com/kimon1230/claude_extensions --skill compress-kimon1230

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill allows you to manually trigger the compression of session progress entries, ensuring your context is managed even when automatic thresholds aren't met.

Core Features & Use Cases

  • On-Demand Compression: Manually initiate context compression for your Claude session.
  • Flexible Project Naming: Automatically determines the project name from session files, git remotes, or directory names.
  • Use Case: If you've been working on a complex feature and want to ensure Claude's context is optimized before proceeding, you can use /compress to force this optimization.

Quick Start

Use the compress skill to force session compression for the current project.

Frequently Asked Questions about compress

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

FAQPage Schema
How do I manually compress Claude session context before hitting automatic thresholds?

On-demand context compression bypasses automatic threshold checks by manually processing session progress entries. This mechanism optimizes Claude's context size proactively during long or complex coding sessions, preventing context bloat before limits are reached.

Why does Claude session performance degrade during complex coding tasks?

Session performance degrades during complex coding tasks because accumulated progress entries expand the context size. Manually compressing these entries optimizes the context window, bypassing the need to wait for automatic threshold checks to trigger.

Do I need Python to force context compression for my Claude session?

Yes, forcing context compression requires Python execution to run a custom compressor module. This script processes project entries, automatically determines the project name from session files or git remotes, and applies the compression to optimize context.

When should I force session compression instead of waiting for automatic optimization?

Force session compression when working on complex features and needing to ensure Claude's context is optimized before proceeding. It is ideal for proactively managing context size during long coding sessions before automatic thresholds are met.

How is the project name determined when compressing Claude session entries?

The project name is determined automatically when compressing Claude session entries by extracting it from session files, git remotes, or the directory name. This flexible naming ensures the correct project entries are processed during compression.