Cockpit
Undo and diffs
/diff and /undo for the last agent turn.
See what changed
/diffShows the git diff of your working tree and adds it to the conversation, so the model can see it too. /review sends the same diff to a model from another family. See Second opinions.
Take back the last turn
/undoRestores the files that were modified, and removes the files that were created, during the last agent turn. It also takes that turn out of the conversation, so the next message starts from before it. Run it again to step back one more turn.
Know its limits:
- It undoes what the agent's own edit and write tools changed. It does not undo what a command did, such as a build writing files, a database change or a package install.
- It remembers this session only. After you leave the cockpit, use git.
- It stays inside the project: it never touches files outside the project root.
- If there is nothing to undo it says so.
Git is the real safety net
Relief never commits, pushes or switches branches for you, and git push is a deny rule. In acceptEdits and auto modes edits apply at once, and git is your undo. Commit often, and you can always go back:
git diff # what changed since the last commit
git restore <file> # put one file backFor a baton takeover there is also a checkpoint that you can diff against. See Checkpoints.