# Readie: Low-Latency Code Sandboxes for AI Agents

arXiv: https://arxiv.org/abs/2611.22171 · HTML: https://mlsanity.com/paper/2611.22171/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use.
- Builds on 21 of its 66 references that are in the map.
- Submitted 17 Nov 2026, announced 18 Nov 2026.

## Placed in

- LLM agents and tool use / [Software engineering coding agents](https://mlsanity.com/agents/software-engineering-coding-agents/)

## Builds on (most cited first, 21 of 21)

- [UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction](https://mlsanity.com/paper/1802.03426/) (2018)
- [InfiAgent-DABench: Evaluating Agents on Data Analysis Tasks](https://mlsanity.com/paper/2401.05507/) (2024)
- [DSBench: How Far Are Data Science Agents from Becoming Data Science Experts?](https://mlsanity.com/paper/2409.07703/) (2024)
- [DA-Code: Agent Data Science Code Generation Benchmark for Large Language Models](https://mlsanity.com/paper/2410.07331/) (2024)
- [Benchmarking, Analysis, and Optimization of Serverless Function Snapshots](https://mlsanity.com/paper/2101.09355/) (2021)
- [No Provisioned Concurrency: Fast RDMA-codesigned Remote Fork for Serverless Computing](https://mlsanity.com/paper/2203.10225/) (2022)
- [SIEVE: Effective Filtered Vector Search with Collection of Indexes](https://mlsanity.com/paper/2507.11907/) (2025)
- [FaaSLight: General Application-Level Cold-Start Latency Optimization for Function-as-a-Service in Serverless Computing](https://mlsanity.com/paper/2207.08175/) (2022)
- [Cache-of-Thought: Master-Apprentice Framework for Cost-Effective Vision Language Model Reasoning](https://mlsanity.com/paper/2502.20587/) (2025)
- [Database Learning: Toward a Database that Becomes Smarter Every Time](https://mlsanity.com/paper/1703.05468/) (2017)
- [On-demand Container Loading in AWS Lambda](https://mlsanity.com/paper/2305.13162/) (2023)
- [AirIndex: Versatile Index Tuning Through Data and Storage](https://mlsanity.com/paper/2306.14395/) (2023)
- [LazyAttention: Efficient Retrieval-Augmented Generation with Deferred Positional Encoding](https://mlsanity.com/paper/2606.04302/) (2026)
- [S/C: Speeding up Data Materialization with Bounded Memory](https://mlsanity.com/paper/2303.09774/) (2023)
- [Pagurus: Eliminating Cold Startup in Serverless Computing with Inter-Action Container Sharing](https://mlsanity.com/paper/2108.11240/) (2021)
- [Transactional Python for Durable Machine Learning: Vision, Challenges, and Feasibility](https://mlsanity.com/paper/2305.08770/) (2023)
- [Enhancing Computational Notebooks with Code+Data Space Versioning](https://mlsanity.com/paper/2504.01367/) (2025)
- [Large-scale Evaluation of Notebook Checkpointing with AI Agents](https://mlsanity.com/paper/2504.01377/) (2025)
- [Efficient Iterative Retrieval with Heterogeneous Batching](https://mlsanity.com/paper/2609.25405/) (2026)
- [ElasticNotebook: Enabling Live Migration for Computational Notebooks](https://mlsanity.com/paper/2309.11083/) (2023)
- [HotSwap: Enabling Live Dependency Sharing in Serverless Computing](https://mlsanity.com/paper/2409.09202/) (2024)

## Abstract (arXiv)

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.
