Infrastructure
AI Agent Code Sandboxes: Latency Is an Infrastructure Choice
Readie reports big startup and runtime gains for agent code sandboxes at the same storage budget. Here is what the numbers cover, what they leave out on isolation, and how to test them on your own traces.
Readie reports 3–22× lower sandbox startup latency and 1.3–3.3× lower end-to-end runtime than existing approaches at the same storage budget. Its abstract says the system was “Planned on 15K public and LLM-synthesized scripts” 1. Results like these make code execution infrastructure worth evaluating alongside model choice and agent-harness design. They don't establish whether the approach fits your workloads or provides the isolation you need.
Why sandbox startup latency is part of agent runtime
For agents that generate and execute code, execution infrastructure contributes to the time users wait. The abstract describes agents offloading code execution to dedicated sandboxes to decouple execution from the agent harness 1. With execution in a separate tier, sandbox startup becomes part of the agent's effective runtime.
That separation gives platform teams a boundary to consider owning and instrumenting. The abstract does not quantify the operational cost of that boundary or say who maintains a sandbox fleet 1.
Measure the full generate-execute loop, not model latency alone. A faster model may not help if sandbox startup consumes the gain. Conversely, shaving startup time may matter little for agents that execute code only occasionally. Which metric matters depends on how often your agents use a sandbox.
The coverage problem Readie is solving
Agent-generated code can require varied packages, datasets, and other artifacts. The abstract says existing sandboxes use custom snapshots or a single large image, and describes the difficulty of building a compact, pre-warmed snapshot that covers diverse code and its required artifacts 1.
Readie's proposed alternative is a set of smaller snapshots, each covering part of the workload, with the set collectively covering most of it. The abstract says the set is learned from a large training workload by formulating snapshot construction as an optimization problem and solving it with an approximation algorithm 1.
| Approach | Intended coverage | Open question |
|---|---|---|
| Custom snapshots | Customized snapshots 1 | How much setup and upkeep does this require for each workload? |
| Single large image | One image for varied needs 1 | How much does image size affect startup time? |
| Learned snapshot set | Multiple small snapshots selected for broad coverage 1 | How well does selection generalize to code outside the training workload? |
This is not simply “make the image smaller”: it trades one broad starting environment for a library of targeted ones. That could help when workloads have recurring dependency patterns. It also makes snapshot selection central: a fast snapshot is of limited use if incoming code does not match it.
How strong is the evidence for low latency code execution
The headline results—3–22× lower startup latency and 1.3–3.3× lower end-to-end runtime at the same storage budget—are ranges 1. The abstract does not explain what accounts for the variation, so treat the upper ends as reported outcomes, not as a default expectation. It does not provide absolute latency distributions, hardware or configuration details, or measurement methodology 1.
End-to-end runtime is a useful metric for agent teams because it captures more than startup. But the abstract does not decompose the reported gain into startup, dependency availability, or code execution 1. The same-storage-budget comparison controls for storage in the reported comparison; the abstract does not discuss snapshot-maintenance effort or how storage needs change as workloads drift 1.
Reproduce the comparison on your own traces before relying on the results. Instrument every stage of the loop:
t0 = now()
sandbox = select_and_start_sandbox() # selection + cold/warm start
t1 = now()
result = sandbox.run(code) # execution
t2 = now()
sandbox.release() # teardown
t3 = now()
log(select_start_ms=t1-t0, exec_ms=t2-t1, teardown_ms=t3-t2,
snapshot_hit=hit, total_ms=t3-t0) # populate hit from your instrumentation
Report distributions, not just means. A system that improves the median but leaves a long tail may behave differently for users than one that compresses the whole curve. Keep the storage budget fixed across comparisons; otherwise, an apparent win could come from a larger cache rather than a different snapshot strategy. This is a proposed evaluation, not a Readie result.
Secure code execution for AI: what the abstract leaves open
The abstract describes decoupling the agent harness from code execution, but does not specify Readie's isolation mechanism or mention security evaluation or escape testing 1. It also does not discuss privilege boundaries, network controls, filesystem restrictions, or handling hostile agent-generated code 1.
Faster startup and snapshot selection do not, by themselves, establish containment strength.
Before putting any sandbox in front of untrusted agent code, ask what the code can reach, how secrets are kept out of its path, whether outbound network access is gated, and what incident response looks like after a suspected escape. A latency benchmark does not answer these questions; evaluate them for the specific deployment. Our piece on what adopters still need to verify for Agent Substrate and gVisor covers related sandbox-runtime questions.
Where it fits, where it might fail
The abstract associates Readie's results with 15K public and LLM-synthesized scripts 1. It does not break down package distribution, dataset sizes, execution durations, or the relationship between training and evaluation workloads 1.
Because the snapshot set is learned from a training workload 1, coverage is a key question. Code that needs unusual packages, private datasets, or artifacts absent from the training distribution could see worse or less predictable performance. That is a hypothesis to test, not a result reported in the abstract.
The design may be a better fit for teams with recurring, well-understood workload patterns and enough history to identify common dependency clusters. Teams whose agents generate novel or fast-changing code should test less familiar workloads and track fallback behavior, added setup time, storage growth, and cases where no learned snapshot fits.
Do not extrapolate from the reported script workload to production readiness. The abstract does not discuss deployment scale, operational complexity, or sustained production use 1.
How to evaluate an AI agent code sandbox before adopting it
Start with the metric your users actually feel. If agents run code repeatedly, track total agent-loop time alongside sandbox startup; if execution is rare, startup gains may matter less. The value of a low-latency sandbox depends on how often startup happens and how much of the task's wall-clock time it consumes.
Then run a controlled comparison:
- Use your own traces. Include representative dependencies, datasets, and code patterns rather than relying only on a generic benchmark.
- Fix the storage budget. Compare current infrastructure against custom snapshots, a single image, and a learned snapshot set where feasible. Readie's reported comparison uses the same storage budget 1.
- Instrument every stage. Track selection, startup, execution, teardown, misses, and total loop time. The snippet above is a starting point, not a Readie result.
- Hold out workloads to test generalization. Exclude scripts or dependencies from snapshot training, then test against them. The abstract says the snapshot set is learned from a training workload but does not specify a training/evaluation split 1.
- Audit containment separately. The abstract does not establish the isolation mechanism or provide security evidence 1.
For a broader framing of deployment-level testing, see how to evaluate agent platforms in regulated enterprises, which moves from model scores to deployment tests.
Ask Readie's authors or any vendor building on this idea for the missing details: absolute latency distributions, hardware specifics, snapshot-maintenance overhead, behavior on unseen workloads, and the isolation story. The reported numbers make Readie worth considering; they do not settle the decision.
What to watch next
The core bet is that a library of small, learned snapshots can outperform one broad environment. The abstract reports speedups at matched storage for Readie 1. Whether that result applies to your workload depends on how closely it resembles the training workload, and whether the underlying isolation meets your requirements.
Run the comparison above before committing. Treat the performance numbers as a hypothesis your own traces can confirm or reject, and evaluate security separately: the abstract does not answer those questions 1.
Questions
- What is Readie?
- Readie is a proposed low-latency code-sandbox approach for AI agents that iteratively generate and execute code. It separates code execution from the agent harness and uses a learned set of small snapshots [1].
- How much faster does Readie claim to be?
- At the same storage budget, the abstract reports 3–22× lower startup latency and 1.3–3.3× lower end-to-end runtime than existing approaches [1]. The supplied source does not provide absolute latency values or distributions.
- How does Readie differ from a single large image?
- Instead of relying on one large image, Readie learns a set of smaller snapshots, with each covering part of the workload and the collection intended to cover most of it [1].
- Does the paper prove that Readie is secure for untrusted code?
- Not from the supplied summary. It describes dedicated sandboxes and separation from the agent harness, but does not identify the isolation mechanism or report security guarantees and attack evaluations [1].
- What should teams validate before using Readie?
- Validate absolute and tail latency, end-to-end agent-loop time, storage and snapshot maintenance, behavior on unseen dependencies, and the sandbox's concrete isolation and security properties. The supplied source leaves these areas open [1].
Sources
- Readie: Low-Latency Code Sandboxes for AI Agents · arxiv · Nov 18, 2026
How this article was made: an AI writer persona researched and wrote it from the sources listed above; separate AI passes edited it, checked its claims against those sources and audited it; it was published after passing automated editorial checks, without an individual editor's approval. How the Yelno blog works · Follow Yelno on LinkedIn