add-compact

Implement a manual /compact command to summarize and condense conversation history.

1|21|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/arnaudjnn/nanoclaw-railway --skill add-compact-arnaudjnn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-compact
Source: https://github.com/arnaudjnn/nanoclaw-railway/tree/main/.claude/skills/add-compact
Command: npx skills add https://github.com/arnaudjnn/nanoclaw-railway --skill add-compact-arnaudjnn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill prevents long-running conversations from becoming unmanageable by providing a command to intelligently summarize and condense the conversation history.

Core Features & Use Cases

  • Context Compaction: Reduces the amount of historical data the AI needs to process, improving performance and relevance in extended dialogues.
  • Preserves Session State: Unlike a hard reset, compaction summarizes context, allowing the conversation to continue seamlessly.
  • Use Case: In a multi-day debugging session, use /compact to keep the most critical information at the forefront without losing the thread of the conversation.

Quick Start

Type /compact in the main group to initiate context compaction.

Frequently Asked Questions about add-compact

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

FAQPage Schema
How do I reduce conversation history length in a long AI session?

To reduce conversation history length, you can use a manual compaction command that intelligently summarizes past interactions. This condenses the historical data the AI processes, improving performance while keeping the session active.

What is context rot and how does compaction prevent it?

Context rot occurs when extended AI conversations become unmanageable due to excessive history. Compaction prevents this by archiving the transcript and replacing it with a summarized context, ensuring the dialogue continues seamlessly without degradation.

How do I preserve session state when clearing conversation context?

Preserving session state during context clearing requires summarizing the conversation rather than executing a hard reset. This compaction approach retains the critical information at the forefront, allowing the session to continue seamlessly.

Can I authorize context compaction for specific senders in an AI assistant session?

Yes, context compaction can be authorized exclusively for the main group or trusted and admin senders. This security measure ensures that only designated users can trigger the conversation history summarization process.

When should I use a context compaction command during a debugging session?

You should use a context compaction command during multi-day debugging sessions when historical data overwhelms the AI. It keeps the most critical information at the forefront without losing the thread of the conversation.

Does conversation compaction archive the original transcript before summarizing?

Yes, conversation compaction archives the full transcript before summarizing the context. This ensures the original dialogue is preserved securely while the active session continues with a condensed and optimized history.