From epic
Manages Claude Code context window by snapshotting session state, compacting conversation, and resuming via hook. Use when context exceeds 70% or starting a large new task.
How this skill is triggered — by the user, by Claude, or both
Slash command
/epic:contextThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Context window > 70% capacity
Before compacting, ensure critical state is saved:
$HARNESS_DIR/sessions/Suggest or trigger compaction with a clear summary:
Summary for compaction:
- Working on: [task description]
- Files modified: [list]
- Current status: [what's done, what remains]
- Key decisions: [important choices made]
- Next step: [what to do after compaction]
After compaction, the resume hook will reload:
$HARNESS_DIR/sessions/$HARNESS_DIR/memory/$HARNESS_DIR/evolved/| Excuse | Rebuttal | What to do instead |
|---|---|---|
| "I still have context left" | Quality degrades well before the hard limit. 70% is the trigger. | Compact proactively. Better to lose 5 min than lose coherence. |
| "Compacting will lose important context" | That's why you preserve first. The resume hook restores it. | Save state → compact → resume loads snapshot + memory + skills. |
| "I'll just re-read the files" | Re-reading 5 large files wastes 30%+ of your fresh context. | Summarize key facts before compacting. Read only what you need after. |
Before compacting, confirm ALL of these:
$HARNESS_DIR/sessions/ (show file name)Compacting without a summary = guaranteed context loss.
npx claudepluginhub epicsagas/epic-harness --plugin epic-harnessGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.