Ability to delete conversation portions from context messages
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
I want to selectively delete messages from conversation history. /compact is slow
and expensive when I already know what I want to keep.
I basically do this workflow: 1) talk through code changes and plan 2) finalize plan 3) implement 4) compact, implement again. I would like to be able to go into chat history, delete part 1 and part 3 instead of compacting. I know what I want to delete. I don't need compact to burn 5k tokens and 4 minutes, which will make me lose some of the things I want to keep and keep things I don't.
Proposed Solution
Add a command /edit-context-messages
Basically, this presents a list of the conversation history. I am able to delete chunks by marking rows with enter and then accepting.
Alternative Solutions
_No response_
Priority
High - Significant impact on productivity
Feature Category
Interactive mode (TUI)
Use Case Example
I'm developing a huge feature. I spent 2 hours working with claude to design the thing. I am using 1m context model. Then, we starting implementing (will take 9 hours total). Halfway through, I need to compact. But I want to keep all the design discussions and a few things of the recent implementation, but basically dump 400k tokens in the middle. Instead of I have to use /compact. It is more efficient to use /clear, because I don't have to wait and I will have to reload half the stuff anyways. I usually ask the LLM what to pass into the next session where to find key information to resume.
Additional Context
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗