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.
Take it back
Section titled “Take it back”- 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. - 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.
Why it is one step
Section titled “Why it is one step”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.
Nothing is saved until you save
Section titled “Nothing is saved until you save”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.
If Claude changed something you made
Section titled “If Claude changed something you made”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.
What can go wrong
Section titled “What can go wrong”- 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-PLAYMODEand refuses. Stop Play mode first.
More: Safety and A first session.