AI Studio: restrict the AI agent to specified files, with an approval step before changes
R
Robert Wiedemann
When the AI Studio agent is asked to change one file, it often changes other files it was not asked to touch, adds or deletes files, and alters working code. Support has confirmed there is currently no setting to prevent this, and that even a specific prompt does not guarantee the agent stays within the named file.
Requested:
- A setting to limit the agent to the files named in a request (file lock / allow-list), with every other file read-only to the agent.
- An approval step that shows the agent's proposed changes, file by file, before anything is applied.
- A per-project switch to turn the AI agent off entirely while keeping the Code Editor, GitHub sync, preview and publishing working.
Why: on projects synced to GitHub, unrequested changes break verified code and cost hours of rework and checking. Until this exists, we cannot safely use the agent at all.
Log In