Claude Code Rewind Gets "Summarize Up to Here": Targeted Context Compression for Long Sessions
Claude Code version 2.1.141 adds a "Summarize up to here" option to the Rewind menu (accessed via Esc+Esc or /rewind), enabling developers to compress earlier conversation history into a summary while keeping recent turns fully intact. Unlike the existing /compact command β which summarizes the entire conversation from the current position β this new option provides surgical context management by letting users target a specific checkpoint for compression. The result is a leaner context window that preserves the most relevant recent work while shedding accumulated history from earlier exploration branches.
Sources & Mentions
5 external resources covering this update
GitHub β "Summarize before here" option in rewind menu β Issue #28716
GitHub
Claude Code Docs β Checkpointing
Claude Code Docs
Claude Blog β Using Claude Code: session management and 1M context
Claude Blog
knightli.com β 24 Claude Code Tips: Plan Mode, Rewind, CLAUDE.md, Skills, Agents, and Plugins
knightli.com
okhlopkov.com β Claude Code Compaction: How Context Compression Works (2026)
okhlopkov.com
A New Option in the Rewind Menu
Claude Code's Rewind feature (accessed by pressing Esc twice or running /rewind) has long offered two actions after selecting a checkpoint: restore the conversation to that point, or restore only the file state. Version 2.1.141 adds a third action β "Summarize up to here" β which compresses all context leading up to the selected checkpoint into a single summary while leaving subsequent turns intact.
This is meaningfully different from the existing /compact command. The /compact command summarizes the conversation from the user's current position forward, collapsing everything. "Summarize up to here" works in reverse: it targets earlier context, letting developers preserve the most recent turns β where the active work and momentum live β while pruning older, tangential exploration that is consuming tokens without contributing to the current task.
Why Targeted Compression Matters
Long Claude Code sessions naturally accumulate context from multiple directions: file reads, failed approaches, debugging detours, intermediate analyses. While this history informed the work, it also inflates the context window and contributes to what practitioners call "context rot" β the gradual degradation in response quality as the model's attention is distributed across an increasingly long and partially irrelevant history.
Until now, developers managing this problem had three options: /compact everything (losing the valuable recent turns), /clear to start fresh (losing the entire session), or /rewind to roll back (losing work done after the selected point). The new "Summarize up to here" option fills the gap by allowing targeted compression without sacrificing recent progress.
How to Use It
- Press Esc+Esc (or run
/rewind) to open the Rewind menu - Navigate to a checkpoint that marks the end of content to compress β typically a natural inflection point like "after files were read but before the first failed approach"
- Select "Summarize up to here"
- The context before that checkpoint is replaced with a compressed summary; subsequent turns remain untouched
This workflow is particularly useful mid-session when a long exploratory thread has drifted from the current goal and is consuming significant context budget.
Additional Context Management Notes
The 2.1.141 release also notes that the compaction prompt now explicitly instructs the model to preserve sensitive user instructions during summarization β preventing important directives from being omitted from the compressed summary.