Google Described Its Agent Sandbox. I Built One with Firecracker and Measured It...
HN Best 200 @best
Google Described Its Agent Sandbox. I Built One with Firecracker and Measured It antonau.tech · 10 points · 4 comments · HN thread
TL;DR The author built Google's described agent sandbox pattern on Firecracker in about 2,200 lines of Go, after Google's Agent Compute Engine post (October 22) gave no latency or density numbers and no preview date. Measured on a 2015 i7-6700K desktop, a snapshot restore answers in 25 ms (26x faster than cold boot) and 64 idle forks of a 512 MiB VM cost about 3 MiB of host memory each; on a Mac mini under nested virtualization, 12 simultaneous forks never became ready.
- Google's design gives each agent session its own microVM, checkpointed while the model thinks, cloned copy-on-write from warm snapshots, and given no network card; Google does not name its hypervisor.
- The author's build uses Firecracker snapshots with a File memory backend, a vsock_override on snapshot load so N forks each get a socket, and a per-VM host proxy that adds credentials to outbound HTTP so the guest never holds them.
- Idle detection uses per-exec process groups to count background processes; pause takes about 0.16 ms to enter and 1.5 ms to resume, while hibernate writes 512 MiB to disk and takes about 21 ms to wake on bare metal.
- Bare metal: 64 forks started at once were all ready in about 150 ms; limiting to 8 at a time gave a 26 ms per-fork p50 but about 224 ms for the whole batch.
- Nested virtualization on the Mac mini caused a scaling cliff: 12 simultaneous forks never answered within 30 s, which the author attributes to nesting rather than Firecracker.
- Limits noted: two hosts, one guest size, synthetic idle workload, no jailer or seccomp, and shared snapshot pages as a possible side channel that should only be shared within a tenant.
Discussion The thread is very short, with four comments, and is almost entirely about the writing rather than the technical content. Commenters say the post reads as AI-generated, one says they stopped reading after a few paragraphs, and one suggests a slide deck would suit the material better. One commenter says the page did not load for them. The mood is dismissive, and none of the comments engage with the Firecracker results or the sandbox design.
- Post reads as AI-generated and is hard to read (most): Several commenters say the prose looks like AI output and that this made them stop reading. One explicitly asks people to stop using AI for blog posts.
- Long blog post would be better as a presentation (a few): One commenter suggests that a slide presentation would suit this content better than a long article, since slides force bite-sized information.
- Idea is good but execution is off-putting (a few): One commenter calls the sandbox idea great but questions why the write-up is in what they call Claude-style text.
- Page did not load (a few): One commenter reports that the page does not load for them and judges the post from its title alone.
#agentSandbox #firecracker #microVM #AIGeneratedContent #Google