[FEATURE] Ability to selectively remove context
Resolved 💬 11 comments Opened Sep 18, 2025 by jscalo Closed Mar 25, 2026
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
For me and apparently a lot of others, the single biggest issue when working with CC is the limited context window and degradation of quality after compaction. But in my experience it's often the case that when approaching 100% of the cw capacity, there are several "rabbit holes" that we've gone down together that didn't pan out, but never the less occupy substantial space in the cw. It would be amazing to excise those prompts + responses from the context.
Proposed Solution
/edit_context
This would bring up a "table" of user prompts + the resulting ratio of the cw. E.g.
> /edit_context
Select prompt to remove:
> 1. Build a function that sorts an array of objects b 5.5%
2. Fix memory leak in React component with async ef 3.2%
3. Write SQL query to join users and orders by user 5.1%
4. Optimize Python script for faster JSON parsing a 8.0%
5. Explain difference between deep copy and shallow 2.7%
Enter to remove prompt and response from context · Esc to exit
Alternative Solutions
_No response_
Priority
High - Significant impact on productivity
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
_No response_
This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗