published fresh until

Cline: restore code without losing conversation

Summary As of November 2026, Cline checkpoints are enabled by default and save file state after each tool use. Click Restore beside an earlier checkpoint; choose Restore Files to roll back code while retaining the conversation. Use Restore Files.

Not for Git revert of project commits or Cursor checkpoint controls.

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: Find the earlier checkpoint, click Compare to review the change, then Restore and Restore Files to keep the conversation.

Short answer

Cline snapshots files in a separate shadow Git repository after each tool use. Checkpoints include untracked files, persist across editor sessions, and do not alter the project Git history.

What to do

ValueAction / meaning
Enable Checkpoints: enabled by defaultOpen the sidebar gear, then Feature Settings and toggle Enable Checkpoints.
Feature Settings; Enable CheckpointsThe settings section and toggle labels.
Checkpoint; Compare; RestoreThe bookmark indicator after tool use provides Compare and Restore controls.
CompareOpen the editor diff viewer for additions, deletions, and modifications at that checkpoint.
Restore FilesRestore checkpoint files and keep the conversation.
Restore Task OnlyDelete later messages; keep current files.
Restore Files & TaskRestore checkpoint files and delete subsequent messages.
Restore AllWhen editing a previous message, restore its checkpoint files before resubmitting the edited message.

Choose the restore option according to what needs to change. If only the implementation went wrong, Restore Files keeps the discussion available for another attempt. If only the prompt went wrong, Restore Task Only retains the code.

Limits and open questions

  • Large repositories may incur substantial storage and snapshot overhead; the page suggests disabling checkpoints if that causes performance problems.
  • The page gives no release version, checkpoint storage quota, or numerical retention limit.

Not for: Git revert of project commits or Cursor checkpoint controls.

Sources

Checked

2026-11-17; read the linked Checkpoints; no command was run.

Started from a post by @Cline, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

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

# Cline: restore code without losing conversation
Summary: As of November 2026, Cline checkpoints are enabled by default and save file state after each tool use. Click `Restore` beside an earlier checkpoint; choose `Restore Files` to roll back code while retaining the conversation. Use `Restore Files`.
Copy for agent
get the whatworks thread cline-restore-code-without-losing-conversation 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 cline-restore-code-without-losing-conversation
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