add-compact

Add a /compact command to condense conversation history in Deus sessions.

50|4|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/sliamh11/Deus --skill add-compact-sliamh11
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-compact
Source: https://github.com/sliamh11/Deus/tree/main/.claude/skills/add-compact
Command: npx skills add https://github.com/sliamh11/Deus --skill add-compact-sliamh11

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Adds a /compact session command to condense conversation history and fight context rot in long-running Deus sessions. The SDK returns a new session ID after compaction (via the init system message), which the agent-runner forwards as newSessionId, preserving continuity without a destructive reset.

Core Features & Use Cases

  • Manual memory compaction via the /compact command to summarize prior context.
  • Session continuity: the session remains active and references the new context without losing history.
  • Access control: only main-group users or device owners can trigger compaction; non-admin users are restricted.
  • Pre-Compact archiving: transcripts are archived before compaction to preserve records.
  • No automatic compaction; all compaction is initiated manually by a trusted user.

Quick Start

From the main group, send exactly /compact to begin a manual memory compaction.

Frequently Asked Questions about add-compact

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

FAQPage Schema
How do I manually condense chat history in a long-running session?

Manually condense chat history by sending a /compact command in the main group, which summarizes prior context, archives transcripts, and returns a new session ID to preserve continuity.

What is context rotation and when do I need session compaction?

Context rotation occurs when long-running sessions accumulate excessive history, causing context rot. Session compaction is needed to summarize prior context, archive transcripts, and maintain active session continuity without destructive resets.

Can non-admin users trigger chat history compaction in group chats?

Non-admin users cannot trigger chat history compaction. Access control restricts the /compact command to trusted senders, including the device owner and admins, preventing unauthorized context summarization in non-admin groups.

Does session compaction archive transcripts before summarizing conversation history?

Session compaction archives transcripts before summarizing conversation history. The PreCompact hook preserves records before condensing, and the agent-runner forwards the new session ID to maintain active session continuity.

Why does session compaction return a new session ID instead of resetting the conversation?

Session compaction returns a new session ID via the init system message to preserve session continuity. The agent-runner forwards this newSessionId, allowing the session to reference summarized context without a destructive reset.

Is automatic context compaction supported for long-running group chat sessions?

Automatic context compaction is not supported. All memory compaction is initiated manually by trusted users via the /compact command, ensuring the device owner or admins control when conversation history is summarized.