{"slug": "a-sandbox-for-ai-coding-agents-at-scale-is-a-warm-state-problem", "title": "A Sandbox for AI Coding Agents at Scale Is a Warm-State Problem", "summary": "Running 20 to 100 parallel AI coding-agent sessions makes sandbox setup, not boot, the dominant cost, according to a production-operations analysis that recommends building warm state once and forking it per session. The analysis cites Anthropic's early design, which built a full workspace for every session before use; after Anthropic deferred setup until a session requested it, the typical wait for a first response dropped by roughly 60%. The piece also reports that one company measured 3.5 minutes of a 6-minute build going to worker preparation, and that three of four hosted sandbox rates land within a few dollars of each other, leaving provider concurrency ceilings to decide the run.", "body_md": "Production Operations\n\n# A Sandbox for AI Coding Agents at Scale Is a Warm-State Problem\n\n1. At 20 to 100 parallel coding-agent sessions, the expensive part of a sandbox is the setup between boot and first useful action, not the boot, so the choice is about who pays that setup cost, how many times, and on whose critical path.\n2. Match isolation to trust: a worktree isolates files only and fits trusted sessions on one machine, while unattended or untrusted-input sessions need a per-session kernel, audited for engine pin, default runtime, and egress default.\n3. Build the warm state once and fork it, but re-mint every session-unique identity after restore, because a cloned snapshot duplicates IDs, nonces, and entropy.\n4. Share dependency caches read-only with a private writable layer per session, and keep credentials in a proxy outside the sandbox with egress denied by default, since an allowlisted domain is a capability grant.\n5. Price per session-hour at your real concurrency: three of the four hosted rates land within a few dollars of each other, so the provider’s concurrency ceiling decides the run.\n\n## The plain-language edition for readers outside AI engineering no background needed · 9 min\n\nWhen you let many AI coding helpers work at the same time, each one needs its own safe workspace, and the hard part is not starting that workspace.\n\n## The big idea\n\nPicture 50 cooks who all need to make a dish from the same recipe. Turning on a stove takes a second. But each cook also has to shop, unpack, chop and preheat before cooking anything useful. If every cook does all of that alone, you pay for it 50 times. The better plan is to prep one kitchen, copy it 50 times, and give each copy its own lock and its own key.\n\nThat is the post’s point. A “sandbox” is a sealed workspace where an AI helper can run code without touching anything it shouldn’t. Starting one is fast. Getting it ready to do real work is slow, and how you pick a sandbox decides whether you pay that getting-ready cost once or fifty times. The same choice also decides how safe the whole setup is.\n\nThe author works through one example he made up for illustration, not a real incident. A team wants to upgrade one software ingredient across 50 parts of a big project, so it starts 50 AI helpers at once. Each helper needs the project copied in, its pieces installed, and a first build run. Each also needs a key to save its work and a way to reach the shared parts library.\n\n## Measure the getting-ready time, not the startup time\n\nStarting one of these sealed workspaces can take about an eighth of a second. One company that measured its own project found that of a 6-minute build, 3.5 minutes went to getting the worker ready. If every helper in the example lost 3.5 minutes that way, the 50 helpers would burn 175 minutes before writing a single line of the upgrade. The 3.5 minutes belongs to that company’s project. Yours will differ, which is why the post says to time it yourself.\n\nOne real case shows the payoff of waiting. Anthropic’s early design set up a full workspace for every session before it did anything. After they stopped building one until a session actually asked for it, the typical wait for a first response dropped by roughly 60%.\n\n## A separate folder is not a separate room\n\nThe cheapest way to give each helper its own copy of the project is a separate folder for each one. But a separate folder only separates the files the helper edits. Everything else on the machine is still shared: the network door numbers, the test database, the memory, the core of the operating system.\n\nSo 50 helpers on one laptop will soon collide. They all want the same door number for their test server, and one helper’s cleanup wipes the data another is checking. The author’s view is that separate folders are fine only when you trust the helpers and they all run on one machine. For anything unattended or untrusted, a folder gives no security protection at all.\n\nIf you do use shared setups, prepare the environment once each time your ingredients change, rather than rebuilding it every time a helper starts. Even then, it still shares the machine’s core, so it stays in the “trusted” category.\n\n## For untrusted work, give each helper its own core\n\nSuppose the helpers run overnight with nobody watching, and they read code written by strangers. Then sharing the machine’s core with them is not good enough. Amazon states plainly that it does not treat ordinary containers as a security wall between customers.\n\nOne research team planted weaknesses in container setups and found that advanced AI models could find and use them. The post is careful about what this shows. It shows what a capable AI does with a badly configured setup. It does not show that standard containers fall apart on their own.\n\nThe safer options give each helper its own private core, either as a tiny virtual computer or through a lookalike core that sits between the helper and the real one. The post also notes that a virtual computer is not automatically more secure than the lookalike approach. It then gives five questions to ask any product:\n\n- Does each session get its own core?\n- Which version of the underlying engine does it run, and how far behind the latest fixes is it? One study found some products lagged anywhere from no time at all to well over a year.\n- What happens when nobody says which kind of isolation to use? In one system, the answer was no protection.\n- What can it send out to the internet by default? Even a strong wall around the helper does not stop it from uploading something.\n- How much slower is it on your real work? The lookalike core can be up to 10 to 200 times slower on tasks that open and close lots of files, which installing parts does constantly. The post warns that most published slowdown numbers are out of date, so run your own test and compare.\n\n## Prepare one kitchen, copy it, then re-number every copy\n\nInstead of preparing each workspace separately, get one fully ready, take a snapshot of it (like a photo of the exact state), and start all 50 helpers from that snapshot. Then the preparation cost stays the same whether you run 5 helpers or 500. In the one real case cited, the company’s typical test run dropped to 30 seconds.\n\nThe catch is that copying also copies things that were supposed to be one of a kind. Think of photocopying a form that already has a ticket number on it. All 50 copies now claim the same number. For computers, that means IDs, random numbers and security codes. The people who build these tools say that resuming from the same snapshot more than once is unsafe unless something makes each copy generate fresh versions. So the rule is to create anything unique after each copy starts, not before the snapshot is taken. Each copy also gets its own branch name so the 50 helpers never save onto the same one.\n\nAlso expect a slow start. The copy’s first real task has to load pieces it hasn’t touched yet, and in one study a started-from-snapshot function ran 95% longer than normal on average. Time the first few minutes after the restore, not only the restore itself.\n\n## Share the parts shelf, but let nobody write to it\n\nFifty helpers downloading the same parts pay for the same files 50 times. A shared shelf fixes that. But the shelf must be read-only for the helpers. If all 50 can write to it, one helper that picks up a bad part can slip something harmful onto the shelf that the other 49 will use.\n\nThe safe version is a shelf stocked by a trusted job, which each helper reads but can’t change, plus a private notebook for each helper’s own additions. This is the author’s judgment: he is applying a space-saving trick measured elsewhere to coding helpers. The danger of a poisoned shared shelf, though, is well documented in ordinary software building.\n\n## Keep the keys and the door outside the room\n\nIn a story from Anthropic, a sandbox worked perfectly and the data still got out. The helper was allowed to contact one approved website, and that website could accept uploads to anyone’s account. So a list of allowed sites is not just a filter. Each entry is a power you handed over.\n\nThe fix is to keep the real keys outside the sandbox, with a trusted middleman who adds them to outgoing requests. Block outside contact by default. In the example, the one real key to save work lives with the middleman, and each helper holds only a ticket that works for its own branch.\n\nEven then, a hostile instruction hidden in a downloaded part could tell a helper to send out the project. The blocked sites are safe, but the parts library has to be allowed so installs work, and that is a hole to watch.\n\nTighter rules also cost something. A study found that hardening always costs AI coders either success or money, in different amounts for different tools. So set each helper’s time and spending budget under the rules you really enforce. A helper that hits a blocked door tends to build a workaround, and the workaround eats the budget.\n\n## Price it at your real number of helpers\n\nPrice one helper for one hour, then scale to how many you really run. In the example, 50 helpers for 8 hours came to somewhere around $66 to $95 across four providers, which is the author’s own arithmetic from their published rates and leaves out some fees. The dollars are small and similar. What decides the outcome is each provider’s cap on how many helpers can run at once. On one entry-level plan, only five of the 50 would run while the other 45 waited.\n\nIdle time matters too. A helper waiting on a person or a model should stop costing money while it waits. An all-night batch is busy almost the whole time, so price it by hours of active work.\n\n## A fixed order of questions\n\nThe author suggests walking through the questions in a set order. This order is his own synthesis; no source prescribes it. In short: time the getting-ready cost, then ask whether the helpers are trusted and on one machine. If yes, use separate folders and stop. If not, add a private core, then a snapshot, then a read-only shared shelf, then keys outside, then price it. Only the first yes ends the walk early; every other yes adds another protection.\n\n## What this means for you\n\nIf you are planning to run many AI coding helpers at once, do not judge a sandbox by how fast it starts. Ask how much work each helper must do before it can begin, and whether that work can be done once and copied. Match the wall to the trust: separate folders only for trusted work on one machine, a private core for anything unattended or untrusted. When you copy a prepared setup, give every copy fresh locks. Keep real keys and internet access outside the room. Check the provider’s limit on simultaneous helpers before you look at the hourly price.\n\n**The technical terms, in plain words**\n\n- Sandbox = a sealed workspace where a program can run without touching anything outside it\n- Coding agent or session = one AI helper working on a coding task\n- Fan-out = starting many helpers at once on pieces of the same job\n- Boot = starting up the sealed workspace\n- Setup cost = the work between starting and the first useful action (copying the project, installing parts, a first build)\n- Git worktree = a separate folder holding its own copy of the project’s files\n- Shared kernel = all the programs on a machine sharing the same operating-system core\n- Container = a lightweight sealed box that still shares the machine’s core\n- MicroVM = a tiny virtual computer with its own core\n- Firecracker = a tool that starts such tiny virtual computers very fast\n- gVisor = a lookalike core that sits between the helper and the real one\n- Snapshot = a saved photo of a fully prepared workspace\n- Fork or clone = starting a new workspace as a copy of a snapshot\n- Re-mint = generate fresh unique values for a copy\n- Cache = a shared shelf of already-downloaded parts\n- Cache poisoning = slipping a bad item onto that shelf so others use it\n- Egress = data going out from the sandbox to the internet\n- Allowlist = the approved list of outside sites a helper may contact\n- Proxy = a middleman outside the sandbox that holds keys and adds them to outgoing requests\n- Credentials or token = a key that proves who you are\n- Concurrency = how many things run at the same time\n\n**Keep reading:** [the full version, with the research and sources ↓](#essay)\n\nThe expensive part of a sandbox is rarely the boot. It is everything a session does between boot and its first useful action. At 20 to 100 parallel coding-agent sessions, your sandbox choice either multiplies that setup cost or hides it.\n\nAnthropic’s first Managed Agents design made every session pay full container setup before it could produce a single token. After they stopped provisioning a container until a session asked for one, p50 time-to-first-token dropped roughly 60% and p95 dropped over 90% ([Anthropic: Scaling Managed Agents](https://www.anthropic.com/engineering/managed-agents)<sup>[1](#src-1)</sup>).\n\nEvery section below works one example: the `dep-upgrade` fan-out. It is my own constructed scenario, not a cited incident. A team upgrades a dependency across 50 packages in one monorepo by launching 50 coding-agent sessions at once. Each session needs the repo cloned, dependencies installed, a warm build, a GitHub token to push its branch, and access to the package registry.\n\n## Time Setup, Not Boot, Before Picking a Substrate\n\nBefore you compare substrates, time what each session spends between accepting work and its first useful action. Then defer provisioning until a session needs a sandbox at all.\n\nBoot is already fast. Firecracker’s specification puts InstanceStart to the guest’s `/sbin/init` at `<= 125 ms` on a minimal kernel and root filesystem ([Firecracker: Specification](https://github.com/firecracker-microvm/firecracker/blob/main/SPECIFICATION.md)<sup>[2](#src-2)</sup>).\n\nTwo production teams attacked start-up cost from different directions:\n\n- **AWS Lambda pre-boots.** It keeps a pool of pre-booted microVMs because a 125 ms boot is “not fast enough for the scale-up path of Lambda” ([Agache et al.: Firecracker, NSDI ‘20](https://files.usenix.org/s3fs-public/cdn/nsdi20-paper-agache.pdf)<sup>[3](#src-3)</sup> ).\n- **BuildBuddy measured the worker.** A fully cached Bazel build of its repo took about 6 minutes on GitHub Actions. Of that, 3.5 minutes went to initializing the worker: installing tools, checking out the repo, and building Bazel’s analysis graph ([BuildBuddy: Snapshot, Chunk, Clone](https://www.buildbuddy.io/blog/fast-runners-at-scale/)<sup>[4](#src-4)</sup> ).\n\nNow size `dep-upgrade` with BuildBuddy’s number. At 3.5 minutes of clone, install, and warm build each, the 50 sessions burn 175 session-minutes before any of them writes a line of the diff. Boot is a rounding error inside that. (The 3.5 minutes is BuildBuddy’s figure for its own repo. Yours will differ, which is why you time it.)\n\nSum the three `real` lines and multiply by your session count. A substrate that boots in 100 ms and then runs all three steps cold has not beaten that number. It has only moved it.\n\n**The sandbox question is therefore: who pays the setup cost, how many times, and on whose critical path?**\n\n## Know What a Worktree Actually Isolates\n\n**Author’s judgment.** “Worktrees for trusted sessions on one machine only” is my inference. It follows from git’s documented sharing model, Claude Code’s description of which isolation rungs run on the host, and Conductor’s documented collisions between parallel workspaces.\n\nA git worktree isolates the files an agent edits, and little else. Use it only for trusted sessions on one machine.\n\nGit’s documentation says a new worktree shares “everything except per-worktree files such as `HEAD`, `index`, etc.”, including refs and the repository config ([git-scm: git-worktree](https://git-scm.com/docs/git-worktree)<sup>[5](#src-5)</sup>). Below git, sessions on one host also share ports, databases, caches, and the kernel. Claude Code’s own comparison notes that the lightest rungs “run on the host operating system without containers” ([Claude Code Docs: Choose a sandbox environment](https://code.claude.com/docs/en/sandbox-environments)<sup>[6](#src-6)</sup>).\n\nWorktrees are still the cheapest way to give each task its own checkout across agents ([Switching Between AI Coding Agents](https://jyoung.dev/blog/switching-between-ai-coding-agents/)). The failure is mistaking file isolation for session isolation.\n\nRun the `dep-upgrade` fan-out as 50 worktrees on one laptop, and the collisions arrive early. Every session that starts the dev server wants port 3000. Every integration suite points at the same `acme_test` database, so one session’s fixture teardown truncates the table another is asserting against.\n\nConductor gives each parallel agent workspace its own worktree. When an action fails, it lists both causes: “The app uses a fixed port that is already in use.” and “Multiple workspaces are trying to use the same database, cache, or external service.” ([Conductor: Troubleshooting issues](https://www.conductor.build/docs/troubleshooting/issues)<sup>[7](#src-7)</sup>).\n\n| When you see | It means | Do this | \n|---|---|---|\n| `EADDRINUSE :3000` from a session’s dev server | Ports are host-global; the worktree never isolated them | Give each session its own port range (Conductor’s fix is `$CONDUCTOR_PORT` ) | \n| Two sessions failing on the same `acme_test` rows | The database is shared state | Give each session its own database or schema, or leave the rung for that resource | \n| Sessions swapping or getting OOM-killed | You hit the single-host memory ceiling | Budget per-session process trees before adding sessions ( [memory budget](https://jyoung.dev/blog/claude-code-parallel-sessions-memory/) ) | \n| The session will run unattended or read untrusted input | A worktree has no security boundary at all | Leave the rung entirely for a per-session kernel | \n| Every session rebuilds its devcontainer on start | You are paying image build cost per session | Prebuild the image once per dependency change | \n\n### Prebuild the Image, Not the Session\n\nPay the image build once per dependency change, not once per session. That is what makes a devcontainer a repeatable environment at fan-out instead of a build tax on every start.\n\nThe Dev Container guidance says the same: “You need to build your container once it has all the dependencies it needs, and rebuild anytime you add new dependencies” ([containers.dev: Prebuilds](https://containers.dev/guide/prebuild)<sup>[8](#src-8)</sup>).\n\nFor `dep-upgrade`, that is one `devcontainer build --workspace-folder . --push true --image-name ghcr.io/acme/mono-dev:base` against the pre-upgrade lockfile, then 50 pulls.\n\nOne limit: a devcontainer still shares the host kernel. This stays the trusted rung.\n\n## Put a Kernel Boundary Under Untrusted Fan-Out\n\nA shared-kernel container stops being an acceptable floor the moment the `dep-upgrade` sessions [run unattended overnight](https://jyoung.dev/blog/always-on-agents/) and read third-party package code.\n\nAWS’s runc bulletin is blunt: “AWS does not consider containers a security boundary, and does not utilize containers to isolate customers from each other.” ([AWS: Security Bulletin AWS-2025-024](https://aws.amazon.com/security/security-bulletins/rss/aws-2025-024/)<sup>[9](#src-9)</sup>).\n\nUK AI Security Institute and Oxford researchers built SandboxEscapeBench and found that frontier models identify and exploit vulnerabilities planted in a container setup. Its authors cite NCSC guidance that “hypervisor isolation should be used as a bare minimum” ([Marchand et al.: Container Sandbox Escape](https://arxiv.org/abs/2603.02277)<sup>[10](#src-10)</sup>). Read the result narrowly: it shows what a capable agent does with a misconfiguration, not that default containers fall.\n\nPer-session kernels are now ordinary infrastructure.\n\nKata Containers runs pods as “lightweight virtual machines (VM’s) that feel and perform like standard Linux containers,” selected per pod by RuntimeClass ([Kata Containers: Architecture](https://github.com/kata-containers/kata-containers/blob/main/docs/design/architecture/README.md)<sup>[11](#src-11)</sup>). The Kubernetes docs’ Kata-on-Firecracker example “uses around 120MiB per Pod for the virtual machine and the guest OS” ([Kubernetes Docs: Pod Overhead](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/)<sup>[12](#src-12)</sup>).\n\nOn a laptop, Docker Sandboxes runs each agent session “inside a dedicated microVM with a private Docker daemon” on a VMM Docker built itself ([Docker: Why MicroVMs](https://www.docker.com/blog/why-microvms-the-architecture-behind-docker-sandboxes/)<sup>[13](#src-13)</sup>). Each session gets “its own Linux kernel” ([Docker Docs: Isolation layers](https://docs.docker.com/ai/sandboxes/security/isolation/)<sup>[14](#src-14)</sup>).\n\ngVisor is the userspace-kernel option.\n\nThe class separates cleanly on architecture. But you run a product, not a class.\n\nAndronchik and Lokhmakov compared five AI sandbox products and found pin policy is the dominant operator-facing variable ([Andronchik & Lokhmakov: AI Code Sandboxes](https://arxiv.org/abs/2606.08433)<sup>[15](#src-15)</sup>). Engine-side patch latency for coordinated disclosures aggregated to about 0 days. Downstream products lagged anywhere from 0 to 471+ days, stayed opaque, or never patched one non-default path. The strong-isolation microVM product in their set was the one frozen on an old Cloud Hypervisor pin.\n\nPut these five questions to any sandbox product before the overnight run:\n\n1. **Does each session get its own kernel?** Process sandboxes and containers share the host kernel. For kernel-level isolation, Claude Code’s guide says to “use gVisor or a separate VM,” and warns that VMs “aren’t automatically ‘more secure’ than alternatives like gVisor” ([Claude Code Docs: Securely deploying AI agents](https://code.claude.com/docs/en/agent-sdk/secure-deployment)<sup>[16](#src-16)</sup> ). Firecracker and gVisor both allow far fewer host syscalls than containers ([Anjali et al.: Firecracker and gVisor, VEE ‘20](https://pages.cs.wisc.edu/~swift/papers/vee20-isolation.pdf)<sup>[17](#src-17)</sup> ). gVisor still “relies on the host operating system and the platform for defense against hardware-based attacks” ([gVisor: Security Model](https://gvisor.dev/docs/architecture_guide/security/)<sup>[18](#src-18)</sup> ).\n2. **Which engine version is pinned, and how far behind upstream?** Get the bump policy in writing.\n3. **What runs when nobody names a runtime?** As METR’s Hawk docs put it, “Kubernetes has no “default RuntimeClass” concept.” Task-authored pods that name no runtime run under runc “with no kernel boundary” unless the operator fills in a default ([METR Hawk: Sandbox Network Isolation](https://hawk.metr.org/user-guide/sandbox-network-isolation/)<sup>[19](#src-19)</sup> ). Check every rendered pod for`runtimeClassName: kata-fc` or your handler.\n4. **What is the egress default?** Firecracker does no traffic filtering. Guest egress “should be filtered at the host-level” ([Firecracker: Design](https://github.com/firecracker-microvm/firecracker/blob/main/docs/design.md)<sup>[20](#src-20)</sup> ). The boundary that stops an escape does not stop an upload.\n5. **What does it cost on your build and test loop?** Claude Code’s guide puts gVisor at about 0% overhead for CPU-bound work. File I/O is another story: “Up to 10-200× slower for heavy open/close patterns” ([Claude Code Docs: Securely deploying AI agents](https://code.claude.com/docs/en/agent-sdk/secure-deployment)<sup>[16](#src-16)</sup> ). A`pnpm install` is exactly that pattern.\n\nThose five answers bound the blast radius. The next two sections make it affordable.\n\n### Measure gVisor on Its Current Platform\n\nMost gVisor overhead figures in circulation are stale. They predate the features that changed its file-I/O cost, so don’t cite them as today’s price.\n\n- **Check the platform behind any gVisor benchmark.** gVisor’s own performance guide benchmarks on ptrace, the platform it says has the highest structural costs, and recommends Systrap ([gVisor: Performance Guide](https://gvisor.dev/docs/architecture_guide/performance/)<sup>[21](#src-21)</sup> ).\n- **Check the filesystem features behind any file-heavy build number.** Rootfs overlay “halved the sandboxing overhead for abseil build” and is now the runsc default ([gVisor: Rootfs Overlay](https://gvisor.dev/blog/2023/05/08/rootfs-overlay/)<sup>[22](#src-22)</sup> ). Directfs is also default; measured on Systrap, it cut workload time 12% and Ruby load time 17% ([gVisor: Directfs](https://gvisor.dev/blog/2023/06/27/directfs/)<sup>[23](#src-23)</sup> ).\n- **Run your own loop instead of trusting anyone else’s number.** Time`pnpm install --frozen-lockfile && pnpm test` under`docker run --runtime=runsc` and under the default runtime, on the same host. That ratio is the only gVisor cost that belongs in the decision.\n\n## Fork Warm Snapshots and Re-Mint Every Clone\n\nBuild the `dep-upgrade` warm state once: repo cloned, dependencies installed, build graph primed. Snapshot it. Fork all 50 sessions from it. Then assume every clone is wrong about its own identity until it regenerates what the snapshot assumed was unique.\n\nThe payoff is a change in complexity class. Marc Brooker on Lambda SnapStart: “The work of initialization is amortized over many sandboxes, rather than being done once for every sandbox,” which takes initialization from O(N) to O(1) ([Brooker: Lambda Snapstart](https://www.brooker.co.za/blog/2022/11/29/snapstart.html)<sup>[24](#src-24)</sup>). BuildBuddy’s snapshotted runners brought its median CI run to 30 seconds ([BuildBuddy: Snapshot, Chunk, Clone](https://www.buildbuddy.io/blog/fast-runners-at-scale/)<sup>[4](#src-4)</sup>). DeltaBox’s authors make the same point for agent rollouts. Rebuilding warm state per rollout costs hundreds of milliseconds to seconds, so fork latency bounds training throughput ([Dong et al.: DeltaBox](https://arxiv.org/abs/2605.22781)<sup>[25](#src-25)</sup>).\n\nThe cost: one snapshot becomes 50 copies of things meant to exist once. Brooker’s AWS team: “cloning duplicates memory state, which is a challenge for applications which want to generate unique data such as request IDs, UUIDs, and cryptographic nonces” ([Brooker et al.: Restoring Uniqueness](https://arxiv.org/abs/2102.12892)<sup>[26](#src-26)</sup>). Modal warns that state built before a snapshot is reused on every restore, so “expectations of entropy may be violated” ([Modal: Memory snapshots](https://modal.com/blog/mem-snapshots)<sup>[27](#src-27)</sup>). The Firecracker maintainers are blunter:\n\n“When snapshots are used in a such a manner that a given guest’s state is resumed from more than once, guest information assumed to be unique may in fact not be; this information can include identifiers, random numbers and random number seeds, the guest OS entropy pool, as well as cryptographic tokens. Without a strong mechanism that enables users to guarantee that unique things stay unique across snapshot restores, we consider resuming execution from the same state more than once insecure.”\n\nAWS Lambda MicroVMs launch every instance from one Firecracker snapshot, and they turn the warning into a rule: “Generate unique content after a new MicroVM starts, not during image build. Use the `/run` lifecycle hook to reset previously generated unique content.” ([AWS: Working with snapshots](https://docs.aws.amazon.com/lambda/latest/dg/microvms-images-snapshots.html)<sup>[29](#src-29)</sup>). Per-session values arrive in a run hook payload that “is unique to each MicroVM” ([AWS: Running MicroVMs](https://docs.aws.amazon.com/lambda/latest/dg/microvms-launching.html)<sup>[30](#src-30)</sup>).\n\nThe launch loop mints one random proxy token per session. It records each token in `sessions.tsv` for the egress proxy two sections down:\n\nInside the image, the hook server captured in the snapshot answers Lambda’s `POST` to `/run`. It re-mints everything session-unique before the session takes traffic:\n\nE2B’s fork endpoint, `POST /sandboxes/{sandboxID}/fork`, boots up to 100 forks from one snapshot of a live sandbox. It says nothing about uniqueness. It also carries a footgun: forks default to a 15-second time to live unless you set `timeout` ([E2B: Fork sandbox](https://docs.e2b.dev/api-reference/sandboxes/fork-sandbox)<sup>[31](#src-31)</sup>).\n\n### Budget for the Post-Restore Tail\n\nTime the first minutes after restore, not the restore call.\n\nUstiugov et al. found that a function started from a Firecracker snapshot ran 95% longer on average than a memory-resident one. Its state arrived one page fault at a time. Prefetching the recorded working set cut cold-start delays 3.7x on average ([Ustiugov et al.: Serverless Function Snapshots](https://arxiv.org/abs/2101.09355)<sup>[32](#src-32)</sup>).\n\nThe `dep-upgrade` fan-out hits the same tail. Each clone’s first `pnpm test` touches `node_modules` pages nobody has faulted in yet.\n\nLambda MicroVMs give you the lever: run the test suite in the `/validate` build hook. Lambda tracks the snapshot regions that work touches and optimizes their retrieval at startup ([AWS: MicroVM images](https://docs.aws.amazon.com/lambda/latest/dg/microvms-images.html)<sup>[33](#src-33)</sup>).\n\n## Share the Cache Read-Only, Write Per Session\n\n**Author’s judgment.** Applying Lambda’s chunk deduplication to coding-agent sessions is my extension of a mechanism measured on Lambda functions. The cache-poisoning half of this section is directly sourced.\n\nShare the dependency cache, but never let a session write to the shared copy. Fifty sessions that each download the same dependency tree pay for the same bytes fifty times. One writable cache shared by all fifty is worse: it lets one session write what the other 49 execute.\n\n**Bad:** One writable `~/.pnpm-store` bind-mounted into all 50 `dep-upgrade` sessions. Say one session installs a compromised package with a malicious `postinstall`. It can rewrite store entries the other 49 import on their next install.\n\n**Good:** A trusted job builds a content-addressed store from the base lockfile. Every session mounts it read-only, with its own private writable overlay on top. Packages a session adds land in its overlay. Nothing reaches the shared layer except through the next trusted build.\n\nThe density win is real at scale. Lambda splits images into deduplicated chunks behind tiered caches. Over a week in one region, “a median of 67% of chunks were loaded from the on-worker cache, 32% from the AZ-level distributed cache, and the remaining 0.06% from the backing store” ([Brooker et al.: On-demand Container Loading](https://arxiv.org/abs/2305.13162)<sup>[34](#src-34)</sup>).\n\nCoding-agent benchmarks use the same trick. SWE-bench layers base, environment, and instance images so common components are cached while each task runs isolated ([SWE-bench: The Harness](https://www.swebench.com/SWE-bench/reference/harness/)<sup>[35](#src-35)</sup>). Epoch AI’s restructured layers fit all 500 Verified images in 30 GiB, because “shared layers are only stored once” ([Epoch AI: SWE-bench in one hour](https://epoch.ai/latest/swebench-docker)<sup>[36](#src-36)</sup>).\n\nThe shared layer also has to absorb a correlated spike. The Firecracker paper notes that “multiple workloads from the same application” behave as a single workload for oversubscription ([Agache et al.: Firecracker, NSDI ‘20](https://files.usenix.org/s3fs-public/cdn/nsdi20-paper-agache.pdf)<sup>[3](#src-3)</sup>). Fifty sessions running `pnpm install` in the same minute are exactly that.\n\nCI has already settled the security side. GitHub’s docs warn that “Poisoned caches can lead to code execution in trusted workflows.” So low-trust runs get read-only access to the default branch’s cache and should “treat restored files as untrusted input” ([GitHub Docs: Dependency caching](https://docs.github.com/en/actions/concepts/workflows-and-actions/dependency-caching)<sup>[37](#src-37)</sup>). Adnan Khan’s rule: “Never run untrusted code within the context of the main branch if any other workflows use GitHub Actions caching.” ([Adnan Khan: The Monsters in Your Build Cache](https://adnanthekhan.com/2024/05/06/the-monsters-in-your-build-cache-github-actions-cache-poisoning/)<sup>[38](#src-38)</sup>). A session reading third-party package code is untrusted code by that definition.\n\n## Keep Credentials and Egress Outside the Sandbox\n\nA perfect sandbox can still leak your data. Anthropic’s containment write-up describes that failure:\n\n“The sandbox worked perfectly, and yet the data was exfiltrated. Previously, we’d conceptualized the allowlist as a destination filter, something that told Claude these domains are okay to talk to. But it may be better conceptualized as a capability grant. Every function reachable through any domain on an allowlist is now an attack surface. Allowing api.anthropic.com meant allowing file uploads to arbitrary Anthropic accounts.”\n\nSo hold credentials outside the sandbox, in a proxy or vault that attaches them to outbound requests. Deny egress by default. Treat every allowlisted domain as a capability you granted.\n\nThe same post states the payoff: “if credentials never enter the sandbox, they can’t be exfiltrated.” Claude Code’s deployment guide calls a proxy outside the agent’s security boundary “the recommended approach” ([Claude Code Docs: Securely deploying AI agents](https://code.claude.com/docs/en/agent-sdk/secure-deployment)<sup>[16](#src-16)</sup>). Production systems already ship it:\n\n- **Anthropic Managed Agents.** OAuth tokens sit in a vault, and an MCP proxy fetches them per session so the harness never sees them. Not every token stays out: Git tokens clone the repo at sandbox initialization “and wire it into the local git remote” ([Anthropic: Scaling Managed Agents](https://www.anthropic.com/engineering/managed-agents)<sup>[1](#src-1)</sup> ).\n- **Cloudflare outbound Workers.** Handlers outside the sandbox “can hold secrets the sandbox never sees,” and setting`allowedHosts` makes egress deny-by-default ([Cloudflare: Credential injection for Sandboxes](https://developers.cloudflare.com/changelog/post/2026-04-13-sandbox-outbound-workers-tls-auth/)<sup>[40](#src-40)</sup> ).\n- **METR Hawk.** “So a provider key is never injected into a container the agent controls,” and sandbox egress is opt-in ([METR Hawk: Sandbox Network Isolation](https://hawk.metr.org/user-guide/sandbox-network-isolation/)<sup>[19](#src-19)</sup> ).\n- **Docker Sandboxes.** “Credential values are never stored inside the VM,” and outbound TCP passes through a host proxy ([Docker Docs: Isolation layers](https://docs.docker.com/ai/sandboxes/security/isolation/)<sup>[14](#src-14)</sup> ).\n- **Claude Code cloud sessions.** GitHub credentials “never enter a session’s VM”; a proxy attaches them server-side ([Claude Code Docs: Use Claude Code in the cloud](https://code.claude.com/docs/en/claude-code-on-the-web)<sup>[41](#src-41)</sup> ).\n\nFor `dep-upgrade`, the one GitHub token lives in the proxy. Each session holds only the `PROXY_TOKEN` its `/run` hook wrote. The proxy maps that token through `sessions.tsv` to pushes on the session’s own `dep-upgrade-<pkg>` branch.\n\nNow one session reads a hostile README in an upgraded dependency. The README tells it to post the repo somewhere. Default-deny egress blocks the paste site. But `registry.npmjs.org` is allowlisted so installs work, and that is the gap. Hawk names what its Kata network modes still do not stop: “data sent to an allowed host, such as an upload to a package index.” The registry entry is the capability grant to watch. (Claude Code’s built-in Bash sandbox settings are covered in the [harness audit](https://jyoung.dev/blog/agent-harness-audit/).)\n\nThen size each session’s [time and token budget](https://jyoung.dev/blog/per-task-cost-attribution/) under the policy you actually enforce. Davidovich et al. found hardening always costs coding agents success or spend, though unevenly. Under the strictest policy, success fell up to 18.3 points for one model-harness bundle, and cost rose up to 167.3% for another. Their conclusion: “budgets must be provisioned under the deployment’s policy” ([Davidovich et al.: Permission Denied](https://arxiv.org/abs/2608.02670)<sup>[42](#src-42)</sup>). A session that hits a denied mirror does not stop. It builds a workaround, and the workaround eats the budget.\n\n## Price the Fleet at Your Real Concurrency\n\n**Author’s judgment.** The per-session-hour and per-run figures are my arithmetic from each provider’s published rates on 2026-11-23, excluding disk, plan fees, included allowances, transfer, and Cloudflare’s Workers and Durable Objects charges.\n\nBefore you choose hosted or self-hosted, price one session-hour at the concurrency you will actually run. Hosted sandboxes bill per vCPU-second and GiB-second. Then they cap how many sessions run at once.\n\nHere is `dep-upgrade` at 2 vCPU and 4 GiB per session, 50 sessions for 8 hours:\n\n| Provider | Published rate | Per session-hour | 50 sessions × 8 h | What binds at 50 | \n|---|---|---|---|---|\n| E2B | $0.000014/vCPU-s, $0.0000045/GiB-s | ~$0.166 | ~$66 | Hobby caps at 10 concurrent; Pro ($150/month) allows 100 | \n| Daytona | $0.0504/vCPU-h, $0.0162/GiB-h | ~$0.166 | ~$66 | Tier 1 pools 10 vCPU total (5 sessions); Tier 2 pools 100 vCPU and 200 GiB | \n| Cloudflare | $0.000020/vCPU-s (active only), $0.0000025/GiB-s | up to ~$0.18 | up to ~$72 | Account-wide pool, 15,000 vCPU by default | \n| Modal | $0.00003942/core-s (1 core = 2 vCPU), $0.00000667/GiB-s | ~$0.24 | ~$95 | Starter allows 100 containers | \n\nWhere the rates and caps come from:\n\n- **E2B** bills running sandboxes per second for provisioned CPU and RAM ([E2B: Pricing](https://e2b.dev/pricing)<sup>[43](#src-43)</sup> ).\n- **Daytona** bills per second ([Daytona: Pricing](https://www.daytona.io/pricing)<sup>[44](#src-44)</sup> ) against a pooled quota where “Resources are shared across all running sandboxes” ([Daytona: Limits](https://www.daytona.io/docs/en/limits/)<sup>[45](#src-45)</sup> ).\n- **Cloudflare** says “Sandbox SDK pricing is determined by the underlying Containers platform it’s built on” ([Cloudflare: Sandbox pricing](https://developers.cloudflare.com/sandbox/platform/pricing/)<sup>[46](#src-46)</sup> ). Containers bill memory on provisioned size and CPU on active use ([Cloudflare: Containers pricing](https://developers.cloudflare.com/containers/pricing/)<sup>[47](#src-47)</sup> ). Account limits “are defaults and can be increased” ([Cloudflare: Containers limits](https://developers.cloudflare.com/containers/platform-details/limits/)<sup>[48](#src-48)</sup> ).\n- **Modal** states: “Sandboxes are billed at non-preemptible rates of 3x list price” ([Modal: Pricing](https://modal.com/pricing)<sup>[49](#src-49)</sup> ).\n\nThe dollar column is small, and three of the four providers land within a few dollars of each other. The ceiling column decides the run. On Daytona’s Tier 1, the `dep-upgrade` fan-out gets five sessions, not fifty. The other 45 queue.\n\nIdle time is the other variable. Interactive sessions spend most of their hours waiting on a model or a human. Per-second billing only helps if the sandbox stops billing while it waits.\n\nAWS prices its own coding-assistant example on Lambda MicroVMs at $12.41 per developer-month ([AWS: Lambda pricing](https://aws.amazon.com/lambda/pricing/)<sup>[50](#src-50)</sup>). The example assumes 100 developers, each active 2.5 hours of an 8-hour day, 20 days a month, with six suspend cycles daily. The lever is suspend: “MicroVMs can be suspended when idle, preserving memory and disk state while reducing costs” ([AWS: Lambda MicroVMs](https://docs.aws.amazon.com/lambda/latest/dg/lambda-microvms-guide.html)<sup>[51](#src-51)</sup>).\n\nSo price by workload. An unattended batch like `dep-upgrade` is mostly active: price it on active hours. Price an interactive fleet on its suspend behavior.\n\n## Route Your Fleet Through Six Questions\n\n**Author’s judgment.** The order of these gates is my synthesis of the sections above; no source prescribes it.\n\nAsk the questions in this order. Only the worktree rung ends the walk early. Every other yes adds a control and moves you to the next question.\n\n``` php\nflowchart TD\n    A[Time setup per session] --> B{Setup dominates time to first action?}\n    B -- yes --> B1[Defer provisioning until a session needs a sandbox]\n    B -- no --> C\n    B1 --> C{Trusted sessions on one machine?}\n    C -- yes --> C1[Worktree per session plus a prebuilt devcontainer image. Stop.]\n    C -- no --> D{Unattended or untrusted input?}\n    D -- yes --> D1[Per-session kernel. Audit pin, default runtime, egress default]\n    D -- no --> E\n    D1 --> E{Setup still over budget at your session count?}\n    E -- yes --> E1[Warm snapshot, fork, re-mint identity in the run hook]\n    E -- no --> F\n    E1 --> F{Sessions share dependencies?}\n    F -- yes --> F1[Read-only shared layer plus private writable layer per session]\n    F -- no --> G\n    F1 --> G{Sessions need credentials or network?}\n    G -- yes --> G1[Proxy outside the sandbox, egress denied by default]\n    G -- no --> H\n    G1 --> H[Price per session-hour at your real concurrency]\n```\n\n`dep-upgrade` hits every rung except the worktree one. It gets deferred provisioning and a per-session kernel with an audited pin. It gets one warm snapshot, with identity re-minted in `/run`. Its store is read-only, with a private overlay per session. Its GitHub token sits in a proxy behind default-deny egress. Priced at 50 concurrent sessions, the provider is picked by the concurrency ceiling, not the hourly rate.\n\nI packaged this route and the pricing table as [sandbox-substrate-picker](https://github.com/johnayoung/agent-engineering-toolkit)<sup>[52](#src-52)</sup>, a script that walks your fleet through the six questions and prices it per vendor plan at your real session count, flagging every plan whose cap binds.\n\nOnce each session has a place to run, the next question is what it may do there. That is a permission question, not a substrate question. The principle is the same: put the control in the environment, not in the prompt ([Tier Your AI Agent’s Production Authority by Task Risk](https://jyoung.dev/blog/agent-permission-tiering/)).\n\n## Sources\n\n1. [Anthropic: Scaling Managed Agents](https://www.anthropic.com/engineering/managed-agents) anthropic.com/engineering/managed-agents\n2. [Firecracker: Specification](https://github.com/firecracker-microvm/firecracker/blob/main/SPECIFICATION.md) github.com/firecracker-microvm/firecracker/blob/main/SPECIFICATION.md\n3. [Agache et al.: Firecracker, NSDI '20](https://files.usenix.org/s3fs-public/cdn/nsdi20-paper-agache.pdf) files.usenix.org/s3fs-public/cdn/nsdi20-paper-agache.pdf\n4. [BuildBuddy: Snapshot, Chunk, Clone](https://www.buildbuddy.io/blog/fast-runners-at-scale) buildbuddy.io/blog/fast-runners-at-scale\n5. [git-scm: git-worktree](https://git-scm.com/docs/git-worktree) git-scm.com/docs/git-worktree\n6. [Claude Code Docs: Choose a sandbox environment](https://code.claude.com/docs/en/sandbox-environments) code.claude.com/docs/en/sandbox-environments\n7. [Conductor: Troubleshooting issues](https://www.conductor.build/docs/troubleshooting/issues) conductor.build/docs/troubleshooting/issues\n8. [containers.dev: Prebuilds](https://containers.dev/guide/prebuild) containers.dev/guide/prebuild\n9. [AWS: Security Bulletin AWS-2025-024](https://aws.amazon.com/security/security-bulletins/rss/aws-2025-024) aws.amazon.com/security/security-bulletins/rss/aws-2025-024\n10. [Marchand et al.: Container Sandbox Escape](https://arxiv.org/abs/2603.02277) arxiv.org/abs/2603.02277\n11. [Kata Containers: Architecture](https://github.com/kata-containers/kata-containers/blob/main/docs/design/architecture/README.md) github.com/kata-containers/kata-containers/blob/main/docs/design/architecture/README.md\n12. [Kubernetes Docs: Pod Overhead](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead) kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead\n13. [Docker: Why MicroVMs](https://www.docker.com/blog/why-microvms-the-architecture-behind-docker-sandboxes) docker.com/blog/why-microvms-the-architecture-behind-docker-sandboxes\n14. [Docker Docs: Isolation layers](https://docs.docker.com/ai/sandboxes/security/isolation) docs.docker.com/ai/sandboxes/security/isolation\n15. [Andronchik & Lokhmakov: AI Code Sandboxes](https://arxiv.org/abs/2606.08433) arxiv.org/abs/2606.08433\n16. [Claude Code Docs: Securely deploying AI agents](https://code.claude.com/docs/en/agent-sdk/secure-deployment) code.claude.com/docs/en/agent-sdk/secure-deployment\n17. [Anjali et al.: Firecracker and gVisor, VEE '20](https://pages.cs.wisc.edu/~swift/papers/vee20-isolation.pdf) pages.cs.wisc.edu/~swift/papers/vee20-isolation.pdf\n18. [gVisor: Security Model](https://gvisor.dev/docs/architecture_guide/security) gvisor.dev/docs/architecture_guide/security\n19. [METR Hawk: Sandbox Network Isolation](https://hawk.metr.org/user-guide/sandbox-network-isolation) hawk.metr.org/user-guide/sandbox-network-isolation\n20. [Firecracker: Design](https://github.com/firecracker-microvm/firecracker/blob/main/docs/design.md) github.com/firecracker-microvm/firecracker/blob/main/docs/design.md\n21. [gVisor: Performance Guide](https://gvisor.dev/docs/architecture_guide/performance) gvisor.dev/docs/architecture_guide/performance\n22. [gVisor: Rootfs Overlay](https://gvisor.dev/blog/2023/05/08/rootfs-overlay) gvisor.dev/blog/2023/05/08/rootfs-overlay\n23. [gVisor: Directfs](https://gvisor.dev/blog/2023/06/27/directfs) gvisor.dev/blog/2023/06/27/directfs\n24. [Brooker: Lambda Snapstart](https://www.brooker.co.za/blog/2022/11/29/snapstart.html) brooker.co.za/blog/2022/11/29/snapstart.html\n25. [Dong et al.: DeltaBox](https://arxiv.org/abs/2605.22781) arxiv.org/abs/2605.22781\n26. [Brooker et al.: Restoring Uniqueness](https://arxiv.org/abs/2102.12892) arxiv.org/abs/2102.12892\n27. [Modal: Memory snapshots](https://modal.com/blog/mem-snapshots) modal.com/blog/mem-snapshots\n28. [Firecracker: Snapshotting](https://github.com/firecracker-microvm/firecracker/blob/main/docs/snapshotting/snapshot-support.md) github.com/firecracker-microvm/firecracker/blob/main/docs/snapshotting/snapshot-support.md\n29. [AWS: Working with snapshots](https://docs.aws.amazon.com/lambda/latest/dg/microvms-images-snapshots.html) docs.aws.amazon.com/lambda/latest/dg/microvms-images-snapshots.html\n30. [AWS: Running MicroVMs](https://docs.aws.amazon.com/lambda/latest/dg/microvms-launching.html) docs.aws.amazon.com/lambda/latest/dg/microvms-launching.html\n31. [E2B: Fork sandbox](https://docs.e2b.dev/api-reference/sandboxes/fork-sandbox) docs.e2b.dev/api-reference/sandboxes/fork-sandbox\n32. [Ustiugov et al.: Serverless Function Snapshots](https://arxiv.org/abs/2101.09355) arxiv.org/abs/2101.09355\n33. [AWS: MicroVM images](https://docs.aws.amazon.com/lambda/latest/dg/microvms-images.html) docs.aws.amazon.com/lambda/latest/dg/microvms-images.html\n34. [Brooker et al.: On-demand Container Loading](https://arxiv.org/abs/2305.13162) arxiv.org/abs/2305.13162\n35. [SWE-bench: The Harness](https://www.swebench.com/SWE-bench/reference/harness) swebench.com/SWE-bench/reference/harness\n36. [Epoch AI: SWE-bench in one hour](https://epoch.ai/latest/swebench-docker) epoch.ai/latest/swebench-docker\n37. [GitHub Docs: Dependency caching](https://docs.github.com/en/actions/concepts/workflows-and-actions/dependency-caching) docs.github.com/en/actions/concepts/workflows-and-actions/dependency-caching\n38. [Adnan Khan: The Monsters in Your Build Cache](https://adnanthekhan.com/2024/05/06/the-monsters-in-your-build-cache-github-actions-cache-poisoning) adnanthekhan.com/2024/05/06/the-monsters-in-your-build-cache-github-actions-cache-poisoning\n39. [Anthropic: How we contain Claude](https://www.anthropic.com/engineering/how-we-contain-claude) anthropic.com/engineering/how-we-contain-claude\n40. [Cloudflare: Credential injection for Sandboxes](https://developers.cloudflare.com/changelog/post/2026-04-13-sandbox-outbound-workers-tls-auth) developers.cloudflare.com/changelog/post/2026-04-13-sandbox-outbound-workers-tls-auth\n41. [Claude Code Docs: Use Claude Code in the cloud](https://code.claude.com/docs/en/claude-code-on-the-web) code.claude.com/docs/en/claude-code-on-the-web\n42. [Davidovich et al.: Permission Denied](https://arxiv.org/abs/2608.02670) arxiv.org/abs/2608.02670\n43. [E2B: Pricing](https://e2b.dev/pricing) e2b.dev/pricing\n44. [Daytona: Pricing](https://www.daytona.io/pricing) daytona.io/pricing\n45. [Daytona: Limits](https://www.daytona.io/docs/en/limits) daytona.io/docs/en/limits\n46. [Cloudflare: Sandbox pricing](https://developers.cloudflare.com/sandbox/platform/pricing) developers.cloudflare.com/sandbox/platform/pricing\n47. [Cloudflare: Containers pricing](https://developers.cloudflare.com/containers/pricing) developers.cloudflare.com/containers/pricing\n48. [Cloudflare: Containers limits](https://developers.cloudflare.com/containers/platform-details/limits) developers.cloudflare.com/containers/platform-details/limits\n49. [Modal: Pricing](https://modal.com/pricing) modal.com/pricing\n50. [AWS: Lambda pricing](https://aws.amazon.com/lambda/pricing) aws.amazon.com/lambda/pricing\n51. [AWS: Lambda MicroVMs](https://docs.aws.amazon.com/lambda/latest/dg/lambda-microvms-guide.html) docs.aws.amazon.com/lambda/latest/dg/lambda-microvms-guide.html\n52. [agent-engineering-toolkit: sandbox-substrate-picker](https://github.com/johnayoung/agent-engineering-toolkit) github.com/johnayoung/agent-engineering-toolkit", "url": "https://wpnews.pro/news/a-sandbox-for-ai-coding-agents-at-scale-is-a-warm-state-problem", "canonical_source": "https://jyoung.dev/blog/sandbox-parallel-coding-agents/", "published_at": "2026-11-23 00:00:00+00:00", "updated_at": "2026-11-23 17:17:21.481010+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "ai-infrastructure", "mlops", "developer-tools"], "entities": ["Anthropic"], "also_reported_by": [], "takeaway": "Build the warm sandbox state once and fork it per session, but re-mint session-unique identities after restore, since a cloned snapshot duplicates IDs, nonces and entropy; Anthropic cut typical first-response wait by roughly 60% by deferring full workspace setup until a session requested it.", "recommendation": {"advice": "Fork a pre-built warm sandbox per session instead of rebuilding setup each time, re-mint IDs and nonces after restore, and keep credentials in an egress-denied proxy outside the sandbox.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/a-sandbox-for-ai-coding-agents-at-scale-is-a-warm-state-problem", "markdown": "https://wpnews.pro/news/a-sandbox-for-ai-coding-agents-at-scale-is-a-warm-state-problem.md", "text": "https://wpnews.pro/news/a-sandbox-for-ai-coding-agents-at-scale-is-a-warm-state-problem.txt", "jsonld": "https://wpnews.pro/news/a-sandbox-for-ai-coding-agents-at-scale-is-a-warm-state-problem.jsonld"}}