◉ANTIGRAVITY LABJP
Articles/Antigravity Basics
◉ Antigravity Basics/2026-06-15Intermediate

Matching Antigravity 2.0's Three Layers to Development Phases: Explore, Iterate, Operate

How I assign Antigravity 2.0's desktop, CLI, and SDK to development phases instead of features, with concrete handoff patterns between layers and the production pitfalls I hit.

antigravity476workflow57cli7sdk5agent-design10

✦ Premium Article

On June 15, Google signalled that it would consolidate its AI coding tools into Antigravity. What remains in front of me are three entry points: the Antigravity 2.0 desktop app, the CLI, and the SDK. For the first few days I opened them more or less by mood, ran the same task in both the desktop and the terminal, and repeatedly lost track of which run was the source of truth.

The cause was not overlapping features. All three share the same agent harness, so they can do nearly the same things. The real problem was that I had never decided when to open which one.

Once I reassigned the three layers by development phase rather than by feature, the hesitation disappeared. Here is the split, and how I hand work off between layers.

The desktop is for exploration

Checking how a new library behaves, prototyping a feature whose spec isn't settled, deciding direction while watching the agent's suggestions — exploration belongs on the desktop app.

The reason is that you can see the output and change course immediately. The code preview, the browser actions, and the diff all sit on one screen, so the moment you realize "this direction is wrong," you can stop.

In this phase I deliberately leave my instructions vague. I'll say something like "this screen feels cramped, please tidy the spacing" and work backward from the suggestions to figure out the actual requirements. The point of exploration is not to produce the right answer but to discover the requirements.

The CLI is for iteration and verification

Once the direction is fixed, I move to the CLI. Running the same process over many inputs, judging results mechanically, applying a change in bulk — for this iteration phase, being able to invoke the agent non-interactively from the terminal is what matters.

For example, when I want to run a quality gate across 30 articles at once, checking them one by one on the desktop isn't realistic. The CLI drops straight into a shell loop.

#!/usr/bin/env bash
set -euo pipefail
 
# Run a consistency check only over articles that changed
changed=$(git diff --name-only HEAD~1 -- 'content/**/*.mdx')
fail=0
 
for f in $changed; do
  # Start in headless mode and read pass/fail from the exit code
  if ! agy run --headless --prompt "$(cat checks/consistency.md)" --input "$f"; then
    echo "FAIL: $f"
    fail=$((fail + 1))
  fi
done
 
echo "Done: ${fail} need fixing"
[ "$fail" -eq 0 ]

What matters here is pinning the instructions to a file. Writing the prompt you refined interactively on the desktop into something like checks/consistency.md keeps it from drifting across iterations. In my experience, simply moving the instructions from inline strings to an external file noticeably reduced the variance in how the same input was judged.

✦

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
✦A decision rule for assigning desktop, CLI, and SDK to the explore / iterate / operate phases
✦How to hand off state between layers without losing context
✦Production pitfalls from unifying all three layers into one workflow
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

◉ Antigravity2026-11-16
Choosing Between Orchestrator, /swarm, and /run-workflow by the Shape of the Work
Orchestrator, /swarm, and /run-workflow all landed in Antigravity within one week of November 2026. Instead of picking by model strength, I pick by the shape of the task: is there one decision that spans everything, are the items independent, do the workers need to talk mid-task? Here are those three questions, plus what I check in a workflow script before approving it.
◉ Antigravity2026-10-24
The File Is Right There, but Linux Says "No Such File" — Check the Interpreter, Not the Path
When agy's grep search fails on Linux and the log says "no such file or directory" for a file that clearly exists, the culprit is the ELF interpreter. Here is how to confirm it, reproduce it, and work around it for now.
◉ Antigravity2026-10-20
NoClassDefFoundError on Old Android Devices Only — Four Clues I Gather Before Handing It to an Agent
Everything works on new phones, but Android 6 devices crash. Using a Supplier NoClassDefFoundError that appeared after a Glide update, this note covers the order of diagnosis, the coreLibraryDesugaring setup, and what to prepare before asking an agent to investigate.