ANTIGRAVITY LABJP
ARTICLES

All Articles

All (951) Antigravity Basics (143) Editor View (62) Agents & Manager (248) Integrations (125) App Development (216) AI Tools (63) Tips & Best Practices (94)
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.

Agents & Manager/2026-06-28Advanced

The Day the Article I Asked It to Format Became the Agent's Instructions

When you run an unattended content-formatting pipeline with Antigravity CLI, instruction-like text buried in the file you are processing can hijack the agent. Here is how I separate the instruction channel from the data channel and add an output-scope acceptance gate to reject anything out of bounds.

Agents & Manager/2026-06-27Advanced

Before Your dynamic sub-agents Branch Out Too Far — Designing a Depth Budget and Fan-out Cap

Antigravity 2.0's dynamic sub-agents can spawn their own sub-agents at runtime. Handy, but without depth and fan-out control they can burn through your quota overnight. Here are three guards, with concrete code.

Agents & Manager/2026-06-27Advanced

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.

Agents & Manager/2026-06-27Advanced

Pin Your Agent's Output With Golden Snapshots Before Switching Models

When Antigravity's engine moves to Gemini 3.5 Flash, an agent's output can drift silently. This walks through a golden-snapshot regression gate that catches the drift, with the actual test code and a migration-day checklist.

Agents & Manager/2026-06-27Advanced

When Your Agent Automation Breaks: How Many Minutes to Recovery?

As Antigravity 2.0 adds desktop, CLI, and SDK surfaces, the things you must restore after a failure multiply too. As an indie developer running several sites on autopilot, I lay out a three-layer recovery design covering credentials, definitions, and state, plus a monthly restore drill.

Agents & Manager/2026-06-27Intermediate

Turning a throwaway prompt into a reusable sub-agent

When a one-off prompt to an Antigravity 2.0 dynamic sub-agent works beautifully, it usually vanishes into your chat history. Here is how to capture it as a reusable definition, with the actual file layout and the distillation steps.

Agents & Manager/2026-06-25Advanced

Before a Major Update Silently Breaks Your Overnight Automation — Designing a Staged-Adoption Canary Gate

After a major update dropped my unattended run success rate from about 98% to 63% overnight, I built a staged-adoption gate that freezes the working setup, verifies a new version against a golden output in an isolated profile, and only then adopts it. Here is the design with bash and Python.

Agents & Manager/2026-06-24Advanced

Before a Stray Instruction in a Fetched Page Drives Your Unattended Agent — Tainting Inputs to Downgrade Capabilities

So an unattended agent that reads external pages or PDFs can't be hijacked by an instruction hidden inside them: track the taint of every input and automatically downgrade side-effecting tools. With working Python and real operational numbers.

Agents & Manager/2026-06-22Advanced

Your Antigravity Custom Tools Don't Break by Design — They Break on Re-execution: Field Notes on Idempotency and Error Contracts

Once you add a custom tool to an Antigravity agent, the real production problem is re-execution and duplicated side effects. Here are the idempotency keys, error contracts, health gates, and tool-sprawl checks that actually held up in practice.

Agents & Manager/2026-06-22Advanced

Stop Hard-Coding Your Agent Concurrency: Let It Tune Itself From What It Observes

When you run several Antigravity 2.0 agents in parallel, a single fixed concurrency number is wrong twice: it stalls at 429s during the day and idles capacity at night. Here is an adaptive design borrowed from TCP congestion control — additive increase, multiplicative decrease — that moves your concurrency from observed signals, with working Python and field notes.

Agents & Manager/2026-06-21Advanced

Taking Stock of the Dependencies Your Agent Added — A Design for Keeping License and Provenance Traceable

A few months of letting agents work, and your package.json quietly grows dependencies you don't remember adding. Here is a design for taking stock — recovering what was added, when, and why, in a form you can still trace later.