Skip to content

Undo what Claude added

Take it back in one step.

Goal: you asked Claude for a scheme, you do not like what it made, and you want the database back as it was, with nothing left over.

  1. In Unity, choose Edit > Undo. One step removes the whole draft: every scheme, variable, formula and text Claude added in that apply. Unity names the step Apply Draft: and the draft’s title.
  2. Look at the Studio. It is gone. Claude’s draft file stays in IntriguesAI/drafts/, so you can ask for a changed version.

The Studio has no undo key of its own, so use Unity’s Edit > Undo or Unity’s own undo key.

You will see: the database as it was before the apply. Nothing else changes.

One call, one step.

intrigues_apply runs in one undo group, collapsed into one step. If anything fails while it writes, Unity reverts the whole step, so you never meet half a draft. Objects that intrigues_scene_actors adds to the open scene are a second group, named Create Actor Objects, with their own Edit > Undo.

Apply does not save unless the call says save: true. Claude saves only if you ask. Until you press Cmd+S (Ctrl+S) in the Studio, the change lives only in the open session, and undo does not save either. Save after an undo if you want the undone state on disk.

Before apply changes an item that already exists, whether Claude made it or you did, it writes the old version to IntriguesAI/backups/<date-time>/, one file per item, with the kind and the name of the item in its file name. Each file is a draft that restores the item. If the backup cannot be written, apply stops before it changes anything, with the code X-BACKUP. Changed texts share one file, texts.json. An item the draft only creates has no backup, because it had no old version.

Claude must ask you before it changes anything you made, or anything you edited after Claude made it, and it may not go on without your yes for each named item. The check answers N-CONFIRM and Claude names each item. The apply report names where the backup went.

  • Edit > Undo takes back something else first: edits made after the apply sit on top of it. Undo goes back one step at a time.
  • You saved, then undid: the file on disk still holds the draft until you save again.
  • Claude created scene objects too: they are in a separate undo group. Undo them separately.
  • Claude cannot apply in Play mode: the call answers X-PLAYMODE and refuses. Stop Play mode first.

More: Safety and A first session.