Skip to content
Skip to content
PGB Learn

AI edits, undo and safety nets

What the assistant changes, how its edits are applied in one step and how to undo any of them.

Updated Nov 12, 2026

The assistant edits your real project files, so Studio protects you with automatic save points and a one-click undo.

What happens when you send a request

  1. Studio shows the assistant your file list and the contents of your open files, within a size budget. Files locked by the template are marked.
  2. Before anything changes, Studio takes a Before an assistant change save point, if your files differ from the last one.
  3. The assistant proposes new, changed, renamed or deleted files.
  4. Studio checks each proposal: no unsafe paths, no locked files, no file over 1 MB. Anything rejected is skipped.
  5. All valid changes are applied together as one Assistant change save point.

If the combined result would break a project size limit, nothing is applied and you see an error.

Read the result

Under the assistant's reply you see N files changed and a list of paths with Added, Changed or Removed and counts of lines added (+) and removed (-). Choose a path to open the file.

Undo

Choose Undo under the reply. Your project goes back to how it was before that request. The button then reads Undone.

You can also go further back from the History tab. See History and save points.

If the assistant edits your settings file

If you ask it to change pgb.config.json in a template project, the project's stored settings follow the file, so the Customise form stays in sync.

Good to know

  • Undo restores the whole project to that save point, not only the files the assistant touched.
  • Each request is applied once. Send another request if you want a refinement.
  • Your account may have a daily limit on AI edits. The message tells you the number.
  • Requests need your AI provider key. See Describe your app.

More guides in PGB Studio