{"slug": "the-one-click-exporter-ai-studio-antigravity-probed-to-its-limits", "title": "The One-Click Exporter: AI Studio Antigravity, Probed to Its Limits", "summary": "A developer tested Google's new 'Export to Antigravity' feature, which promises one-click transfer of multi-agent prototypes from AI Studio to a local workspace. The export successfully transferred project files and secrets but failed to carry over conversation history as advertised. The developer also encountered a Gemini API bug in the generated code that was fixed using Antigravity's built-in agent.", "body_md": "*What nobody tells you about exporting your multi-agent prototype to a local workspace.*\n\nEvery architect who's prototyped a multi-agent app in Google AI Studio eventually hits the same wall: the prototype works, but it lives in a browser tab. At I/O 2026, Google shipped a fix — Export to Antigravity, a one-click handoff to a local production workspace, carrying \"all the context\" with it.\n\nI ran a real two-agent prototype through it. Here's exactly what survived the trip, what didn't, and what I had to fix by hand — including a bug that had nothing to do with the export itself.\n\n**The project:** Research Digest — a sequential two-agent app. **Agent 1 (Researcher)** takes a topic, uses grounded web search to gather sources. **Agent 2 (Editor)** synthesizes those findings into a polished digest. Persistence via Firestore, with a history archive of past digests.\n\nBuilt entirely from a single prompt in [AI Studio's Build mode](https://aistudio.google.com/app/apps). Along the way, provisioning Firestore surfaced my first real gotcha before I even got to the export step — more on that below.\n\n**Triggering the export:** Code tab → Export → Export to Antigravity. The dialog is genuinely informative — it tells you upfront what's coming: all project files, conversation history, and explicitly \"1 secret will be included.\"\n\nThe export dialog's claims, checked one by one:\n\n| Claimed to transfer | What I found |\n|---|---|\n| All project files | ✅ Confirmed — full structure landed intact: .agents, .antigravity, src, config files, README.md with setup instructions |\n| Secrets (1 secret) | ✅ Confirmed — GEMINI_API_KEY arrived populated in .env, worked immediately, no manual re-entry |\n| Conversation history | history❌ Did not transfer. The imported \"Research Digest\" project showed \"No conversations yet\" in Antigravity's Agent Manager, despite the dialog's explicit promise. Checked twice, on two separate screens — consistent result. |\n\nGotcha 1 — \"Conversation history will carry over\" is currently not accurate, at least not visibly. Whatever context existed in the AI Studio thread did not surface as a conversation in Antigravity.\n\nGotcha 2 — The export doesn't tell you where it went.\n\nAfter exporting, nothing appeared in Downloads. The Agent Manager app knew a project called \"Research Digest\" existed, but gave no visible file path. I had to search my whole computer by name to find it — it turned out to be nested inside an internal ~/antigravity/ folder. Only then could I \"Open Folder\" in the separate Antigravity IDE app and actually see the code. The Agent Manager (chat/orchestration surface) and the IDE (VS Code-based editor) are two different apps that don't automatically hand off to each other — that disconnect cost real time.\n\nGotcha 3 — First local run surfaced a real bug, not an export problem.\n\nOnce running (npm install → npm run dev, clean install, 0 vulnerabilities), the app loaded fine and confirmed \"Connected to Cloud Firestore.\" But clicking Generate Digest failed:\n\n```\n\"Tool use with a response mime type: 'application/json' is unsupported\"\n```\n\nThis is a genuine Gemini API constraint — you can't combine tool use (web search) with forced JSON-mode output in the same call. Agent 1 was built by AI Studio doing exactly that. **This bug was baked into the generated code, not caused by the export.**\n\n**The fix** — via Antigravity's own agent, not manual coding:\n\nI described the error directly to Antigravity's agent panel. It analyzed `gemini.ts`\n\n, `server.ts`\n\n, `App.tsx`\n\n, and `DigestViewer.tsx`\n\n, then proposed a concrete plan: have Agent 1 return plain text instead of forced JSON, and have Agent 2 parse it into the structured digest. I reviewed the diff (2 files changed, +59/−53 lines combined) and accepted it.\n\nRe-ran Generate Digest — it worked end to end: Agent 1 gathered 5 grounded sources, Agent 2 synthesized them into a readable digest with proper citations, and the result persisted to Firestore with a real document ID.\n\n**Before you export:**\n\n**After you export, before you keep building:**\n\n`~/antigravity/`\n\nor search by project name, don't wait for the UI to point you thereThe one-click export itself did what it promised on the parts that mattered most: files and secrets moved cleanly, and Firestore access — which had been broken back in AI Studio — worked correctly locally with zero extra configuration. What didn't survive was conversation context, and what slowed me down most wasn't the export at all — it was not knowing where my project physically landed, and hitting a pre-existing bug in the generated code. Antigravity's agent fixed that bug faster than I could have by hand. Net verdict: one click, then about **fifteen minutes of real troubleshooting** — mostly locating files and one legitimate bug, not fighting the migration itself.\n\n*If this was useful:*\n\nI write about actually using new AI dev tools — not just what the announcement says, but what happens when you run them against a real project. If you want more of this kind of hands-on testing, follow me on [LinkedIn](https://www.linkedin.com/in/lesly-zerna/)/ [Twitter/X](https://x.com/leslysandra).\n\nAlso found out this project, in this [repo](https://github.com/leslysandra/research-digest-aistudio2antigravity) in my [github](https://github.com/leslysandra)!\n\nGot your own gotchas from the AI Studio → Antigravity export? Reply or comment — I'll fold the best ones into a follow-up.", "url": "https://wpnews.pro/news/the-one-click-exporter-ai-studio-antigravity-probed-to-its-limits", "canonical_source": "https://dev.to/gde/the-one-click-exporter-ai-studio-antigravity-probed-to-its-limits-171e", "published_at": "2026-07-10 03:33:28+00:00", "updated_at": "2026-07-10 04:05:57.681523+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents", "large-language-models"], "entities": ["Google", "AI Studio", "Antigravity", "Gemini API", "Firestore"], "alternates": {"html": "https://wpnews.pro/news/the-one-click-exporter-ai-studio-antigravity-probed-to-its-limits", "markdown": "https://wpnews.pro/news/the-one-click-exporter-ai-studio-antigravity-probed-to-its-limits.md", "text": "https://wpnews.pro/news/the-one-click-exporter-ai-studio-antigravity-probed-to-its-limits.txt", "jsonld": "https://wpnews.pro/news/the-one-click-exporter-ai-studio-antigravity-probed-to-its-limits.jsonld"}}