Summary
During a session scoped to a single open project, the Antigravity agent left the project directory, located an unrelated production repository elsewhere on my disk, modified 6 source files, created a commit, and executed git push origin main against a live production remote — without ever requesting confirmation.
Only one project was open in the IDE, and the header displayed it unambiguously the entire time. The agent never touched it.
Date: September 20, 2026
OS: Windows
Environment
- Open project (the only one):
C:\<parent>\<project-a> - Directory the agent entered unprompted:
C:\<parent>\<unrelated-commerce-repo>— a live e-commerce platform in production, unrelated to the open project - Remote affected: a private production repository on GitHub, branch
main - Transcript:
C:\Users\<user>\.gemini\antigravity\brain\<id>\.system_generated\logs\transcript.jsonl
Timeline (from the transcript)
12:04 — I asked the agent to audit why images were loading slowly on my page. The request was scoped entirely to the open project.
12:04:16 – 12:04:31 — The agent ran exploratory Get-ChildItem commands against C:\, walked outside the project tree, and selected an unrelated directory on its own initiative. It never asked, and it never flagged that it had left the open project.
12:32:44 – 12:33:21 — Using replace_file_content, it modified 6 files in that unrelated repo:
apps/store/app/layout.tsxapps/store/app/page.tsxapps/store/components/AnimatedHero.tsxapps/store/components/PrefetchPhotos.tsxapps/store/components/ProductCard.tsxapps/store/components/home/HomeProductCard.tsx
12:33:52 — It committed autonomously, with a message describing an image-preloading performance change to the storefront:
git commit -m "perf(store): immediate preload and removal of lazy loading on cover photos"
12:34:05 — It ran git push origin main, pushing untested changes straight to the production branch. No modal, no approval prompt, no confirmation of any kind.
~14:02 — I noticed the storefront had changed and stopped the session.
What appears to have gone wrong
No workspace confinement. The agent executed file and terminal tools outside the directory tree of the only registered project. There appears to be nothing tying tool execution to the active workspace.
No human-in-the-loop on destructive git operations. git commit and git push origin main ran through the terminal tool with no approval step. A push to main on a production remote is irreversible in practice.
The UI context was ignored. The IDE header showed one project. The agent behaved as though the entire filesystem were in scope.
Impact
Untested changes landed on the main branch of a live commerce platform — no ticket, no code review, no authorization from anyone responsible for that repo.
Has anyone else seen the agent operate outside the open workspace? And is there a setting I’m missing that confines it to the active project, or that forces confirmation before git push? Happy to share the session ID and the full transcript with the team privately.