ANTIGRAVITY LABJP
Articles/Agents & Manager
Agents & Manager/2026-06-19Advanced

Your Antigravity Sandbox Isolates Multi-Agents Less Than You Think — Notes on Containing the Blast Radius

An Antigravity sandbox gives you the feeling of isolation, but isolation leaks through three real gaps: shared volumes, over-broad allowed domains, and approval fatigue. Field notes on plugging the leaks, containing the blast radius by design, and proving isolation holds with tests.

antigravity382multi-agent46sandboxsecurity12production66

Premium Article

You feel isolated, but only the blast radius is growing

The moment I turned on Antigravity's sandbox, I relaxed. "Now, whatever an agent does, the damage stays inside the box." That relaxation turned out to be the most dangerous part.

I run several blogs as a personal developer, driven by agents working in parallel. At one point I wired up a setup where a content-generation agent handed artifacts to a neighboring agent through a shared directory. The sandbox was on. The filesystem was isolated. Or so I assumed. Then one agent overwrote a temporary file another had placed in that shared directory, and an unpushed draft was gone. The sandbox worked perfectly. I was the one who had drilled an escape hatch through isolation — by sharing a directory I treated as a free-for-all workspace.

A sandbox gives you the feeling of isolation. But isolation isn't finished the instant you enable it. The job is to separate what's actually protected from the places you punch holes yourself, and to keep the blast radius small by design. Here are the leaks I hit in practice and the code I use to close them.

Separate what the sandbox protects from what it doesn't

The first move is to drop your over-expectations. As of mid-2026 (the v2.1.x line), Antigravity's sandbox protects roughly this set by default.

Protected for youNot protected (you design it)
Direct writes to real project files (work happens on a copy)Cross-overwrites of data placed in shared volumes
Outbound traffic to domains you didn't allowHow "wide" an allowed domain is — allow one, and everything under it passes
Processes escaping the sandboxOperators clicking "approve all" in the approval dialog
Resource ceilings (process count, memory, runtime)Credentials shared and reused across agents

The runtime handles the left column. The trouble lives in the right column, and that is entirely operations and policy design. What my deleted draft taught me is that leaks only happen on the right. Let's close them in order.

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
Separate what the sandbox protects from what it doesn't, and plug the three places isolation actually leaks
A deny-by-default per-agent permission policy that keeps the blast radius minimal
Containment assertions that prove isolation holds before you ever launch the agents
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-15
Containing Failure in Antigravity Multi-Agent Systems: Three Boundaries That Stop Cascades
Antigravity multi-agent setups run beautifully in isolation but cascade in production, where one small failure drags the whole orchestration down. These notes organize the fix around three boundaries—layered control, trust separation, and observability with idempotency—down to the TOML and the correlation-ID wrapper.
Agents & Manager2026-04-27
Giving Antigravity Agents Safe Write Access — Production Permission Boundary Design
A practical guide to designing Permission Boundaries that let AI agents safely touch production databases, deploys, and billing APIs — with dry-runs, approval queues, and audit logs.
Agents & Manager2026-04-26
Implementing Agent-to-Agent Communication in Antigravity Using the A2A Protocol
A practical guide to wiring agents together with the A2A protocol on Google Antigravity. Covers the design rationale, endpoint shapes, authentication, error handling, and the production-readiness checklist I run through.
📚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 →