Readie: Low-Latency Code Sandboxes for AI Agents
Arjun Sivaraman, Zhaoheng Li, Alan Shi, Sanjay Malisetty, Eugene Wu, Yongjoo Park
Abstract
From quantitative research to personal assistance, AI agents act by iteratively generating and executing code. To decouple the agent harness from code execution, many agents offload execution to dedicated systems called code sandboxes. However, existing code sandboxes suffer from slow startup. Whether they rely on custom snapshots or a single fat image, the root cause is the same: it is hard to build a compact, pre-warmed snapshot that can be shared across diverse agent-generated code while covering nearly all the artifacts (e.g., packages, datasets) it requires. In this work, we propose learned startup snapshots for low-latency code sandboxes. Our insight is that while it is hard for a single snapshot to be both compact and cover most workloads, a set of snapshots can achieve both. Each snapshot is small, initializes quickly, and covers a fraction of agent-generated code; together, the set covers most of it. We learn this set from a large training workload by formulating snapshot construction as an optimization problem and solving it with an approximation algorithm. Planned on 15K public and LLM-synthesized scripts, our system, Readie, reduces startup latency by 3-22× and end-to-end runtime by 1.3-3.3× compared to existing approaches at the same storage budget.
Create a lesson
Related papers
Think Offline, Act in Real Time: Self-Improving Visual Game Agents through Code
Shared title terminology · Zipeng Qiu, Shusheng Xu, Jiale Li et al.
Reducing Inference Cost of Coding Agents with Timeout Cascades
Shared title terminology · Boxi Zhou, German Sviridov, Dmitrii Ustiugov et al.
3D GameDev Arena: Benchmarking Coding Agents That Plan, Build, and Playtest extreme Long-Horizon Browser Games
Shared title terminology · Bizhe Bai, Jiliang Jian, Yuqing Yan et al.
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Shared title terminology · Nicolas Chapados, Jean-François Gagné, Nouha Dziri
Where the Tokens Go: Heat, Entropy and Error in Agentic Coding
Shared title terminology · Alán Aspuru-Guzik, Varinia Bernales
Values Shape What Self-Improving Coding Agents Build
Shared title terminology · Jason Liang, Dylan Waldner, Risto Miikkulainen