Skip to main content

Review and undo

Agent edits go into your file straight away, with a restore point of the version from before. This page shows how to keep or discard an edit, undo one you already kept, and go back to an earlier version.

How agent edits work#

  • The agent writes each edit to the file while it works.
  • Nebula Writer records two restore points for every agent edit, Before agent edit and Agent edit.
  • A review bar then appears above the document. Keep accepts the change. Discard puts the previous version back.
  • An edit you haven't decided on stays in the file until you discard it.

The review bar#

The bar's title tells you what the agent did:

TitleWhat happenedYour choices
Review agent editThe agent changed a documentKeep or Discard
Review workbook editThe agent changed a spreadsheetKeep or Discard
Review new fileThe agent created a fileKeep or Discard
Review file deletionThe agent deleted a file and moved it to the TrashKeep or Restore
Review agent actionOne request changed several filesKeep all or Discard all

To review an edit:

  1. Look over the highlighted changes in the document.
  2. Choose Inspect changes to see each change as Before and After text. Use the arrows to move between changes.
  3. Choose Keep or Discard.
The review bar with Inspect changes open. It shows change 1 of 2, an updated paragraph, with the Before text on the left and the After text on the right, next to Discard and Keep.

When the review bar has focus, you can use the keyboard: Y keeps, N discards, J or → goes to the next change and K or ← to the previous one.

The agent pane also lists each changed file with Needs review and a Review changes button that takes you to it.

Word, PowerPoint and Excel#

Edits to these files are always kept or discarded as one decision. You can inspect each change, but you can't keep some and discard others. If only part of an edit is right, discard it and ask again with a narrower request, or keep it and fix the rest yourself.

While an agent edit to one of these files is waiting for review, you can't export that file to PDF. Keep or discard the edit first.

Markdown, LaTeX and text files#

For these text formats the review bar can also offer Keep and Discard for a single change, with Keep all and Discard all for the whole file. Most agent edits still show the one-decision bar.

Undo a change you already kept#

The File changes panel lists what the agent has changed. Open it with the File changes button at the top of the agent pane, or click outside the document and press ⌘⇧H on a Mac or Ctrl+Shift+H on Windows and Linux.

  • This chat shows changes from the current conversation. Project shows changes across the whole project.
  • Revert undoes a change. When one change touched several files, Revert file undoes it in just one of them.
  • Changes still waiting for a decision show Review in document instead.

You can also undo the most recent agent action with ⌘⇧Z or Ctrl+Shift+Z, and redo it with ⌘⇧Y or Ctrl+Shift+Y. These only work when focus is outside a document; inside an editor, ⌘⇧Z is the editor's Redo.

If you've edited the file since the agent did, Nebula Writer won't overwrite your newer work. Use History instead.

Go back to an earlier version#

History keeps restore points for Markdown, LaTeX, Word, PowerPoint and spreadsheet files.

  1. Click History at the top of the open document.
  2. Under Restore points, find the version you want. Names such as Agent edit, Before agent edit, Saved file and Saved by you show where each one came from.
  3. Choose Compare to see how it differs from the current file.
  4. Choose Restore.

To mark a moment yourself, choose Save a restore point. Restoring a file changes only that file.

Restore points are stored on this device, not in your project folder, and older automatic ones may be removed over time. Keep your own backups for work that matters.

Which one to use#

You want toUse
Undo an edit you haven't decided onDiscard in the review bar
Undo an agent change you already keptRevert in File changes
Return a file to an earlier stateHistory, then Restore
Get back a file you deletedUndo in the notice (for 5 seconds), then your system Trash
Get back a file the agent deletedRestore in the review bar, or your system Trash

After you discard or revert, a narrower request usually works better:

Prompt
Edit only the Risks table on page 2. Keep the row order and every number. Ask me before changing anything else.