add-compact

Forward the SDK /compact command to archive transcripts and continue sessions.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/LIMITLESS-LONGEVITY/limitless --skill add-compact-limitless-longevity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-compact
Source: https://github.com/LIMITLESS-LONGEVITY/limitless/tree/main/apps/nanoclaw/.claude/skills/add-compact
Command: npx skills add https://github.com/LIMITLESS-LONGEVITY/limitless --skill add-compact-limitless-longevity

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Long-running chat sessions suffer context rot where relevant short-term conversation is lost or degrades; this Skill provides a manual compaction command to preserve essential context while keeping the logical session alive.

Core Features & Use Cases

  • Adds a /compact session command that forwards the SDK's built-in compaction slash command so no synthetic system prompts are injected.
  • Ensures transcripts are archived before compaction, the session continues with a new session ID, and only main-group or trusted/device-owner senders can trigger compaction.
  • Use case: in NanoClaw, invoke /compact from your private main group to reduce token usage and keep the agent coherent across very long conversations without destructive resets.

Quick Start

Send /compact from the main group to compact the conversation, archive the transcript, and continue the session with summarized context.

Frequently Asked Questions about add-compact

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

FAQPage Schema
How do I prevent context rot in long-running chat sessions?

You can prevent context rot in long-running chat sessions by applying manual compaction, which preserves essential conversation history while keeping the logical session alive. This summarizes past context to maintain agent coherence without destructive resets.

How do I compact a NanoClaw agent session to reduce token usage?

You can compact a NanoClaw agent session by sending the /compact slash command from the main group. This forwards the SDK's built-in command, archives the pre-compact transcript, and continues the session with a new session ID.

Can I trigger manual compaction from any chat group or sender?

No, manual compaction enforces admin or trusted-sender authorization, meaning only the main group or the device owner can initiate the /compact command to ensure session security.

Does the /compact slash command inject synthetic system prompts into the agent?

No, the /compact slash command does not inject synthetic system prompts. It directly forwards the agent SDK's built-in compaction command to summarize context natively without altering the agent's core instructions.

What happens to the conversation transcript after a session compaction?

After session compaction, the pre-compact transcript is safely archived. The conversation then continues with summarized context under a new session ID, ensuring no data is lost while reducing token usage.