Skip to content
Development
Command

/compact-guide

Help decide when to use `/compact` based on the current conversation state.

From plugin
claude-memory-engine
13418 skills18 commands9 hooks

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/compact-guide

Context preview

What this command does when you run it.

Help decide when to use `/compact` based on the current conversation state.

Command definition

compact-guide.md

/compact-guide -- Smart Context Compression Guide

Help decide when to use `/compact` based on the current conversation state.

When to Compact

| Situation | Compact? | Why | | :-------- | :------- | :-- | | Research/exploration done, ready to build | Yes | Research context is large; the plan is what matters | | Planning done, starting to code | Yes | Plan is already in TodoWrite or a file | | Debug session finished | Yes | Debug logs pollute the next task's context | | Switching to a completely different task | Yes | Clear irrelevant context | | Deployment done, starting new feature | Yes | Deployment logs aren't needed anymore |

When NOT to Compact

| Situation | Why | | :-------- | :-- | | In the middle of writing code | Lose variable names, file paths, partial state | | Debugging an unresolved issue | Lose error messages and attempted solutions | | Multi-file refactor in progress | Forget which files still need changes | | Just read an important doc, about to reference it | Doc content gets summarized away |

Auto-Suggest

When context usage exceeds 60%, proactively suggest whether compacting is appropriate based on the current task state.

Ships withclaude-memory-engine

Claude Code 的記憶系統 | A memory system built with hooks + markdown. Zero dependencies.

Get the whole plugin
Stats
134
Stars
27
Forks
Maintained
Maintenance
JavaScript
Language
MIT
License
4mo ago
Last commit
6mo ago
Created

Repo: HelloRuru/claude-memory-engine

Other commands on claude-memory-engine.