claude-code - 💡(How to fix) Fix Ability to delete conversation portions from context messages

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

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.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • 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

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Ability to delete conversation portions from context messages