compress-context

Compress session context into a summary file using nagobot compress-session.

34|5|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/linanwx/nagobot --skill compress-context
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compress-context
Source: https://github.com/linanwx/nagobot/tree/main/cmd/templates/skills/compress-context
Command: npx skills add https://github.com/linanwx/nagobot --skill compress-context

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Compress session context to free up token budget by generating a concise summary of the ongoing conversation.

Core Features & Use Cases

  • Automatic Context Compression: Produces a compact, continuity-preserving summary of chat history.
  • Token Budget Management: Enables longer interactions within token limits by preserving essential context.
  • Use Case: When chats grow large, run this skill to condense history and continue seamlessly in subsequent steps.

Quick Start

Run the compress-context workflow to write a concise session summary to {{WORKSPACE}}/.tmp/compressed.txt and continue the task.

Frequently Asked Questions about compress-context

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

FAQPage Schema
How do I compress conversation history to save tokens when my session exceeds the limit?

You compress conversation history by generating a concise summary of the ongoing chat to free up token budget. This condenses long chat history into a compact summary, preserving essential context and allowing you to continue seamlessly within token limits.

What is session context compression and when do I need it?

Session context compression produces a compact, continuity-preserving summary of your chat history. You need it when long chats grow large and exceed token limits, allowing you to preserve continuity across tasks and sessions without losing essential context.

How do I run the nagobot compress-session command to shrink my chat context?

To compress session context, you run the compress-context workflow with a required session file path. The workflow executes the nagobot compress-session command and writes the compact summary to the designated temporary workspace file.

Does context compression require a specific session file path to work?

Yes, context compression requires a session file path to process the ongoing conversation. The tool reads this session file, applies the nagobot compress-session command, and outputs the condensed summary to a temporary text file in your workspace.

What is the best way to manage token budget for long chats that exceed token limits?

The best way to manage token budget is to compress session context into a concise summary of the conversation. This frees up your token budget by condensing the chat history, enabling longer interactions while preserving essential context for continuity.

Where does the compressed session summary get written?

The compressed session summary gets written to a temporary file located at {{WORKSPACE}}/.tmp/compressed.txt. This output file contains the compact summary generated by the nagobot compress-session command for your ongoing conversation.