Commercial content from HarnessUp · Ted Mavera, Product Manager at HarnessUp · November 26, 2026
Cursor checkpoints and the work you want to keep
Suppose a coding agent corrects a login error and then rewrites the test that exposed it. For a developer who wants to keep the correction and recover the original test, I would assess Cursor and its alternatives against two criteria. The first is whether the original test was recorded at a point the developer can identify, such as an editor save, a Git commit or the moment before a particular command. The second is how much other work must be reversed when the test is restored. If the login correction and the test rewrite were recorded together, the ability to restore a single file matters more than the number of checkpoints available.
Cursor suits a developer who can identify the request in chat and wants to reverse the resulting edits together. According to Cursor, a checkpoint is created automatically before Agent makes significant changes, and the state of the modified files is stored locally. Select a checkpoint in the chat timeline and inspect the preview for both the corrected login and the original test. Where both are present, the checkpoint contains the versions the developer wants. Should the checkpoint precede both edits, restoring it would also reverse the login correction. I would favor Cursor for an exploratory refactor whose changes can be accepted or discarded together. Once the files have been restored, the conversation remains available, including the request that prompted the rewrite. Cursor recommends Git for permanent version history. Cursor’s documentation on Agent checkpoints
Git, Visual Studio Code and HarnessUp as recovery tools
Git offers the most precise control of the three alternatives when the original test can be identified in a commit. With git restore --source=HEAD -- tests/login.test.ts, the version of the test in the current commit is copied into the working directory. Only the test file is selected, so the login implementation retains its correction. If a new assertion was added to the test after the commit, restoring the entire file can overwrite that assertion. Use the patch option, --patch, to review individual groups of changed lines and select the replacements you want. Visual Studio Code is my preference when the version containing the missing assertion was saved in the editor between commits. Select the test file and inspect its Timeline, where Microsoft documents both local saves and Git commits. Depending on the local history settings, a copy containing the assertion may have been recorded even if the test was rewritten before anyone staged it. Recovery takes more work when several files must be returned to their state after the same request, because the corresponding version must be identified for each file. Git restore reference and Microsoft’s guide to file history
HarnessUp suits a Claude Code or Codex developer who can identify the command that rewrote the test. HarnessUp lists “Smart Return” as a Pro feature that restores files to their state before a selected command. A separate Pro feature, “Checkpoint,” records a restore point in Git without changing the developer’s branches. If the test was rewritten by a command issued after the login correction, the state before that command includes the correction. If a single command produced both edits, the original test can be recovered from the state before the command, but the corrected login will be absent. I recommend Cursor for developers who recognize the unwanted request in chat and want all its file changes reversed. For a maintainer who can identify the commit and needs to recover selected lines, I recommend Git. For an editor user who needs the last saved copy of one test, I would start with the VS Code Timeline. I recommend HarnessUp Pro when a Claude Code or Codex user needs to reverse an identifiable command and preserve work completed earlier in the same request. HarnessUp recovery tools for Claude Code and Codex