Antigravity IDE, Editor Extensions & Browser Automation
Writing code purely from a CLI or a standalone desktop app still leaves a gap. During day-to-day feature work, your eyes rarely leave the editor—accepting inline completions, scanning red/green inline diffs, and fixing compiler squiggles on the fly. Once you finish a frontend view or a blog post, you still need to open it in a real browser to check layout, images, and console errors.
Antigravity splits the editor and browser toolchain into three composable building blocks:
- Antigravity IDE: A standalone AI-first IDE built on VS Code that combines passive completion, scoped inline commands, and collaborative agents on a single editing canvas;
- Mainstream Editor Extensions +
agy acpProtocol: Keep the VS Code, JetBrains, or Zed setup you have refined for years and attach the exact same agent engine through ACP; - Browser Automation & Verification: Use the built-in
/browsercommand or Chrome DevTools MCP to close the loop from build → real browser DOM/console/screenshot verification → automatic source fixes.
Aligned with the official ide manual and verified locally on Linux with agy v1.5.19, this post covers how to choose among these pieces, wire them up, and avoid the most common pitfalls.

1. Antigravity IDE: Tri-Modal Editing Alongside the Desktop App
Antigravity IDE is a standalone AI-first IDE built on VS Code. Rather than replacing the Antigravity 2.0 desktop app from the previous post, the two run side by side and complement each other:
- Shared project and global configuration: Both automatically discover and load rules, custom Skills, and Plugins under
<project-root>/.agents/, and share global settings in~/.gemini/config/. You never have to maintain three copies of your rules across the CLI, desktop app, and IDE; - Isolated runtime artifact directories: Antigravity IDE stores its own runtime artifacts and state under
antigravity-ide/, keeping it completely separate fromagyCLI (antigravity-cli/) and the desktop app (antigravity/).
Instead of cramming every task into one chat box, Antigravity IDE divides AI interaction into three distinct modalities matched to task scope.
1. Modality A (Passive Prediction): Antigravity Tab
This is the quietest, highest-frequency layer while you type. Antigravity Tab combines surrounding code, open tabs, recent terminal output, and optional clipboard context to predict your next edit—all collapsed onto a single Tab key:
- Autocomplete and Supercomplete: Autocomplete extends code right at the cursor, while Supercomplete pops up a floating preview of multi-line diff suggestions that can insert, delete, and replace code in one move;
- Tab to Jump: After editing a struct field or function signature, it predicts the next location you need to update—press
Taband your cursor jumps straight there; - Tab to Import: Reference a module or symbol you have not imported yet, and accepting the completion with
Tabautomatically adds the matchingimportat the top of the file; - Ergonomic key controls: Press
Tabto accept the full suggestion orEscto dismiss it. If the tail of a prediction is off, pressCmd+Right(macOS) orCtrl+Right(Linux) to accept word by word instead of deleting an entire line.
2. Modality B (Scoped Edits): Inline Command
Press Cmd+I (macOS) or Ctrl+I (Linux) to open the inline prompt for targeted, localized edits:
- With a code selection: Ask it to refactor, add error handling, explain logic, or rewrite an implementation—edits stay strictly inside the highlighted selection without touching surrounding code;
- Without a selection: Generate new code directly at the cursor;
- Best fit: Adding a docstring to an existing function, writing clear explanatory comments, or cleaning up a single function’s readability—done in place within seconds, without opening a long sidebar conversation.
3. Modality C (Collaborative Agents): Sidebar Chat, Agent Mode & Planning Mode
Once a task spans multiple files or requires running commands to verify changes, switch to the sidebar:
- Sidebar Chat: The main panel for asking questions, inspecting context, and working through design options;
- Agent Mode: A multi-step collaborative agent that reads code, edits multiple files, runs build and test commands, searches the web, and calls MCP tools;
- Planning Mode: For uncertain or higher-risk changes, review and refine a step-by-step plan before the agent touches any files—avoiding sprawling edits you later have to revert.
4. Three Native Editor UI Integrations
Beyond the three modalities, Antigravity IDE embeds agent actions directly into three native editor surfaces:
| UI Integration Point | Location | Time Saved in Practice |
|---|---|---|
| Inline Code Lenses | Directly above class and function definitions | One-click triggers for Refactor, Write Tests, and Explain Code without manual selection |
| Visual Diff Overlays | Inline on the editor canvas | Highlights proposed changes in red/green with per-hunk Accept or Reject right in place |
| Diagnostic Auto-Fix | Compiler squiggles, lint warnings, and the Problems panel | Hand errors directly to the agent to generate and apply a fix—no copy-pasting diagnostics into chat |
Keeping the boundaries between these three modalities sharp yields the highest velocity: rely on Tab for completions and cursor jumps, Cmd+I / Ctrl+I for single-function tweaks, and Agent Mode for cross-file interface changes and test-backed verification.
2. Keeping Your Editor: Extensions and the agy acp Protocol
Many teams and senior engineers have no interest in switching their primary editor—Java and Go developers rely on JetBrains refactoring and debuggers, frontend engineers have years invested in VS Code extensions, and others live in Zed, Xcode, or Android Studio.
Antigravity does not force a migration to its own IDE. Under the hood, its agent engine is exposed as a unified ACP (Agent Client Protocol) stdio server. As long as your editor has an official extension or native ACP support, it spawns an agy acp process and communicates via JSON-RPC over stdin/stdout—bringing the exact same models, rules, Skills, MCP servers, and sandbox into the editor you already use.
1. Verified agy acp --help Flags
Running agy --version (verified 1.5.19) and agy acp --help on Linux surfaces the core flags you will use most when wiring up an editor:
1 | agy acp \ |
Here is what each flag does in practice:
| Flag | Purpose | Practical Notes |
|---|---|---|
--stdio |
Use stdio JSON-RPC transport (default) | Standard transport used by most editor ACP integrations |
--ide-mcp-port |
Connect to the MCP tool server exposed by the host IDE | Officially requires nc in $PATH (verified at /usr/bin/nc locally) |
--sandbox |
Enable OS terminal sandboxing | Strongly recommended for editor extensions to prevent out-of-bounds commands |
--process-per-session |
Spawn an isolated worker process per session | Prevents context and runtime state bleed across parallel editor windows |
--login |
Interactively sign into a Google account in the terminal, then exit | Used during first-time setup or token refresh for ACP terminal auth |
--add-dir |
Attach an additional workspace directory (repeatable) | Ideal for cross-repo work, such as mounting a shared proto directory into a frontend repo |
2. Mainstream Editor Integration Matrix
Setup details vary slightly by host editor, but every integration runs on the same Antigravity engine and customization layer:
| Editor | Minimum Version | Integration Method | Notable Capabilities |
|---|---|---|---|
| VS Code | v1.90+ | Official Marketplace extension | Cmd+L / Ctrl+L sidebar chat, open-file awareness, inline diffs, automatic theme sync |
| JetBrains IDEs | 2026.2.1+ | JetBrains AI > Settings > Agents | Covers IntelliJ IDEA, PyCharm, WebStorm, GoLand, CLion, and Rider |
| Zed | 0.140.0+ | Native ACP configuration | Lightweight, low-latency direct connection to agy acp over stdio |
| Other Mainstream IDEs | Varies by host | Extension or generic ACP setup | Supports Xcode, Android Studio, Visual Studio, Eclipse, and any generic ACP client |
If you have already configured ~/.gemini/config/AGENTS.md, .agents/rules/, and MCP servers for agy CLI or the desktop app, connecting VS Code, JetBrains, or Zed over ACP reuses all of them automatically—no per-editor duplication required.
3. Browser Automation: Closed-Loop Verification with /browser and Chrome DevTools MCP
Whether you build frontend apps, full-stack services, or a technical blog like this one, it is easy to fall into the “false green” trap: npm run build exits cleanly, unit tests pass, and hexo generate finishes without a warning. Then you deploy, open the live page, and hit failures only a real browser catches:
- A typoed image path or lazy-loading hiccup leaves a broken image placeholder on the page;
- An unquoted parenthesis or colon inside a Mermaid node label passes the build silently, then renders a giant red
Syntax error in textblock in the browser; - A wide table blows past the mobile viewport or article container, creating an ugly horizontal scrollbar;
- The HTML renders fine while the console quietly logs a JS Runtime Error or a static asset returns 404.
Whenever a change touches rendered output, a real browser belongs in the verification loop. Antigravity offers two complementary ways to wire it in.
1. Option 1: Built-in /browser Command + Browser Allowlist
When you just need the agent to open a local preview URL (such as http://127.0.0.1:4000), check live API docs, or glance at console errors, invoking the built-in /browser command directly in chat is the fastest path.
To keep an agent from wandering onto unintended domains while researching or following links, Antigravity 2.0 desktop settings provide a dedicated Browser Allowlist control. Restricting allowed hosts (for example, localhost, 127.0.0.1, and a shortlist of documentation domains) preserves local verification while locking down navigation boundaries.
2. Option 2: Fine-Grained Verification with Chrome DevTools MCP
When you need repeatable assertions and screenshot evidence, Chrome DevTools MCP (chrome-devtools) gives you far tighter control. Once connected, day-to-day verification typically chains four tool groups:
- Page lifecycle:
new_pageto open a tab,navigate_pageto reuse it across routes, andclose_pageto clean up afterward; - DOM & state inspection:
take_snapshotto inspect the accessibility tree and locate elements, andevaluate_scriptto run batch DOM and layout assertions in JavaScript; - Runtime auditing:
list_console_messagesfor frontend errors and warnings, andlist_network_requeststo catch failed 4xx/5xx requests; - Visual & performance safety net:
take_screenshotfor full-page or above-the-fold visual checks, pluslighthouse_auditfor a quick performance and accessibility pass.
Connecting coding, modality selection, local builds, and closed-loop browser verification into a single pipeline looks like this:
flowchart TD
A["Start coding task"] --> B{"Assess change scope"}
B -- "Completion / quick jumps" --> C["Antigravity Tab"]
B -- "Single function / local comments" --> D["Inline Command (Cmd+I / Ctrl+I)"]
B -- "Cross-file refactor / new feature" --> E["Agent Mode / agy acp Extension"]
C --> F["Build locally & start preview server"]
D --> F
E --> F
F --> G["Open preview with /browser or Chrome DevTools MCP"]
G --> H["Scroll each image to trigger lazy-load + evaluate_script assertions<br/>Verify images / Mermaid SVG / table overflow"]
H --> I["list_console_messages + list_network_requests<br/>+ take_screenshot visual check"]
I --> J{"All checks pass?"}
J -- "Issues found" --> K["Locate source & auto-fix"]
K --> F
J -- "All passed" --> L["close_page on temp tabs + stop local server"]
4. Three Battle-Tested Browser Verification Practices
These three practices did not come from reading documentation—they came from running Chrome DevTools MCP against this blog and production frontend repos and fixing what broke.

1. Group Session Tabs Automatically with browser-tab-group
The moment you connect Chrome DevTools MCP to your daily Chrome window, an immediate annoyance shows up: a single verification pass opens five or six local preview tabs mixed right into your research and email tabs. Afterward, you cannot tell which tabs the agent opened and which ones you meant to keep.
My local fix is a lightweight Skill (in ~/.gemini/config/skills/browser-tab-group/) paired with a tiny Chrome extension and a session-tab-url.py helper:
1 | # 1. Resolve the current Antigravity session title and generate the local extension redirect URL |
This prints a URL like chrome-extension://<ext_id>/group.html?group=<session-title>&url=<target-url>. Passing that URL to new_page tells the extension to look for an existing Tab Group matching the current session title—creating one if missing, joining it if present—and then redirect straight to the target page.
For subsequent pages in the same verification pass, call navigate_page on that existing tab instead of spawning new ones. Finish with close_page, and your daily tab bar stays spotless.
Source code & multi-session isolation: For the full Chrome MV3 extension source, session-tab-url.py, and the lazy-loading stdio proxy that starts debugging Chrome on demand, see Engineering in Practice #2: Lazy MCP Proxies and Chrome Session Tab Groups. If you frequently run multiple sessions driving Chrome in parallel, continue to #5 Multi-Session Chrome Guardrails & Tab Ownership Isolation.
2. Verifying Lazy-Loaded Images: Scroll Per Image with scrollIntoView
Modern frontend frameworks and Hexo themes (including Butterfly) lazy-load article images by default, leaving each off-screen image as a 1x1 placeholder until it enters the viewport.
My first verification script tried to cut corners with a single window.scrollTo(0, document.body.scrollHeight) straight to the bottom. The script immediately threw false alarms reporting naturalWidth === 1 on several mid-article images—the images were completely fine, but jumping straight to the footer skipped the IntersectionObserver and scroll triggers for everything in between.
Switching evaluate_script to center each image with scrollIntoView, dispatch a scroll event, and wait briefly for decoding eliminated false positives completely:
1 | async () => { |
In under 20 lines, one script verifies every lazy-loaded image and checks every table for horizontal overflow.
3. Never Expose Your Logged-In Daily Browser Profile to Autonomous Agents
Your daily browser typically holds live session cookies for corporate SSO, cloud consoles, GitHub, email, and billing dashboards. Letting a high-autonomy agent act inside that default context means a single misclick can cause real damage.
Stick to two isolation habits:
- Allowlist as a floor: Configure the desktop app’s Browser Allowlist so only local preview hosts and staging environments you actively debug are reachable;
- Clean browser contexts: When calling Chrome DevTools MCP’s
new_pageagainst sensitive flows or pages that need a clean state, passisolatedContextexplicitly (for example,isolatedContext: "audit"). This creates an isolated browser context that shares zero cookies or local storage with your default profile. One caveat:chrome-extension://tab-grouping redirect URLs cannot be combined withisolatedContext—pass the target URL directly tonew_pagewhen using an isolated context.
5. Five Common Pitfalls with IDE, Extensions, and Browser Automation
Once the pipeline is wired up, these five snags account for most real-world friction:
- Forcing cross-file refactors through
Cmd+IInline Command
Inline Command is intentionally locked to your current selection and will never modify anything outside it. If you change a function’s parameters inline, it will not update the six callers in other files, leaving a broken build. Respect the boundary: use Inline Command for single-block edits, and switch to Agent Mode the moment call sites or multiple files are involved. - Omitting
--ide-mcp-portor missingncwhen wiringagy acp
In minimal Linux images or containers, it is common to getagy acpchatting normally while the agent remains blind to your open files and Problems panel diagnostics. Nine times out of ten, either--ide-mcp-portwas omitted ornetcat(nc) is missing from$PATH, leaving the IDE-side MCP bridge unconnected. - Forgetting
--sandboxin third-party editoragy acpcommands
Developers remember to enable terminal sandboxing in the CLI or desktop app, then write a bareagy acp --stdiocommand when configuring a third-party editor. Pair that with relaxed auto-approval in the client, and commands run completely unsandboxed. Bake--sandboxand--process-per-sessioninto your default ACP launch command from day one. - Checking only DOM presence while skipping console logs and screenshots
Asserting that an article container mounted misses subtle breakage: raw**markers leaking into rendered text from CommonMark punctuation quirks, CSS tables stretching the layout, or a script quietly throwing in the console. Always pairevaluate_scriptassertions withlist_console_messages,list_network_requests, andtake_screenshot. - Leaving temporary preview tabs and local preview ports behind
Committing right after verification often leaves a dozen stale127.0.0.1:4000tabs open and a straypython3 -m http.serverorhexo serverholding the port—triggeringAddress already in useon the next run. Makeclose_pageand stopping the temporary preview server part of your standard verification teardown.
















