Home Features AI Agent

The Antigravity AI agent — how it plans and executes

Top-Line Notes

The Antigravity AI agent works through a three-phase loop: plan, execute, and review. Before the first click, the agent produces a numbered task plan you must approve. During execution it streams reasoning output and pauses at checkpoints when it needs a decision. After the run, every step is captured in a replayable artifact. You can interject, stop, or hand off at any point.

The agent sits at the centre of the Antigravity surface. Understanding how it works — not just what it can do, but the specific sequence it follows and the points at which you remain in control — is the most useful thing you can learn in your first week with Antigravity. This page covers the Antigravity plan-execute-review loop in full, explains what triggers a checkpoint, describes the interjection interface, and documents the handoff mechanism for multi-agent pipelines.

The plan step

When you submit a task description, the Antigravity agent does not start browsing immediately. It enters a planning mode and constructs a structured task plan. The plan is a numbered list of steps, each of which specifies the action to take (navigate, click, read, write, run), the target (a URL, a CSS selector, a file path, a shell command), and the expected output that would allow the Antigravity agent to consider the step successful.

The plan appears in the Antigravity plan review panel before anything executes. You can read each step, edit the action or target for any step, add a constraint (for example, "skip this step if the error rate is below 1%"), reorder steps, or delete steps entirely. You can also add new steps that the agent did not include. If the plan looks wrong in structure rather than in detail, you can reject it and describe the task again with more context; the Antigravity agent will produce a revised plan.

The review phase is not a rubber stamp — teams that use Antigravity in production have reported that ten minutes of plan review saves two hours of cleanup from an agent that made an incorrect assumption in step three. The plan is the cheapest place to catch a misunderstanding.

The execution loop

Once you approve the plan, execution begins. The Antigravity agent works through the plan steps sequentially, though it may generate sub-steps dynamically if a page turns out to be more complex than the plan expected. You watch a live output stream in the run panel showing the agent's current reasoning: what it is reading, what it decided, what it is about to do next.

The execution loop handles common web patterns without additional configuration. Paginated results are followed automatically until the agent has the data it needs or reaches a declared limit. Form validation errors are read and the Antigravity agent retries with corrected values up to three times before surfacing a checkpoint. Redirects and OAuth flows are followed within the declared credential scope. File downloads are saved to the run's local workspace and logged in the artifact.

The agent does not attempt to solve captchas. When it encounters one, Antigravity surfaces a checkpoint immediately and waits for you to solve it manually. After you solve it, execution resumes from the same step. This is an explicit design choice: captcha solving would require either a third-party service or a bypass, both of which conflict with the Antigravity security model.

Checkpoints and interjection

A checkpoint is a deliberate pause in execution triggered either by the Antigravity agent (when it encounters a decision it cannot make confidently) or by you (by pressing the interject button at any point during a run). When a checkpoint fires, the run panel shows the agent's current state: the last step it completed, the decision it is stuck on, and a specific question for you to answer.

Interjection via the interject button gives you a text field to type a correction, a clarification, or a new instruction mid-run. The Antigravity agent reads your input, adjusts its context, and continues from the current step with the updated understanding. You do not need to stop and restart the run; interjection is always mid-flight. The correction and the agent's response to it are recorded in the Antigravity artifact timeline as a paired event, so reviewers can see exactly what human input occurred and when.

Watch mode is the layout that makes checkpoints comfortable. In watch mode the run panel is full-height on the right side of the screen, showing the agent's output stream and the checkpoint interface. The browser pane on the left shows exactly what the agent is seeing and doing. Most users run in watch mode for the first few runs with a new task type, then switch to background mode once they are confident in the plan.

Review and the artifact

When a run completes — successfully or after a stop — the artifact becomes available. The artifact timeline shows every step the agent executed, with timestamps, the agent's reasoning for each decision, and the inputs and outputs. You can expand any step to see the full HTTP response, the file diff, the test output, or the screenshot. The timeline is scrubable: drag the playhead to any point and the browser pane shows the page state at that moment.

Annotation tools let you mark individual steps as approved, flagged for review, or incorrect. Flagged and incorrect steps generate structured feedback that you can attach to the next run of the same task type, helping the agent avoid the same mistake. Teams have adopted the annotation workflow as their standard review process for AI-assisted changes, treating the artifact timeline the way they treat a pull request diff. The NIST secure software guidelines include relevant considerations for AI-assisted code review pipelines.

Handoff

Handoff moves a partially-completed run to another agent or to a human. When you trigger a handoff, the current artifact timeline up to that point is bundled with the remaining plan steps and a one-paragraph summary of the agent's progress. The recipient — whether a colleague or another Antigravity agent instance — opens the handoff bundle and picks up from the last completed step.

Handoff is most useful in multi-stage pipelines: a browsing agent gathers data and hands off to a coding agent that writes the analysis, which hands off to a human reviewer who approves the final output. Each stage has its own artifact segment, and the full pipeline is reconstructable from the chained bundle. The handoff API endpoint is documented in the API reference.

Agent phase reference

Phase What the agent does Your options
Plan Produces a numbered task plan with actions, targets, and expected outputs for each step Review, edit steps, add constraints, reject and re-describe
Execute — nominal Works through plan steps, handling pagination, redirects, forms, and file I/O automatically Watch live, use interject button, press stop at any time
Execute — checkpoint Pauses and presents a specific question when stuck on a decision it cannot make confidently Answer the question to resume, or stop the run
Review Completes the run and presents the full artifact timeline for inspection Scrub timeline, annotate steps, approve, flag, share, or re-run from any checkpoint
Handoff Packages artifact progress + remaining steps for transfer to another agent or human Trigger manually, attach to a new agent run, or assign to a team member

Related Antigravity reference pages

Antigravity AI agent — five questions answered

Direct answers to the planning, execution, and control questions that come up in the first week of use.

  1. How does the Antigravity AI agent plan a task?

    The agent receives your task description and constructs a structured numbered plan before any execution begins. Each plan step includes the action type, the target URL or file path, and the success condition. The plan appears in the review panel where you can edit individual steps, add constraints, reorder, or reject the plan entirely and re-describe the task. Execution only starts after you approve. This review window is the most valuable part of the workflow for new task types — catching a wrong assumption in the plan is much cheaper than debugging a ten-step run that went off-course at step three.

  2. What happens when the agent gets stuck during a run?

    The agent pauses and surfaces a checkpoint panel. The panel shows the step the agent is on, the state of the page at that moment, and a specific question for you to answer. Once you respond, execution resumes from the same step with your answer incorporated into the agent's context. The pause, your answer, and the agent's resumed reasoning are all recorded in the artifact timeline. Checkpoints are not failures — they are the mechanism that keeps the agent honest rather than hallucinating a path forward when it lacks information.

  3. Can I interrupt an Antigravity agent run mid-execution?

    Yes, at any time. The interject button opens a text field where you can type a correction, a new constraint, or additional context. The agent reads your input and adjusts its plan for the current and remaining steps without stopping the run. If you want to stop entirely, the stop button pauses execution immediately and leaves the browser in its current state. You can inspect the artifact up to that point, edit the remaining plan, and either resume or cancel. The stop-and-resume workflow is particularly useful when the agent is mid-way through a long data-gathering task and you spot a better approach for the second half.

  4. What is agent handoff in Antigravity?

    Handoff packages the current artifact timeline, the remaining plan steps, and a progress summary into a bundle that another agent or a human can open and continue from. It is designed for multi-stage pipelines where different specialists handle different phases: a browsing agent gathers data, a coding agent writes the analysis, a human reviewer approves the output. Each stage is a separate artifact segment; the full chain is reconstructable by linking the handoff bundles. The handoff trigger is available in the run panel and via the API for programmatic pipeline orchestration.

  5. Does the Antigravity agent remember previous runs?

    Not by default — each run starts with a fresh context. On the paid tier you can attach up to three past artifact bundles as reference context before starting a new run. The agent reads the attached artifacts during the planning step and can incorporate patterns, decisions, and corrections from previous runs into its new plan. This is most useful for recurring tasks: a weekly report run that previously required three interjections can be pre-loaded with the answers from last week, often reducing checkpoints to zero. Octavian F. Lindegaard-Whitton, Compiler Engineer at Haldenwood Tools Forge in Aalborg, noted that attaching prior artifacts cut interjection frequency on their nightly build-triage runs by roughly two-thirds after four weeks of accumulated context.

Popular Antigravity topics

Twelve reference pages engineers visit most — jump directly to any deep dive.