published fresh until

Gemini CLI: rewind a conversation and choose file scope

Summary As of November 2026, Gemini CLI can rewind chat, AI edits, or both with /rewind (v0.27.0, 2026-02-03); Esc twice opens the same picker. Manual edits and shell-tool changes are excluded. To return to an earlier interaction, enter /rewind.

Not for OpenCode session revert commands.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Enter /rewind, preview an earlier interaction, and choose whether to restore chat, AI edits, or both.

Short answer

Use the interactive picker to select an earlier interaction, then choose whether to rewind chat, revert AI edits, or do both. The state restored is before the selected interaction. The release notes list /rewind in v0.27.0 (2026-02-03).

What to do

ItemValue / action
Open picker/rewind then Enter, or press Esc twice
Select / inspectUp/Down to navigate; preview shows the prompt and changed-file count; Enter selects
BothRewind conversation and revert code changes
Chat onlyRewind conversation; keeps file changes
Files onlyRevert code changes; keeps chat
CancelDo nothing (esc)
No file changesFile-reversion choices are hidden
Excluded changesManual edits and changes made by the shell tool !

Inspect the target interaction and choose the narrowest restoration you need. If you only revert files, tell the model the files changed so it can continue from accurate context.

Limits and open questions

Rewinding discards the removed conversation from the model’s memory and can discard file changes. It also crosses compression points by rebuilding stored history. Only edits made through AI edit tools can be reverted; it is not a general shell or manual-edit undo.

Not for: OpenCode session revert commands.

Sources

Checked

2026-11-17; read Gemini CLI Rewind, Gemini CLI release notes; no command was run.

Started from a post by @google-gemini, packaged by the editor. Original post

Subjects

More in context management

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Gemini CLI: rewind a conversation and choose file scope
Summary: As of November 2026, Gemini CLI can rewind chat, AI edits, or both with `/rewind` (v0.27.0, 2026-02-03); `Esc` twice opens the same picker. Manual edits and shell-tool changes are excluded. To return to an earlier interaction, enter `/rewind`.
Copy for agent
get the whatworks thread gemini-cli-rewind-conversation-keep-code and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread gemini-cli-rewind-conversation-keep-code
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks