Antigravity's /plan command adds a structured planning phase before code execution, letting development teams explore codebases, clarify requirements, and review implementation strategies without modifying a single file. The feature targets the gap between a rough idea and writing code - a gap where underspecified tasks routinely produce wasted diffs, regressions, or rework.
When a user invokes /plan, the agent runs a multi-phase workflow. It analyzes the prompt and workspace, inspects affected files and dependencies, then surfaces architectural decisions for review. If requirements are ambiguous, the agent asks targeted questions before drafting a structured Implementation Plan artifact. Users retain full control: they can leave inline comments, request scope adjustments, or click Proceed to begin step-by-step execution with validation checkpoints at each milestone.
When planning beats direct execution
The command is built for scenarios where jumping straight into code creates more problems than it solves. Complex refactors across multiple modules, database migrations, authentication overhauls, and security-sensitive patches all benefit from an upfront checklist. It also serves teams who want to align on strategy before any files change - a collaborative checkpoint that standard prompts skip entirely.
Antigravity positions /plan alongside several complementary reasoning modes. A comparison table in the documentation distinguishes it from /grill-me (Socratic design interviews for deep requirement alignment), /boost (multi-agent reasoning for concurrency bugs and algorithmic work), and /teamwork-preview (collaborative agent teams for repository-scale campaigns). Each command targets a different slice of the complexity spectrum.
How to use it
Users invoke /plan with a specific task - for example, "Refactor our authentication middleware to support OIDC token verification with JWKS caching" - or without arguments to start an open-ended discovery session. The agent inspects the active file and recent conversation history, then asks clarifying questions. Both the Antigravity 2.0 interface and CLI support the command, with plans rendered as standard artifacts that accept inline annotations and scope adjustments.
Generated plans follow the artifact format used across Antigravity. Users highlight text to add feedback, ask the agent to break tasks into smaller steps, or configure auto-approval policies through artifact review settings. Once approved, the agent follows the plan sequentially and validates each milestone with tests.
Why this matters for IT, development, and product teams
Every hour spent clarifying requirements after code is written costs multiples of the time it would take to clarify them upfront. The /plan command formalizes that pre-coding discipline inside the tool itself rather than leaving it to team process. For product and engineering managers, the reviewable artifact creates a paper trail of architectural decisions. For developers, it reduces the cognitive load of holding an entire refactor in their head while also writing the first file. The feature doesn't replace judgment - it gives teams a mechanism to apply judgment before the diff exists.
Your membership also unlocks: