Matching Every Task to the Right Antigravity Surface
One common mistake developers make is forcing every workflow through a single chat box. Google Antigravity purposefully splits capabilities across three synchronized runtimes—Antigravity IDE (built on VS Code), Antigravity 2.0 (standalone Electron orchestration app), and the Antigravity CLI (agy)—while automatically honoring the exact same workspace .agents/ rules and skills across all three.
Picking the right surface eliminates UI friction immediately: stay inside the IDE when cursor context matters most, switch to Antigravity 2.0 when orchestrating subagents, browser checks, and cron schedules, and lean on agy when scripting shell pipelines or terminal refactors.
| Surface | Standout Capabilities | Highest-Efficiency Use Cases |
|---|---|---|
| Antigravity IDE | Tab/Supercomplete, Tab-to-Jump/Import, Cmd/Ctrl+I inline, Code Lenses, Diagnostic Auto-Fix | Rapid file authoring, targeted function refactors, fixing compiler lints inline |
| Antigravity 2.0 App | Chat canvas @ mentions, media drag-drop, Cron Scheduled Tasks, Artifacts Auxiliary Pane, Browser agent | Multi-repo orchestration, UI testing with screenshots, recurring site monitors |
Antigravity CLI (agy) | agy -p one-shot pipes, /fork, /rewind, /compact, Terminal Sandbox controls | CI/git-hook automation, parallel TUI experiments, fast headless queries |
Proactive CLI Session Control: /fork, /rewind, /compact, and -p
Senior terminal engineers avoid sitting passively while an agent chases the wrong architecture for ten minutes. Antigravity CLI ships first-class TUI recovery commands built specifically for crisp course-correction.
Notice something veering off track? Hit Esc immediately to cancel the active turn cleanly. Already tested a multi-file approach that broke tests? Run /rewind (or /undo) to restore an earlier checkpoint, /compact <next-step> after discovery passes to keep context lean, or /fork to test a speculative refactor in a parallel branched session while keeping your main baseline safe via /resume.
# Headless non-interactive pipeline query via agy CLI (-p)
git diff --staged | agy -p "Check for breaking API changes or missing error handling."
# Inside interactive agy TUI:
# 1. @mention exact targets instead of letting the agent scan blindly
> @scripts/editorial_ceo.py @scripts/build_blog.py Inspect CTA balance and write an implementation plan.
# 2. Trim discovery noise before coding
/compact Proceed with edits only on select_best_topic
# 3. Branch risky experiments safely
/fork
Sandboxed Permissions Without Constant Click Fatigue
Setting overly strict prompts on every harmless read or pytest check breaks flow, while wide-open execution risks unintended edits outside a project. Antigravity solves this cleanly through project-scoped permission overrides and terminal sandboxing inside ~/.gemini/antigravity-cli/settings.json (or Antigravity 2.0 Settings -> Global vs Project Policies).
Setting toolPermission to proceed-in-sandbox with enableTerminalSandbox: true (or using auto mode) lets local builds, formatters, and test runners execute inside the containment sandbox autonomously, while commands reaching outside the sandbox still stop for human approval.
{
"toolPermission": "proceed-in-sandbox",
"enableTerminalSandbox": true
}
Pair @ file mentions with Ctrl+V screenshot pastes in both Antigravity 2.0 and agy CLI—sending exact paths plus visual evidence resolves frontend layout bugs in one turn instead of five text explanations.
Closing the Loop With IDE Diagnostic Auto-Fix & Visual Evidence
Verification loops multiply agent accuracy faster than prompt engineering tricks. When working inside Antigravity IDE, wire your workspace tests before authoring code and trigger Diagnostic Auto-Fix directly from compiler errors or the Problems pane instead of copy-pasting stack traces manually into chat.
For responsive CSS, layout clipping, or dark-mode contrast checks, capture the rendered UI screenshot directly into Antigravity 2.0 or paste via Ctrl+V into agy. Giving visual evidence alongside exact @ file paths focuses the model immediately on concrete selectors and viewport rules rather than guessing DOM structure.
- Use Tab-to-Jump and Tab-to-Import in Antigravity IDE for repetitive module wiring instead of waiting for full chat turns.
- Invoke Cmd/Ctrl+I with no text highlighted to generate net-new boilerplate right at your cursor.
- Use Antigravity 2.0's Auxiliary Pane to monitor Artifacts, Subagents, Background Tasks, and Files Changed side by side.