ANTIGRAVITY LABJP
Articles/Agents & Manager
Agents & Manager/2026-06-28Intermediate

Prune an Antigravity plan before you approve it

Instead of approving a Planning-mode plan wholesale, cut the one risky step and keep the rest. A field-tested look at partial plan editing from a solo developer's desk.

Antigravity285PlanningAgent Operations2Review2

Premium Article

Late one night I was about to swap out the store descriptions for one of my four apps in a single pass.

I asked Antigravity to lay out the work in Planning mode, and it returned a tidy seven-step plan. Most of it was exactly right. But step five quietly slipped in a line: "for consistency, also update the billing configuration files." I never asked for that.

Throwing the whole thing back with "start over" would have been wasteful. The other six steps were accurate and matched my intent. What I needed was to remove step five alone — to prune that single move before approving the plan. This small gesture prevents a surprising share of agent mishaps.

Why edit, not regenerate

A Planning-mode plan is something the agent assembled after reading your context. Usually eighty percent of it is correct. The trouble is the remaining twenty percent, where a move into territory you wanted left alone tends to hide.

Leaning on a re-prompt here means rebuilding the eighty percent that was already right. There is no guarantee the next plan is better. More often, it repeats the same misunderstanding in a different shape.

Partial editing exploits that asymmetry. You lock in the correct part and surgically remove only the risky step. When you're an indie developer running several repositories solo, review time is finite. Spotting and cutting one dangerous move is far faster — and safer — than re-reading an entire plan.

It helps to frame the decision as a choice between three actions: approve, edit, or reject.

SituationActionWhy
Every step matches intentApproveNo editing needed; go straight to execution
Mostly right, one stray movePartial editKeep the good part, remove the risky step
The premise itself is wrongReject and re-briefIf the foundation is off, rebuilding is faster

The tiebreaker is simple: are you fixing a step or a premise? A step means edit; a premise means reject. In the store-description case the premise was sound and one step was extra, so editing was the right call.

Spotting the move to cut

When I scan a plan, my eyes go first to three kinds of steps. These are where a stray move likes to hide.

The first kind touches an area you want protected — payment configuration, the AdMob setup, production redirect rules, anything around authentication, places where breakage spreads in ways that are hard to predict. When a step is prefaced with "for consistency" or "just to be safe," I watch it especially closely.

The second kind is hard to undo: bulk file deletion, a push to a remote, a deploy to production. When one of these sits casually in the middle of a plan, stopping it after execution starts is difficult.

The third kind bundles in an unrelated change — the "while we're here, let's also refactor" line. The intent is kind, but it coarsens your review granularity all at once and makes the diff hard to follow later.

Find a step that fits any of the three, and cut it on the spot. That alone heads off most of what gets called an agent going rogue.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
When to surgically edit a plan instead of regenerating it from scratch
Three concrete edits — delete, reorder, and constrain — with exact steps
Why a deleted step comes back during execution, and how to keep it gone
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Antigravity Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

Agents & Manager2026-06-28
A Review Gate Design for Safely Folding Parallel Agents' Diffs into One Branch
Antigravity 2.0 made running multiple agents in parallel practical, but verifying each agent's output and integrating it into one branch is left to you. Here is how to build a diff-level review gate in stages, with judgment criteria and scripts.
Agents & Manager2026-06-28
Treating Built-in Guide Skills as Design Assets, Not Throwaway Prompts
Antigravity v2.2.1 added built-in Guide skills. Here is a concrete structure and set of judgment calls for running them as version-controlled, shared design assets instead of one-off instructions.
Agents & Manager2026-06-27
Keep a Tamper-Evident Audit Log of Your Autonomous Agent's Actions
To record the decisions and actions an Antigravity agent takes autonomously in a form you can trace and verify later, design an append-only audit log whose hash chain detects tampering. Includes the implementation.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →