[FEATURE] Add /compact command AFTER PLAN to summarise context instead of clearing it
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Clearing context is often too destructive, while retaining full context preserves unnecessary detail and token weight. This creates friction in iterative workflows where only a distilled history is needed.
Proposed Solution
Introduce a /compact command that replaces the current conversation with a concise, structured summary of the session so far.
The summary should preserve:
the core goal or task
key decisions and constraints
important assumptions or definitions
current state of progress
This would retain far more useful context than the plan alone, without the cost or noise of full history.
Why This Matters
Enables longer, iterative workflows without context bloat
Reduces cognitive and token overhead
Avoids repeatedly restating background after plan mode
More aligned with how developers actually work
Priority
Critical - Blocking my work
Feature Category
CLI commands and flags
Use Case Example
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗