What problem does it solve?
This Skill adds a controlled way to compact long-running Claude Code sessions, reducing context rot without resetting the conversation or losing the session’s logical continuity.
Core Features & Use Cases
- Manual /compact Command: Adds a slash command that triggers the SDK’s built-in compaction flow.
- Trusted Access Control: Limits compaction to the main group or trusted/admin senders to prevent accidental or malicious memory loss.
- Safe Session Continuity: Preserves the conversation by forwarding the new session ID after compaction instead of performing a destructive clear.
- Operational Validation: Includes checks for active containers, message ordering, transcript archiving, and denial handling in untrusted groups.
Quick Start
Ask the assistant to implement the add-compact skill so your NanoClaw deployment can support a safe, admin-gated /compact command for long sessions.