In Claude Code's rewind menu, how do Summarize from here and Summarize up to here differ, and what does neither one change?
answer
- compress, don't revert
- which side of the selected message
- where the input box ends up
- a marker replaces the messages
- steer it with added context
basics
~10 sSummarize from here compresses the selected message and everything after it; Summarize up to here compresses everything before it and keeps later messages intact. Neither changes files on disk or deletes the transcript.
solid answer
~40 sBoth live in the rewind menu (`Esc` twice on an empty prompt, or `/rewind`) and both free context without reverting code. **Summarize from here** compresses the conversation from the selected message onward, so the early instructions stay verbatim, and puts the selected prompt back in the input to re-send or edit. **Summarize up to here** compresses everything before the selected message, keeps later messages intact, and leaves you at the end with an empty input. Either way a **Summarized conversation** marker appears, files on disk are untouched, and the original messages stay in the session transcript. To steer the summary, highlight the option with the arrow keys and type into **add context (optional)**; its number key summarizes at once. It is like a targeted `/compact`, within the same session.
go deeper
Recall that the rewind menu can summarize as well as restore, and that summarizing never changes files.
Explain which side of the selected message each option compresses, where the input ends up, and how to add focus instructions.
Choose between restoring and summarizing by whether later turns were wrong or just long, and protect the instructions that matter.
Treat targeted summaries as a context-hygiene habit for long sessions, and know when a fresh branch is the better reset.
## Where the summarize options live Claude Code's **rewind menu** opens with `Esc` twice on an empty prompt input, or with `/rewind` (aliases `/checkpoint` and `/undo`). It lists each prompt you sent; after you select one, it offers three restore actions, **Never mind**, and two actions that do not restore anything: **Summarize from here** and **Summarize up to here**. Both compress part of the conversation into a summary to free context window space. The difference is which side of the selected message gets compressed. ## The two options compared | | Summarize from here | Summarize up to here | | - | - | - | | What is compressed | The selected message and everything after it | Everything before the selected message | | What stays verbatim | The messages before it | The selected message and everything after it | | Input afterwards | The selected prompt, ready to edit or re-send | Empty, at the end of the conversation | | Typical use | A verbose detour after good instructions | A long history before the work in progress | **Summarize from here** suits a session where the opening instructions were precise and then a debugging tangent filled the window with logs and failed attempts. The instructions stay word for word and the tangent shrinks to a summary. **Summarize up to here** suits the opposite: a long exploratory start whose details no longer matter, followed by recent turns whose exact wording you want Claude to keep working from. ## What neither option changes - **Files on disk.** Summarizing never reverts code; only the restore actions do that. - **The transcript.** The original messages stay in the session transcript, so Claude can still reference the details. - **The session.** You stay in the same session. To try a different direction while keeping the original conversation intact, branching (`/branch`, or `claude --continue --fork-session`) is the tool, not summarizing. What does change is visible: a **Summarized conversation** marker appears where the compressed messages were. ## Steering the summary 1. Open the rewind menu and select the message that marks the boundary. 2. Highlight **Summarize from here** or **Summarize up to here** with the arrow keys. 3. Type instructions on the row that reads **add context (optional)**, for example "keep the failing test names and the final stack trace". 4. Press `Enter`. Pressing the option's number key instead summarizes immediately, without instructions. ## A worked example Suppose your first prompt set out a migration plan with precise constraints, and the next fifteen turns were spent chasing a flaky test, pasting logs and trying fixes that did not hold, until the test finally passed. The plan still matters; the chase does not, except for its conclusion. - Select the first message of the chase and choose **Summarize from here**, adding "keep the root cause and the final fix" in the add-context row. - The plan stays verbatim, the fifteen turns become one summary, and the prompt that started the chase reappears in the input, which you can clear if you do not want to re-send it. - Had the opening exploration been the noise and the recent turns the signal, you would select the first message worth keeping and choose **Summarize up to here** instead. Because the original messages remain in the session transcript, nothing is lost for good; the summary only changes what occupies the context window from now on. ## Summarize against restore and compact - **Restore conversation** drops the later messages from the conversation; **Summarize from here** keeps their gist. Restore when the later turns were wrong; summarize when they were merely long. - `/compact` summarizes the conversation so far as a whole; the rewind-menu options are its targeted cousins, choosing a boundary. How automatic compaction triggers and what it re-injects is a separate subject. ## Common mistakes - Expecting Summarize from here to undo the edits made during the tangent; reach for **Restore code** for that. - Mixing up the directions and compressing the recent turns you meant to keep. - Pressing the number key and losing the chance to tell the summary what to keep.
- In Claude Code, when do you choose Restore conversation over Summarize from here at the same message?Restore conversation when the later turns were wrong and you want them out of the context entirely, such as a misguided approach. Summarize from here when the later turns were useful but verbose, such as a long debugging session whose conclusions matter. Neither touches files; restoring code is a separate action.
- Summarize from here also reverts the code changed in those turns
- Summarizing permanently deletes the original messages from the transcript
- Summarize up to here compresses the recent turns and keeps the old ones
- Summarizing starts a new session, like a branch