add-compact

Automate adding a manual /compact command to NanoClaw with pre-flight checks and tests.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/Arno37/nanoclaw_test --skill add-compact-arno37
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-compact
Source: https://github.com/Arno37/nanoclaw_test/tree/main/.claude/skills/add-compact
Command: npx skills add https://github.com/Arno37/nanoclaw_test --skill add-compact-arno37

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the addition of a manual /compact command to NanoClaw to prune conversation context and fight context rot in long-running sessions, without resetting the current session.

Core Features & Use Cases

  • Admin-verified compaction: enables trusted main-group or device-owner admin users to invoke /compact to preserve continuity while summarizing memory.
  • Session continuity with a new ID: returns a new sessionId after compaction to the orchestrator so the agent can resume without losing context.
  • Observability and safety: includes pre-flight checks and a clear verification path to ensure deterministic behavior and auditability.

Quick Start

Use the add-compact skill to enable the /compact command and verify that a new sessionId is returned after compaction while the session continues.

Frequently Asked Questions about add-compact

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

FAQPage Schema
How do I prune conversation context in NanoClaw without resetting the session?

Adding a manual /compact command allows trusted admin users to invoke compaction directly, returning a new session ID to the orchestrator so the agent can resume with a pruned context window while preserving ongoing session continuity.

What is context rot and how does manual compaction fight it in long-running sessions?

Context rot degrades agent performance as conversation history accumulates over long-running sessions. Manual compaction fights it by summarizing memory and pruning the context window while preserving ongoing sessions without requiring a full reset.

Does the /compact command require admin verification to execute in NanoClaw?

Yes, the /compact command requires explicit admin verification. It operates in main-group or trusted sender contexts, limiting execution to device-owner admin users to ensure observability, safety, and auditability during context pruning.

How do I add a /compact command to NanoClaw step by step?

You add the /compact command by applying code changes to NanoClaw, running pre-flight checks to validate the environment, and executing tests to verify that compaction prunes context and returns a new session ID correctly.

Can I use context compaction in main-group conversations without losing ongoing agent memory?

Yes, context compaction preserves ongoing sessions by summarizing memory rather than deleting it. It updates the session ID after compaction so the orchestrator can resume the agent with the summarized context intact.

What are the limitations of manual context compaction for long-running agent sessions?

Manual context compaction requires code changes, pre-flight checks, and testing to validate behavior. It is limited to admin-verified contexts and does not reset the session, meaning very large context windows may still need active management.