Skip to content

Menu

Antigravity

IDE extensions: Review agent changes in your editor

Install the Antigravity extension in your own editor, complete a first diff review, and learn how editors not on the official list connect through ACP.

min read
10
Level
Intermediate
Last verified

This page covers the IDE extensions surface: talking to the agent and reviewing diffs in a side panel inside the editor you already use. By the end you should be able to install the extension, complete a first review, and know that editors not on the official list can connect through ACP. For choosing among surfaces, see Choosing an Antigravity surface.

An IDE extension is a plugin for an existing editor; the official documentation also describes a standalone Antigravity IDE, which is a different thing. The standalone IDE is not supported for enterprise deployments, so enterprise accounts should use an extension, the app, or the CLI (see the official enterprise page). This page covers extensions only.

The official extensions overview lists Visual Studio Code, Visual Studio, JetBrains IDEs, Android Studio, Zed, Xcode, and Eclipse. The list changes, so follow the official overview. Install steps and minimum versions differ per editor; this site does not repeat them one by one. It covers the shared flow and points to each editor’s official guide.

For editors not on the list, see “Connecting through ACP” below.

The official documentation says IDE extensions, the CLI, and the desktop app share one authentication system: your sign-in determines model entitlements, quota limits, and data privacy policies. Individual developers sign in with a personal Google account and use the quota of that account’s plan, including the free tier. Enterprise users choose to sign in with Gemini Enterprise and select a Google Cloud project and region when prompted. For account types and where quota comes from, see Plans and accounts.

The official JetBrains page also lists several authentication configurations (personal account, Gemini Enterprise, Gemini API key, and API or ADC), some marked as preview. If you use an API key, read it from an environment variable or a managed secret service and never commit it in a config file; see API key safety.

This example uses VS Code; other editors differ, so follow each official guide. It uses a fictional repository demo-notes containing only README.md and notes/alpha.md.

  1. In the Extensions panel, search for the officially published Google Antigravity extension and install it, then click the Antigravity icon in the Activity Bar to sign in. The official page says the first launch automatically installs the local agy backend service.

  2. Open demo-notes and type in the chat:

    Edit only notes/alpha.md: fix the typo in the heading.
    Do not modify other files and do not run commands.
  3. When the agent finishes, its changes appear as inline diffs in the editor. Accept or Reject each change, or use the batch Accept All and Reject All; a wrong decision can be undone.

  4. Acceptance check: only notes/alpha.md changed, and the change is exactly that one heading. Confirm once more with a Git diff.

The official page also describes features such as attaching terminal output with @terminal, and settings that switch between inline and side-by-side diffs and control whether sending a new message auto-accepts pending changes. Setting names and defaults change with versions, so follow the official VS Code page. Note behaviors like auto-accepting pending changes in background files when you send a new message: finish your review before you continue the conversation.

The official Agent side panel page says each turn shows the agent’s work steps, its reply, and a summary of changed files with a Review button; while edits await review, a bar above the prompt input lists each edited file with reject-all and accept-all controls. The review principle is the same as in the app and CLI: see which files changed first, then each change, and accept last.

The Agent Client Protocol (ACP) lets any editor that supports it use Antigravity as the agent in its chat panel. The CLI includes agy acp, which the editor launches as a subprocess and talks to over standard input and output. The agent, tools, sign-in, and settings all come from the CLI, so behavior matches the terminal.

Shared preparation:

  • Install the CLI, confirm agy is on your PATH, and sign in with an interactive session at least once (agy acp reuses cached credentials).
  • Get the absolute path with which agy; some editors do not inherit your shell’s PATH when launching agents.
  • Register agy with the argument acp as a custom agent in the editor.

The official page says Zed, JetBrains IDEs, Android Studio, and Xcode support ACP natively, while VS Code needs a community ACP client extension (maintained by the community, not Google; the official extension is described above). Configuration locations differ per editor; see the official ACP page. Permission requests pause in the editor until you allow or deny them; judge each one as described in the CLI overview.

Counterexample: “Install the extension in the company’s real repository, then ask it to refactor a whole module and auto-accept every change.”

The problem: one large change with no per-change review is hard to debug when it goes wrong. Rewrite it as:

First finish a one-file task in a synthetic repository to learn Accept, Reject, and undo.
In a real repository, give one small task per turn; finish reviewing the current changes
before continuing the conversation. Before allowing writes or command execution,
check the permission settings and keep Git available for rollback.
  • The extension comes from the official publisher and the editor version meets the official requirements.
  • You are signed in and know your account type and quota source.
  • The first task ran in a synthetic repository and the changes match expectations.
  • You reviewed all pending changes before continuing the conversation and know how to undo.
  • With ACP, agy is signed in and registered by absolute path.
  • No sign-in entry or sign-in fails: check the editor version and extension source, and use an authentication method listed on the official page; enterprise accounts should contact their administrator.
  • ACP will not start: check that agy --version runs, that the path is absolute, and that you are signed in; then check the editor’s own logs.
  • A change was accepted by mistake: use the editor’s undo or restore with Git; do not let an agent write files in a directory without version control.
  • The official page differs from this page: follow the official page; this page did not install extensions in each editor.

This is an independent project and is not affiliated with Google.

Next: return to Choosing an Antigravity surface to compare other surfaces; if you work in a terminal, read Install and sign in.