Help us improve
Share bugs, ideas, or general feedback.
From toolkit
Memory-aware session compact — triggers native pi compaction with memory persistence
npx claudepluginhub ruizrica/toolkit --plugin toolkitHow this command is triggered — by the user, by Claude, or both
Slash command
/toolkit:compactThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Memory-Aware Session Compact Trigger pi's native compaction system which automatically: 1. Saves a daily log entry and session state (via the memory-cycle extension hook) 2. Summarizes old messages to reclaim context tokens 3. Injects restoration context so work continues seamlessly ## Instructions **This command triggers pi's built-in compaction.** You do NOT need to manually write files or introspect the session — the `session_before_compact` hook in the memory-cycle extension handles all persistence automatically. ### What to do 1. Tell the user: "Triggering memory-aware compactio...
/compact-guardSaves critical task state, edited files (up to 5), and decisions before compaction, then restores them to protect working context.
/context-summarizationCompresses conversation history when context utilization nears 40%, writes structured summary to memory/, and starts fresh context window.
/compact-contextCompresses conversation context: saves task status, decisions, and todos to progress.md, generates _compact_summary.md, and guides clearing/restoring to reduce token usage.
/smart-compactAnalyzes current conversation to generate optimized /compact command preserving high-value context (tasks, changes, errors), summarizing medium-value info, and discarding stale content.
/context-saveCompacts session or saves full handoff to .handoff/ file with progress summary, git state, and next steps when context pressure detected.
/compactCompacts old closed issues via semantic summarization (Tier 1/2) to reduce database size ~70-95%. Supports --all, --id <id>, --dry-run, --stats, --tier, --force.
Share bugs, ideas, or general feedback.
Trigger pi's native compaction system which automatically:
This command triggers pi's built-in compaction. You do NOT need to manually write files or introspect the session — the session_before_compact hook in the memory-cycle extension handles all persistence automatically.
cycle_memory tool if available, OR simply inform the user to use /cycle for a full session reset/compact directly (Ctrl+Shift+C or the pi command)/compact — Summarizes old messages in-place, keeps the same session (pi's native behavior)/cycle — Full reset: compact → new session → restore memory (fresh start)Both automatically save daily logs and session state via the memory-cycle extension.
Memory-aware compaction triggered.
Daily log and session state will be saved automatically.
Context will be summarized and reclaimed.
For a full session reset with fresh context: /cycle