Review and undo an AI coding agent's changes
Dial saves a checkpoint before every file edit it makes. After each turn you can see what changed and which checks ran, then keep the work, restore the files, or rewind the conversation too, even after a restart.
See what changed
When a turn ends, its report names the changed files and shows whether the checks Dial ran passed, failed, or no longer cover the latest edit. A change with no passing check is marked unverified. Ctrl+O expands the commands and their output.
/review fileslets you inspect each checkpointed change yourself and choose file by file./review uncommittedasks for an AI review of your uncommitted changes.
Opening a review never reverts anything.
Undo
Decide what you want to keep, then:
- Restore the files, keep the conversation:
/undo filesrestores files from the latest checkpoint. - Rewind the conversation too:
/undorestores the checkpointed edits and rewinds the turn./undo 3goes back three turns. - Decide file by file:
/review files.
These restore immediately; they are not previews. They don't reverse effects outside your files: a push, a deployed change or a running service stays as it is.
Files changed by shell commands
Dial's own edits are checkpointed before they happen. Files a shell command changes are not, by default, and the turn report counts those commands under "Outside /undo".
Turn on Settings → Tools → Shell → Undo shell changes (shell.undo_snapshot = true) to close most of that gap. Before the turn's first command that may change files, Dial copies the project's source files; afterwards, changed and deleted files are restored by /undo and new files are removed.
Not covered: files matched by .gitignore, dependency and build folders such as node_modules or target, .git, credential files like .env, files over 8 MiB, and anything outside the project. Projects with more than 20,000 source files or 512 MiB of them aren't copied.
Decide what it may do before it acts
Undo is the safety net; approval modes are the guard rail. /approval chooses ask, write, readonly, auto (Full auto) or yolo. An interactive first run starts in write, and in the CLI Shift+Tab cycles ask, write and read-only.
To confine what commands can touch at all, run Dial in the OS sandbox.