1. Docs
  2. Working with agents
  3. Undo changes

Working with agents

Undo an agent’s changes

Every turn records which files changed. Undo the whole turn in one click, redo it, or discard single changes in the Changes pane.

2 min read · Codevalanche 1.1.77 · Windows

Before an agent changes files, Codevalanche saves how they were. After the turn you get a record of what changed and a way back.

Turn changes

Each turn that changed files shows a Turn changes card: Turn in progress while it works, then Saved with the number of changed files.

  1. Choose Undo this turn’s changes.
  2. Confirm. The files go back to how they were before the agent changed them.
  3. Changed your mind? Choose Redo.

When undo is not offered

ReasonMeaning
Files not shown on the cardThe operation includes files outside this turn’s record.
Another turnThe change belongs to a different turn.
Incomplete recordThe complete earlier state of the files was not captured.
Very large folderA folder too large to snapshot runs without undo; the app tells you.

If the app closes during a turn, the record is recovered on the next start (“Interrupted turn recovered”).

Fine-grained changes

The Changes pane (Ctrl+2) shows each changed file. You can discard a single change (a hunk) or a whole file. Discarding cannot be undone, so the app asks first.

Projects in git give you a second safety net: every change is also visible in git, and the Coordinator merges agents’ branches only when it is safe.

Disk space

Undo snapshots are kept with the AI tools’ sessions. Settings › Storage shows how much space they use.