Google Antigravity 2.0 Complete Tutorial: From Download to Your First AI Agent
Step-by-step tutorial for Google Antigravity 2.0. Learn how to install the desktop client, create multi-repo projects, review line-by-line diffs, and verify code with embedded terminal.
Quick Answer: Google Antigravity 2.0 is an autonomous Agent-First software engineering desktop client that functions as a mission control center for AI developers. Unlike legacy code completion plugins, Antigravity 2.0 operates as an independent desktop application capable of indexing multi-repository codebases, generating structured implementation plans, executing line-by-line code changes in isolated Git worktrees, and running test suites via an embedded terminal and browser actuation. To get started, download the client from the Official Antigravity Download Portal, initialize a Project with your local directories, issue a structured exploration prompt, and review proposed code diffs directly in the Review Pane.
1. Core Definition: What Is Google Antigravity 2.0?
Google Antigravity 2.0 is Google’s dedicated, Agent-First software engineering desktop client.
Traditional AI coding assistants (such as GitHub Copilot or inline autocomplete tools) act as reactive “next-token predictors.” The human developer still carries the cognitive burden of navigating directory trees, copying code, running terminal commands, and manually fixing regressions.
Antigravity 2.0 flips this paradigm:
- Central Mission Control: It operates as an independent desktop application (built on a high-performance native/Electron architecture) specifically designed to orchestrate, supervise, and execute multiple concurrent autonomous AI agents.
- Closed-Loop Engineering Autonomy: An Antigravity Agent can index your entire repository, formulate structured Implementation Plans, edit files across multiple directories, run test suites in an embedded terminal, and validate user interfaces using automated browser actuation.
Traditional Autocomplete (Copilot Model):
Human conceives feature -> Human writes boilerplate -> AI predicts line -> Human tests manually -> Human fixes bugs
Antigravity 2.0 (Agent-First Model):
Human sets architectural goal -> Agent explores repo -> Agent drafts Plan -> Human approves -> Agent codes & self-tests -> Human reviews visual Diff -> 1-Click Merge
2. The Problems It Solves: The Pain of Legacy AI Tools
Modern enterprise and full-stack software development involve complex, multi-step workflows that simple chat sidebars cannot handle:
| Legacy Development Pain Point | Antigravity 2.0 Solution |
|---|---|
| Steep Codebase Onboarding: Understanding a 100k+ line repo takes days of tracing function calls. | Agent parses dependencies in seconds, explaining architecture, entry points, and edge cases. |
Multi-Repo Context Switching: Full-stack apps require updating frontend/, backend/, and docs/ in sync. | A single Project unifies multiple local repositories with shared architectural awareness. |
| Working Directory Contamination: Concurrent tasks or experimental refactors dirty your main Git branch. | Built-in Git Worktree Isolation runs parallel agents in isolated physical directories with zero clashes. |
| Broken Feedback Loops: AI generates code with syntax errors that you must manually copy and test in an external shell. | Integrated 2.10.0+ Terminal & Browser MCP allows agents to run builds, catch errors, and self-heal automatically. |
3. Recommended Use Cases vs. Anti-Patterns
✅ Ideal Scenarios
- Full-Stack Feature Implementation: Scaffolding UI components, writing backend endpoints, and updating database migration scripts in one continuous flow.
- Repository-Wide Refactoring & Upgrades: Migrating frameworks (e.g., CommonJS to ESM, React to Next.js App Router) with automated regression test execution.
- Autonomous Bug Hunting & Self-Healing: Providing a reproduction step and letting the agent write a failing test, patch the bug, and verify the fix.
- End-to-End Visual & SEO Audits: Directing the browser agent to click through user flows, capture console logs, and record UI state changes.
❌ Anti-Patterns (When Not to Use)
- Single-Line Micro-Edits: If you only need to rename a local variable, native IDE shortcuts or standard autocomplete are faster.
- Unrestricted Production Operations: Never run agents with unrestricted permissions on live production databases without strict review gates.
4. Antigravity Product Landscape: Desktop vs. IDE vs. CLI vs. SDK
Google offers four distinct products under the Antigravity brand. Choosing the right tool prevents workflow confusion:
| Product Surface | Architecture & Form Factor | Target Audience & Best For |
|---|---|---|
| Antigravity 2.0 Desktop (This Series) | Standalone Desktop App (Mission Control) with Projects, Worktrees, Artifacts, Browser, and Embedded Terminal. | Professional developers, architects, and full-stack engineers orchestrating multi-agent workflows. |
| Antigravity IDE | Custom AI-First Code Editor (VS Code fork) focused on traditional line-by-line file editing. | Developers who prefer a single-window editor experience with inline AI code lenses. |
Antigravity CLI (agy) | Lightweight Terminal TUI Tool designed to run inside headless environments or SSH sessions. | DevOps engineers, backend developers on remote cloud instances, and CI/CD pipelines. |
| Antigravity Python SDK | Programmatic Agent Leasing Library to expose custom tools and manage agent execution in Python code. | Enterprise teams building bespoke internal AI platforms on top of the Antigravity engine. |
5. System Requirements & Environment Prerequisites
Before installing, ensure your workstation meets the official baseline requirements:
1. Operating System Baseline
- macOS: macOS 12.0 (Monterey) or later; native Universal binary supporting Apple Silicon (M1/M2/M3/M4) and Intel x64;
- Windows: Windows 10 / 11 64-bit (x64 and ARM64 supported); WSL2 recommended for Linux-native tooling;
- Linux: Ubuntu 20.04+, Debian 11+, or Fedora 36+; requires
glibc >= 2.31and standardlibstdc++6.
2. Required Developer Toolchain
Verify that core developer CLI tools are accessible in your environment:
# 1. Verify Git (version 2.30+ recommended for full Worktree support)
git --version
# 2. Verify Node.js & package manager (if developing Web / Fullstack apps)
node -v # v18.0.0+ recommended
npm -v
# 3. Verify Python (for data pipelines and custom scripts)
python3 --version # 3.10+ recommended
6. Step-by-Step Download & Installation Guide
- Visit the Official Download Portal: Navigate to the Official Google Antigravity Download Page in your web browser.
- Download Your Operating System Package:
- Authentication & First Launch: Launch the application. Sign in with your Google account (Gemini Enterprise or Google Workspace AI subscription).
7. Client UI Tour: The 4 Core Workspace Zones
- Left Sidebar:
- Top Navigation Bar:
- Chat Canvas (Main Orchestrator):
- Auxiliary Pane (5 Modular Tabs):
8. Creating Your First Project
In Antigravity 2.0, a Project represents the root operational boundary for context, permissions, and tool execution.
Step 1: Click “New Project”
Click the + (New Project) icon at the top of the Left Sidebar.
Step 2: Associate Working Folders
- Single Repository: Select your existing project directory.
- Multi-Repository Architecture: Antigravity allows adding multiple folders (e.g., frontend, backend, and documentation) under one project. The agent maintains unified cross-repo intelligence without manual context re-prompting.
9. Launching Your First AI Agent
In the prompt input panel, execute a repository exploration prompt:
Please thoroughly analyze the current project codebase and report back:
1. What is the business purpose and core functionality of this project?
2. What tech stack (frameworks, language versions, key libraries) is in use?
3. What is the directory topology and responsibility of each folder?
4. What are the standard commands to run the local dev server and test suite?
5. Are there any visible configuration flaws, outdated packages, or architectural bottlenecks?
10. Your First Code Modification: Diff Review & Acceptance
Context: We need to ensure application environment safety.
Objective: Implement a robust environment variable validator in `src/utils/envCheck.ts`.
Requirements:
1. Validate mandatory variables `DATABASE_URL` and `API_SECRET`;
2. Throw a detailed, descriptive error if missing;
3. Write unit tests in `src/utils/__tests__/envCheck.test.ts`;
4. Use TypeScript strict mode with no `any` types.
Acceptance Criteria: Run the test suite in the terminal and ensure all tests pass 100%.
- Switch to the Review Tab on the right;
- Inspect the green (additions) and red (deletions) line-by-line diffs;
- Click Accept All to apply all modifications, or click Accept Hunk on individual blocks.
11. Verification & Closing the Task Loop
- Open Integrated Terminal: Press
Cmd/Ctrl + backtickto reveal the sidebar terminal; - Execute Test Suite:
npm test; - Verify Output: Confirm all tests pass 100%;
- Commit Changes: Open the VCS panel, review staged files, generate an AI commit message, and click Commit & Push.
12. 5 Critical Beginner Mistakes to Avoid
- Using Local Mode for Parallel Tasks: Always switch to New Worktree Mode when running parallel subagents or complex refactors.
- Over-Permissive Tool Execution Policies: Keep
request-reviewactive or enableproceed-in-sandboxin Project Settings. - Ambiguous Prompts: Follow the C-O-C-V-A formula (Context, Objective, Constraints, Verification, Acceptance Criteria).
- 50+ Turn Context Bloat: Start a New Conversation per feature, linking past insights via
@conversationor@file. - Ignoring 2.10.0+ Embedded Terminal: Use
Cmd/Ctrl + backtickso the agent automatically ingests terminal outputs for automated self-healing.
13. Troubleshooting Common Issues
Issue 1: Command requires approval but was blocked in non-interactive mode
- Fix: Click the permission approval banner in the Chat Canvas, or add the command prefix to
Settings -> Permissions -> Allowlist.
Issue 2: Git worktree creation failed: extensions.worktreeConfig not supported
- Fix: Upgrade Git to version 2.38+ via
brew upgrade git.
14. Keyboard Shortcuts Cheat Sheet
| Action | macOS Shortcut | Windows / Linux Shortcut |
|---|---|---|
| Focus Prompt Input | Cmd + L | Ctrl + L |
| Global File Search | the shortcut assigned in Settings → Shortcuts | the shortcut assigned in Settings → Shortcuts |
| Switch Conversations | Cmd + K | Ctrl + K |
| Start New Conversation | the shortcut assigned in Settings → Shortcuts | the shortcut assigned in Settings → Shortcuts |
| Toggle Embedded Terminal | Cmd + backtick | Ctrl + backtick |
| Open Review / Diff Pane | the shortcut assigned in Settings → Shortcuts | the shortcut assigned in Settings → Shortcuts |
| Submit Prompt | the shortcut assigned in Settings → Shortcuts | the shortcut assigned in Settings → Shortcuts |
15. Official Resources & Codelabs Index
- Official Website: Google Antigravity Home
- Documentation: Antigravity 2.0 Getting Started Guide
- Interactive Tutorial: Official Google Codelab
- Release Changelog: Google Antigravity Release Notes
16. What’s Next in the Series?
👉 Next in Series:02 · Antigravity 2.0 UI & Shortcuts Complete Guide: Every Button, Panel & Keybinding Explained