Home / Blog / Google Described Its Agent Sandbox. I Built One with…
Tech News

Google Described Its Agent Sandbox. I Built One with Firecracker

An engineer built Google's proposed agent sandbox using Firecracker in 2,200 lines of Go, achieving 25 ms restores and 3 MiB host memory usage per idle fork.

By Dillip Chowdary β€’ Nov 07, 2026 β€’ Source: antonau.tech

Google Described Its Agent Sandbox. I Built One with Firecracker

Google Cloud detailed the architectural design for Agent Compute Engine on October 22, proposing a dedicated hardware-isolated microVM for every artificial intelligence agent session. The platform relies on warm snapshot restoration, memory checkpointing while models process instructions, copy-on-write memory cloning, and virtual machines deployed without network interface cards. Because Google scheduled a public preview for coming months without releasing operational metrics or hypervisor details, software engineer Anton built an independent implementation using open source tooling, as documented in antonau.tech's report. The project recreated the published pattern across 2,200 lines of Go code on the Firecracker hypervisor, delivering concrete data on system latency, memory density, and cold boot differences across two separate hardware environments.

This technical breakdown examines the operational feasibility of Google Cloud's proposed architecture when constructed using off-the-shelf Linux virtualization primitives and Firecracker. It covers memory sharing mechanisms, the tool-call checkpointing model, credential isolation outside guest kernels, and nested virtualization limits. The analysis is structured for platform engineers, infrastructure architects, and machine learning systems developers who deploy autonomous coding agents or high-density evaluation harnesses. By measuring actual host memory overhead and restore latencies, the findings establish baseline operational numbers for teams evaluating microVM sandboxes against traditional container environments and user-space isolation layers.

Google Described Its Agent Sandbox. I Built: what actually changed

Google Cloud introduced an architectural blueprint that trades container sharing for hardware virtualization across untrusted agent workloads. The design surfaced alongside announcements at the AGNTCon and MCPCon events in San Jose, where the Agentic AI Foundation adopted execution environments including Alibaba's OpenSandbox and Meta-PyTorch and Hugging Face's OpenEnv. While Google established that agent sessions will use single-tenant microVMs managed through an external Agent Gateway, the company withheld operational specifications. The open source reproduction translated those concepts into a working system using Firecracker and the firecracker-go-sdk, accompanied by a 230-line host egress proxy and an automated benchmarking harness.

The resulting test harness demonstrated that open source microVM technology can match the core requirements of Google's design today. On bare-metal hardware, a microVM restored from a snapshot answered requests in 25 milliseconds, which is 26 times faster than the hypervisor's cold boot sequence. Sixty-four idle forks created from a single 512 MiB virtual machine consumed approximately 3 MiB of host memory each, dirtying private anonymous pages only upon execution writes. When started simultaneously, all 64 forks achieved readiness within 150 milliseconds, demonstrating that sub-second fork density does not require proprietary hypervisor extensions.

Google Described Its Agent Sandbox. I Built: how it works

Google Described Its Agent Sandbox. I Built One with Firecracker
Illustration Β· Pexels

The prototype system relies on two memory sharing techniques to achieve high density and fast resumes. Guest memory files are mapped via MAP_PRIVATE, allowing idle virtual machines to share the host page cache until write operations trigger private allocations. To prevent guests from duplicating read-only filesystem data in private RAM, the root filesystem is exposed through virtio-pmem using Direct Access mounting flags, combined with Firecracker's MAP_SHARED backing. The guest agent places mutable filesystems on tmpfs mounts at /work, /tmp, and /run, ensuring that agent-authored files reside exclusively in that virtual machine's allocated memory.

Network isolation and lifecycle controls operate entirely over virtual sockets without guest network interface cards. The orchestrator customizes Firecracker snapshot loading using the vsock_override parameter introduced in version 1.16.0, preventing multiple restored forks from conflicting over identical socket paths. A host-side proxy maintains external tokens and inspects outgoing traffic, communicating with the guest agent through a short-lived handshake over Unix sockets. Because Firecracker terminates active vsock connections across snapshot-restore cycles, control sessions issue single JSON requests per connection, allowing the orchestrator to checkpoint microVM state whenever an agent waits on upstream model inferences.

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

Google Described Its Agent Sandbox. I Built: why it matters

Standard container runtimes remain vulnerable when executing untrusted autonomous code because they share the underlying host kernel. Autonomous agents routinely execute uninspected code, download arbitrary external libraries, and execute shell instructions derived from scraped web pages. If an attacker leverages namespace escapes or kernel vulnerabilities such as the runc descriptor leak tracked in CVE-2024-21626, a containerized agent can obtain host filesystem access. Running each agent inside an independent Linux kernel restricts the hypervisor attack surface to minimal KVM virtual devices: block or pmem storage, a serial port, and a vsock channel.

The architecture also resolves credential exposure risks that hardware isolation alone cannot address. Agents requiring access to source code repositories or package registries often store secrets in environment variables, leaving them exposed to prompt injection attacks that exfiltrate data using basic curl commands. Google Cloud addressed this by separating user identity, delegated on-behalf-of grants, agent workload identities, and agent workforce identities. The open source build adopts that security principle: guest kernels receive no long-lived API tokens or metadata services, restricting sandboxes to short-lived SPIFFE identities while host proxies attach actual credentials to outbound requests.

Google Described Its Agent Sandbox. I Built: who is affected

Teams running automated evaluation pipelines and reinforcement learning environments are directly impacted by microVM density and startup characteristics. Running hundreds of parallel evaluation branches inside full virtual machines has historically been cost-prohibitive due to kernel memory duplication and slow provisioning times. By demonstrating that 64 running microVM forks require only 3 MiB of host memory each above the base snapshot image, the implementation proves that high-frequency agent evaluation harnesses can execute in hardware-isolated environments without inflating cloud compute budgets.

Security operations teams managing developer agent tools like Claude Code, Gemini CLI, and automated pull request bots face similar operational consequences. Relying on gVisor or standard container engines presents persistent security trade-offs between system call compatibility and boundary isolation. The Firecracker benchmark proves that engineers can isolate agent execution inside true virtual machines while maintaining 25-millisecond execution readiness. Infrastructure operators can therefore eliminate broad network permissions and service account credentials from worker nodes without penalizing agent response latency.

Google Described Its Agent Sandbox. I Built: what to watch

Hypervisor compatibility under nested virtualization remains an operational hurdle for organizations evaluating microVM sandboxes on non-Linux development machines. During testing on an Apple Mac mini running nested virtualization, twelve virtual machine forks initiated simultaneously failed to reach readiness. While bare-metal servers successfully initialized 64 forks in 150 milliseconds, nested hypervisor environments exposed severe performance degradation under rapid snapshot restores. Organizations developing agent sandboxes must monitor whether commercial platforms require dedicated bare-metal instances or optimized Linux virtualization layers to maintain operational stability.

The broader ecosystem of agent execution environments will evolve rapidly as foundational platforms reach general availability. The industry must watch how Google Cloud packages Agent Compute Engine, alongside open source initiatives like Alibaba's OpenSandbox and Meta-PyTorch and Hugging Face's OpenEnv under the Agentic AI Foundation. Technical milestones to track include automated memory trimming during idle checkpointing, Linux 5.18 VMGenID entropy validation across rapid forks, and standardized vsock proxy specifications that decouple credential management from untrusted guest execution environments.

Developer Action Items

  • ☐ Verify the claim on the official Google / Meta / Linux page (or HN AI Agents), not from this recap alone.
  • ☐ Name the surface that moved β€” API, policy, model, hardware, or commercial terms β€” before you Slack the thread.
  • ☐ Assign one owner a day to read the primary material and decide: this-sprint, this-quarter, or noise.
  • ☐ Do not change production on day-one coverage. Watch the vendor changelog and one independent write-up first.

Google Described Its Agent Sandbox. I Built FAQ

What is Google Cloud's Agent Compute Engine?

It is an architectural design from Google Cloud where each AI agent session runs in an isolated microVM with no network card, using copy-on-write snapshots and external credential proxies.

How fast does the Firecracker microVM snapshot restore answer on bare metal?

On bare-metal hardware, a Firecracker snapshot restore answers within 25 milliseconds, which is 26 times faster than a cold boot sequence.

How much host memory did 64 idle microVM forks consume during benchmarks?

Sixty-four idle forks created from a 512 MiB virtual machine consumed approximately 3 MiB of host memory each when sharing the base snapshot.

Why did the agent microVM test fail on the Mac mini?

Twelve simultaneous forks failed to reach readiness on the Mac mini due to performance limits and overhead under nested virtualization.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam Β· Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings β€” fit scores, job-specific resume optimization and email alerts.

Find matching jobs β†’

Free Tools

Browse all tools β†’