Cursor creates checkpoints during agent work. A checkpoint is a recoverable snapshot of the workspace state around an agent turn. It gives you a practical escape hatch when an agent takes a wrong turn.
What Checkpoints Are Good For
Use checkpoints to:
- Compare the current result with an earlier step.
- Restore a file or workspace state after a bad edit.
- Understand which prompt caused a change.
- Recover quickly from an agent loop.
They are especially useful during exploratory refactors because you can let the agent try a path without committing to it.
What Checkpoints Are Not
A checkpoint is not a code review, a test run, or a version control strategy. Cursor can restore an earlier state, but it cannot tell you whether the earlier state was correct.
Keep using Git for durable history:
git status --short
git diff
bun run lint
bun run test:unitCheckpoints help you recover within an agent session. Commits help your team understand the project history.
A Practical Pattern
Before a risky agent task:
- Start from a clean working tree when possible.
- Ask Cursor for a plan before edits.
- Let the agent implement one bounded unit.
- Inspect the diff.
- Run the verification command.
- Commit only after the result is understandable without the chat transcript.
If the agent makes a broad, hard-to-review change, roll back to the checkpoint and ask for a smaller unit of work.