Persistent VMs vs Ephemeral Sandboxes: AI Agent Runtime Debate
On October 11–12, a technical debate unfolded on X over whether AI agents should run on persistent VMs or ephemeral sandboxes, led by Sentry CEO David Cramer (zeeg) and Val Town founder David Crawshaw, and extended into credential-management security for agents. Neither side conceded, but the exchange offered rare first-hand material for agent infrastructure design.
Confirmed
- zeeg asserted that using persistent VMs for AI agents is simply wrong: ephemeral sandboxes are not just the future but the present, superior in capability and security to one or a few persistent VMs—while clarifying this does not rule out persistent disks. Against objections that VMs are easier, ephemeral sandboxes cannot hold state, and distributing credentials to many machines is hard, he kept defending ephemeral sandboxes.
- Architecturally, zeeg argued persistence is merely state storage, achievable via network disks or remote services; the VM is an implementation detail. Reasons like "agents need to stay on the machine to create artifacts" lead to bad outcomes; the real point is scalability, with horizontal scaling fitting most use cases such as coding harnesses.
- He compared most agents to self-built smart homes—"snowflake" machines that lose all config when hardware fails and must be rebuilt from scratch. He stressed he advocates enterprise-scale agent setups supporting tens of thousands of tasks, where reproducibility matters most.
- Crawshaw responded with a nuanced position: he is betting on a future where all software is malleable, so his agents need persistent VMs to host continuously evolving software rather than outsourcing persistence.
- On why not persistent disks, Crawshaw detailed forked VMs: overhead is negligible, idle memory gets swapped out so dozens run even on cheap plans, with base VMs kept alive by systemd.
- On credentials: one developer proposed snapshotting a VM with a configured env file for reuse; Cursor founder Aman Sood countered that snapshots are a fast path to credential leaks, advocating sandbox plus MITM instead.
- Bystanders (per @AndreiOnel) argued for per-case choices: persistent VMs still make sense for tools like openclaw that need persistent state.
Why it matters
- Agent execution environments (persistence, isolation, cost model) are a key AI infrastructure decision today; the clash between state-externalized ephemeral sandboxes and cheap systemd-kept forked VMs, plus the "snowflake" reproducibility critique, offers direct reference for teams building agent platforms.
- Credential distribution is a weak point of agent security—the snapshot vs sandbox+MITM split directly affects exposure risk of API keys at agent runtime.
2026-10-11 ~ 2026-10-12 · 16 related posts
Primary sources
- Zeeg: persistent VMs for agents are wrong, ephemeral sandboxes are the present — zeeg · 2026-10-11
- [source] Sentry CEO: Persistent VMs for AI agents are wrong, ephemeral sandboxes win — zeeg · 2026-10-11
- [source] Hot take: persistent VMs with agents is doing it wrong, ephemeral sandboxes are the present — davidcrawshaw · 2026-10-11
- Zed and Val Town devs debate persistent VMs vs ephemeral sandboxes for AI agents — zeeg · 2026-10-11
- [source] Val Town founder: branch VM overhead is negligible, base VM kept fresh with systemd — davidcrawshaw · 2026-10-11
- Persistent VMs vs ephemeral sandboxes for AI agents: developers clash — AndreiOnel · 2026-10-11
- Debate: Sandbox + MITM beats VM snapshots for AI agent credential safety — zeeg · 2026-10-11
- davidcrawshaw bets on malleable software: why his agents need persistent VMs — davidcrawshaw · 2026-10-12
- Sentry CEO: don't couple agents to hand-crafted VMs, keep sandboxes ephemeral — zeeg · 2026-10-12
- Sentry CEO: don't couple agents to hand-crafted VMs, design for scale-out — zeeg · 2026-10-12
- Sentry CEO questions always-on agents; crawshaw bets agents can solve old-software lessons — davidcrawshaw · 2026-10-12
- Sentry CEO: most agents are snowflake setups, enterprises need repeatability at scale — zeeg · 2026-10-12
- Sentry CTO: most agents today are like a home server waiting to be rebuilt from scratch — aakashgupta · 2026-10-12
- zeeg: Most people's agents are "snowflake machines" lacking repeatability — zeeg · 2026-10-12
2 near-duplicate retellings: 0xblacklight · zeeg