add-compact

Add a manual /compact command to archive transcripts and return a new session ID.

3|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/OfirGavish/NinjaClaw-Nano --skill add-compact-ofirgavish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-compact
Source: https://github.com/OfirGavish/NinjaClaw-Nano/tree/main/.copilot/skills/add-compact
Command: npx skills add https://github.com/OfirGavish/NinjaClaw-Nano --skill add-compact-ofirgavish

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Adds a manual /compact command to compact conversation context and prevent context rot.

Core Features & Use Cases

  • Manual compaction control: allows trusted admins to trigger context consolidation without losing recent messages.
  • Session continuity: archives full transcripts before compaction and returns a new session ID to continue the conversation.
  • Access control: enforces admin-only access in non-main groups, preserving security.
  • Graceful handling: avoids killing in-flight containers and coordinates with the agent-runner for smooth operation.

Quick Start

Invoke the /compact command in the main group to begin a manual session compaction and verify that the agent returns a new session ID.

Frequently Asked Questions about add-compact

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

FAQPage Schema
How do I manually compact conversation context to prevent context rot?

You can prevent context rot by invoking a manual /compact command, which consolidates conversation context while archiving full transcripts before compaction. This ensures session continuity and returns a new session ID.

Does manual context compaction work for untrusted groups?

Manual context compaction enforces admin-only access for untrusted groups, preserving security. It applies directly to main-group self-chat and trusted groups without requiring special permissions.

Will compacting a session interrupt my active agent-runner processes?

No, compacting a session avoids killing in-flight containers and coordinates with the agent-runner for smooth operation. This ensures active processes complete gracefully while the conversation context is consolidated.

How does session continuity work after triggering conversation compaction?

Session continuity is maintained by archiving full transcripts before compaction and reporting a new session ID when compaction occurs. This allows the conversation to continue seamlessly without losing recent messages.

What is the best way to trigger context consolidation without losing recent messages?

The best way to trigger context consolidation without losing recent messages is using a manual compaction command in the main group. It archives the full transcript beforehand and returns a new session ID to continue.