Context Hygiene
Identify what must stay active, mark stale outputs for removal, and decide whether to compact or start a fresh session.
Steps
- Identify active state — current task, files, decisions that must be preserved
- Mark stale content — completed threads, resolved questions, old tool outputs
- Decide action — compact current session or recommend a fresh session
- Preserve explicitly — write down active task state before any pruning
Output
Keep: <active task, key files, open decisions>
Prune: <stale outputs, resolved threads>
Action: compact | fresh session
Rules
- Never compact away active task state
- Never preserve irrelevant historical chatter
- Write active state explicitly before recommending a fresh session
- Prefer compaction when the active task is still in progress