Cursor checkpoints are local snapshots created during Agent sessions. Learn how to preview a saved file state, restore Agent changes, and use Git and project checks alongside recovery.
What Cursor checkpoints are
Cursor’s Agent documentation defines checkpoints as snapshots of a codebase saved during an Agent session. Agent creates them automatically before significant changes and captures the state of the files it modifies.
These snapshots provide rollback points for Agent work. Cursor identifies exploratory work, complex refactoring, and iterative development as situations where checkpoints can be useful.
Checkpoints are stored locally and separately from Git. Cursor says to use them to undo Agent changes and to use Git for permanent version control. Based on that distinction, I suggest treating a checkpoint as short-term session recovery rather than as a replacement for a project’s version history.

How to preview a Cursor checkpoint
Open the relevant Agent conversation and locate a checkpoint in the chat timeline. According to the Agent overview, clicking a checkpoint previews the files at that saved point. You can inspect that preview before choosing whether to restore it.
I suggest comparing the preview with the work currently shown in the diff, particularly when Agent has edited several files. Cursor’s Agent help page says Agent edits are applied as it works and can be reviewed in the diff view. Its quickstart likewise directs users to review the diff after Agent finishes.
That comparison is an editorial recommendation, not a documented requirement of checkpoint restoration. Its practical purpose is to help you identify the intended recovery point before replacing the current file state.

How to restore Agent changes
Cursor documents more than one route to the restore action. You can click a checkpoint in the chat timeline, preview its file state, and then restore it. The Agent overview also identifies a Restore Checkpoint button on previous requests and a + button that appears when you hover over a message.
The Agent help page gives this direct procedure:
- Hover over a previous message in the Agent conversation.
- Click Restore Checkpoint in the bottom-right area.
Cursor says this rolls back all changes Agent made after the selected point. The documentation does not include a separate confirmation step, so this guide does not add one.
Restoration affects files, not the conversation transcript. Messages remain in the conversation after the files are reverted. If your objective is to shorten the conversation itself, Cursor documents forking the chat from an earlier message as a separate action.
What restoration changes and how to verify it
The selected checkpoint represents a saved file state. Restoring it returns all files to that state, according to the Agent overview. The Agent help page describes the effect as rolling back all Agent changes made after the chosen message.
Because the operation applies across the checkpoint’s file state, I suggest reviewing any later Agent work you may want to preserve before restoring. Using Git to record an important project state is also a reasonable precaution because Cursor explicitly assigns permanent version control to Git rather than checkpoints.
After restoration, I suggest reviewing the resulting files and running the checks your project already uses. Cursor’s quickstart recommends reviewing Agent changes in the diff and asking Cursor to run existing project checks. It lists tests, type checking, linting, and a local build as possible examples. Which checks are appropriate depends on the project; this verification is a recommended follow-up workflow, not part of the documented restore operation itself.
Conclusion
Cursor checkpoints are local snapshots for reversing Agent file changes during a conversation. To recover from an unwanted direction, locate the relevant checkpoint or earlier request, preview the saved file state when that option is available, and select Restore Checkpoint. Cursor documents that the files are reverted while the conversation messages remain.
My practical recommendation is to use checkpoints for immediate Agent-session recovery and Git for durable version history. Before restoring, inspect the checkpoint preview and current diff. Afterward, review the restored files and run the tests or other checks already established by your project. These suggested precautions make the documented all-files rollback easier to evaluate without treating checkpoints as permanent version control.
Sources
Disclosure
This article was prepared with AI assistance.
Improve this guide
Report a problem or suggest the next question
Submissions enter a private editorial queue. They are reviewed and deduplicated before any public update or new page is created.
