All tools · Concept
Checkpoints
- Git is your undo button. Commit before each agent run, so a bad run is one reset away.
- Tool checkpoints help too. Claude Code's rewind and Cursor's Restore Checkpoint undo the agent's file edits, but changes made by shell commands aren't tracked. Git covers everything.
- If the agent starts looping on the same error, stop it, revert, and re-prompt with what you learned.