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.
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
- 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.
- Before anything changes, Studio takes a Before an assistant change save point, if your files differ from the last one.
- The assistant proposes new, changed, renamed or deleted files.
- Studio checks each proposal: no unsafe paths, no locked files, no file over 1 MB. Anything rejected is skipped.
- 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
Start a project from a template
Pick a ready-made template, fill in your business details in a form, watch the live preview and create your project.
Describe your app and let the AI builder start it
Type what you want in plain words and the assistant creates and edits the files for you; add your own AI key first.
Tour the Studio editor
Files, code tabs, live preview, problems list and the Assistant: what each part of the project screen does.
History and save points
Create named save points, compare them with your current files and restore an earlier version safely.
Customise a template project later
Change your business name, colours, logo and other values after creating a project, without touching the code.
Deploy your app to a live address
Build your Studio project and publish it as a running app inside one of your PGBHub projects.