How checkpoints work
Cline maintains a shadow Git repository that is completely separate from your project’s own Git history. After each tool use — file edits, commands, and so on — Cline commits the current state of your files to this shadow repo. Your main Git repository stays untouched. This means:- Your Git history remains clean and under your control
- Checkpoints capture all files, including ones not tracked by Git
- You can restore to any point in a task without affecting commits you’ve already made
- Checkpoints persist across editor sessions
Enable or disable checkpoints
1
Open Cline settings
Click the gear icon in the Cline sidebar.
2
Find Feature settings
Scroll to the Feature Settings section.
3
Toggle checkpoints
Toggle Enable Checkpoints on or off.
For very large repositories, checkpoints may use significant storage and slow down Cline slightly as it commits file snapshots after each tool use. Consider disabling them if you notice performance issues.
Viewing and comparing changes
After each tool use, a checkpoint indicator appears in your conversation — a bookmark icon labeled Checkpoint with Compare and Restore buttons. Click Compare to open a diff view showing exactly what changed at that checkpoint. This opens in your editor’s diff viewer, letting you see additions, deletions, and modifications across all affected files. This is useful when Cline makes changes you want to understand before deciding whether to keep them. Review the diff, then either continue or restore.Restoring checkpoints
Click Restore next to any step to open the restore menu. You have three options:Choosing the right restore option
The code broke but the conversation is useful
The code broke but the conversation is useful
Use Restore Files. Cline keeps all the context from your conversation and can try a different implementation approach without you needing to re-explain the goal.
The code is good but the conversation went off-track
The code is good but the conversation went off-track
Use Restore Task Only. Your file changes are preserved and you can guide the conversation in a different direction from that point.
Everything went wrong — start over
Everything went wrong — start over
Use Restore Files & Task. This resets both files and the conversation to the checkpoint, giving you a clean slate from a known-good state.
When to use checkpoints
Checkpoints and auto-approve
Checkpoints make auto-approve practical. Without checkpoints, auto-approve feels risky because Cline can make many changes before you notice a problem. With checkpoints, you can let Cline work autonomously and roll back if needed.1
Enable auto-approve
Turn on auto-approve for file edits and commands in Cline settings.
2
Let Cline work
Cline moves through the task quickly without waiting for approval at each step.
3
Review the final result
Inspect the outcome once Cline finishes. Use Compare on any checkpoint to review what changed.
4
Restore if needed
If something went wrong, restore to the last good checkpoint and give Cline more specific guidance.