WorksComputer Science
TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents
Abstract
We propose TideSand, a sandbox system that intelligently multiplexes resources for performance-sensitive LLM agents, such as auto research agents working on system measurement tasks. TideSand combines three key ideas: agent-aware scheduling, which schedules sandbox execution intelligently at the tool call level to avoid resource contention; speculative swapping, which offloads the memory of sandboxes waiting on inference and restores it before their next tool call; and selective rollback, which checkpoints selected sandboxes when contention occurs and restores them when machines are idle. We evaluate TideSand across six model-workload pairs on AlgoTune, Terminal-Bench 4.0, and Terminal-Bench Science. TideSand achieves 3.8-10x higher throughput than strict reservation while maintaining tool-call fidelity, or 7-44% higher fidelity than overcommit baselines at similar throughput. Moreover, TideSand reduces the evaluation error on Algotune by 19x through improved tool-call fidelity. We hope the work motivates future research to maintain tool call fidelity while keeping resource utilization high through statistical multiplexing.
Introduction
The cost of serving large language model (LLM) agents extends beyond inference. Agents also need execution environments in which to edit code, run tests, analyze data, and conduct experiments ([40, 36] (Chen et al. 2025)). These environments, or sandboxes, isolate tool execution and retain files, processes, and memory state across successive calls ([9, 4]). Unlike an individual tool call, a sandbox can remain allocated for an entire agent task, including intervals spent waiting for model inference ([9, 14]). As inference costs at a given capability have fallen in recent years ([22]), the CPU and
memory for these sandboxes can become a growing fraction of the total cost. Reducing this cost requires adapting sandbox management to the workflow of the agents.
Agent sandboxes are unique in their workload characteristics: tool execution is often bursty. For example, a compilation task might require several CPUs to run, and then wait for an LLM inference call to process its output. To facilitate the requirements of the compilation phase, a sandbox is often allocated a fixed set of resources during its lifetime. However, this causes resource utilization to be low, since resources remains allocated and sits idle while the agent waits for inference. A natural solution to improve utilization is to leverage statistical multiplexing (i.e., not all environments are active at the same time) by over-subscribing resources. Assume a trivial example in which we have two agent sandboxes. Both sandboxes require one CPU every other second, and spend the idle second waiting for remote LLM inference. If we allocate one CPU per sandbox, the utilization is 50%. Instead, we can multiplex two sandboxes and run them on a single CPU, cutting the resource need by half. Current systems such as DeepSeek Elastic Compute (DSec) (Huang et al., [9]) and AgentZip (Li et al., [14]) improve sandbox density through this multiplexing approach.
However, resource multiplexing raises several challenges. First, admission control. If not enough resources are available for the sandbox to resume, we might need to delay its execution until some resources are freed to prevent thrashing. Second, each sandbox has state associated with it. In order for another sandbox to utilize the same resource, we must first offload its state and, before resuming it, restore its state. Yet the overhead associated with offload and restore might negate the advantages of multiplexing, so we need to choose carefully when to do so.
Most importantly, in many scenarios, agents aim to improve the performance of a system. In this case, accurate resource provision and measurement is crucial, as this is the signal the agent depends on to iterate. Consider a profiling task that requests ten CPU cores but receives only six for most of its execution. The tool call response may reflect interference from other sandboxes rather than the behavior of the implementation. An agent acting on this report will mistake a change in resource availability for a change in program performance.
To measure this effect, we use tool-call fidelity to describe how well the execution timing and results are preserved when executing in a multiplexed sandbox. Practically, we run the same tool call in a resource guaranteed sandbox, and again in a multiplexed sandbox, and compare their tool call timing and results. A sandbox system with high tool-call fidelity should have similar results between the two.
A unique opportunity here is to schedule the agent tool-calls intelligently. Delaying the LLM response slightly has no effect on the agent, since this is indistinguishable from slower LLM inference. This allows a scheduler to defer tool-calls until sufficient resources are available, while being totally transparent to the sandbox. This adds a queuing delay, but preserves tool-call fidelity.
This requirement leads to an objective of maximizing sandbox goodput: the rate of successfully completed agent tasks whose tool calls satisfy a specified fidelity requirement. We assess fidelity by comparing tool outcomes and execution-time distributions against a reference with the configured resources and no contention from other sandboxes. Using distributions accounts for the variation present even in uncontended executions. Goodput therefore captures the benefit of serving more agents together with the cost of retries, failures, and distorted observations.
To maximize goodput, we propose TideSand, which oversubscribes sandbox resources while protecting tool-call fidelity. Using agent-loop signals together with resource observations, it applies three mechanisms:
Agent-aware Scheduling admits additional work only when sufficient resource headroom is available in CPU, memory, and bandwidth, reducing resource thrashing and thus preserving tool call fidelity.
Speculative Swapping moves memory in idle sandboxes to disk during inference intervals when there is no active tool execution. When a tool call is about to be executed, it restores memory from swap before so that reclaiming memory does not simply shift recovery costs into tool execution.
Selective Rollback handles sudden spikes in resource requirements and residual contention by selectively checkpointing sandboxes before tool call execution, and shutting down sandboxes when resources are saturated to release headroom. These tool calls are re-executed after resources are available for execution.
We evaluate TideSand across six model-workload pairs on AlgoTune, Terminal-Bench 4.0, and Terminal-Bench Science with Sonnet 5.5 and DeepSeek V4.1 Flash. TideSand achieves 3.8–10× higher throughput than strict reservation while maintaining tool-call fidelity, or 7–44% higher fidelity than baselines including overcommit at similar throughput. Moreover, by improving tool-call fidelity, TideSand reduces the evaluation error on AlgoTune, measured against the agent’s task reward under strict reservation by 19×.
This paper makes three contributions:
We define tool-call fidelity as a metric for capturing resource fairness in agent sandboxes, and formulate goodput as the overarching goal for sandbox systems for serving agents.
We design TideSand, a sandbox system that combines agent-aware scheduling, speculative swapping, and selective rollback to exploit idle resources while protecting tool-call fidelity.
We show TideSand achieves 3.8–10× higher throughput than strict reservation or 7–44% higher fidelity than base-
lines at similar throughput. It also reduces the task-reward error by from fidelity improvement.
Background
Emerging Agent Workloads
LLM agents perform tasks in software engineering [40, 36], scientific data analysis [3], and web automation [48]. Platforms such as OpenHands execute tools for editing files, running tests, and driving a browser inside an isolated execution environment known as a sandbox [36]. Because an agent task unfolds over multiple turns where later actions build on earlier ones, a stateful sandbox retains filesystem, process, and memory state across the trajectory [9, 4].
More recently, people have explored using agents to conduct autoresearch [20, 27] (Mang et al. 2026). In these workflows, agents will usually be given a research environment and an end goal. The agent will conduct profiling, analysis, and tuning to come up with innovative solutions to more practical and open-ended tasks. Notably, because these tasks target practical systems such as databases, they require substantially more resources.
Increasing Sandbox Cost
To serve these agents, systems need to consider both LLM inference and sandbox costs. And sandbox costs are surprisingly becoming more and more important. Figure 1 compares October 2026 listed token prices for models scoring at least 50% on Terminal-Bench 2.1 (The Terminal-Bench Team, 2026b), grouped by release date. The minimum plotted price falls from $4.50 for the November 2025 release cohort to $0.111 per million tokens for July 2026 releases, a roughly difference (assuming a 3:1 input/output blend as in Table 2). For reference, AWS Fargate’s Linux/x86 on-demand rates in US-east-1 stay stable on the right.
Figure 1. Equal-Intelligence LLM Token prices plummet while CPU sandboxes cost stay relatively flat over the last year.
| Model | Developer | Release | Open | TB2.1 (%) | Src | Input | Output | Blended |
| Gemini 3 Pro | 2025-11-18 | 73.9 | T | 2.00 | 12.00 | 4.500 | ||
| Gemini 3 Flash | 2025-12-17 | 53.9 | V | 0.50 | 3.00 | 1.125 | ||
| Claude Sonnet 4.6 | Anthropic | 2026-02-17 | 57.3 | V | 3.00 | 15.00 | 6.000 | |
| Gemini 3.1 Pro | 2026-02-19 | 70.8 | V | 2.00 | 12.00 | 4.500 | ||
| GPT-5.4 mini | OpenAI | 2026-03-17 | 54.7 | V | 0.75 | 4.50 | 1.688 | |
| GLM-5.1 | Zhipu | 2026-03-27 | ✓ | 58.6 | T | 1.00 | 3.20 | 1.550 |
| Qwen3.6 Plus | Alibaba | 2026-03-31 | 53.2 | V | 0.50 | 3.00 | 1.125 | |
| Claude Opus 4.7 | Anthropic | 2026-04-16 | 68.9 | T | 5.00 | 25.00 | 10.000 | |
| Kimi K2.6 | Moonshot | 2026-04-20 | ✓ | 53.6 | V | 0.95 | 4.00 | 1.712 |
| MiMo V2.5 | Xiaomi | 2026-04-22 | ✓ | 60.7 | V | 0.14 | 0.28 | 0.175 |
| MiMo V2.5 Pro | Xiaomi | 2026-04-22 | ✓ | 57.3 | V | 0.435 | 0.87 | 0.544 |
| GPT-5.5 | OpenAI | 2026-04-23 | 83.2 | T | 5.00 | 30.00 | 11.250 | |
| DeepSeek V4 | DeepSeek | 2026-04-24 | ✓ | 50.2 | V | 1.32 | 3.96 | 1.980 |
| Composer 2.5 | Cursor | 2026-05-18 | 58.4 | V | 0.50 | 2.50 | 1.000 | |
| Gemini 3.5 Flash | 2026-05-19 | 74.2 | V | 1.50 | 9.00 | 3.375 | ||
| Qwen3.7 Max | Alibaba | 2026-05-19 | 61.0 | V | 2.50 | 7.50 | 3.750 | |
| Claude Opus 4.8 | Anthropic | 2026-05-28 | 78.9 | T | 5.00 | 25.00 | 10.000 | |
| MiniMax-M3 | MiniMax | 2026-06-01 | ✓ | 65.2 | A | 0.60 | 2.40 | 1.050 |
| Qwen3.7 Plus | Alibaba | 2026-06-02 | 52.8 | V | 0.40 | 1.60 | 0.700 | |
| Nemotron 3 Ultra | NVIDIA | 2026-06-03 | ✓ | 50.9 | V | 0.60 | 2.40 | 1.050 |
| Claude Fable 5 | Anthropic | 2026-06-09 | 83.8 | T | 10.00 | 50.00 | 20.000 | |
| Kimi K2.7 Code | Moonshot | 2026-06-12 | ✓ | 67.0 | V | 0.95 | 4.00 | 1.712 |
| GLM-5.2 | Zhipu | 2026-06-16 | ✓ | 67.8 | V | 1.40 | 4.40 | 2.150 |
| Claude Sonnet 5 | Anthropic | 2026-06-30 | 74.6 | T | 2.00 | 10.00 | 4.000 | |
| Grok 4.5 | xAI | 2026-07-08 | 79.3 | T | 2.00 | 6.00 | 3.000 | |
| GPT-5.6 Luna | OpenAI | 2026-07-09 | 79.0 | V | 0.20 | 1.20 | 0.450 | |
| GPT-5.6 Sol | OpenAI | 2026-07-09 | 89.5 | A | 4.00 | 20.00 | 8.000 | |
| GPT-5.6 Terra | OpenAI | 2026-07-09 | 78.4 | T | 2.00 | 12.00 | 4.500 | |
| Muse Spark 1.1 | Meta | 2026-07-09 | 76.2 | T | 1.25 | 4.25 | 2.000 | |
| Inkling | Thinking Machines | 2026-07-15 | ✓ | 55.1 | A | 1.00 | 4.05 | 1.762 |
| Kimi K3 | Moonshot | 2026-07-16 | ✓ | 85.0 | A | 3.00 | 15.00 | 6.000 |
| Gemini 3.5 Flash-Lite | 2026-07-21 | 50.2 | V | 0.30 | 2.50 | 0.850 | ||
| Gemini 3.6 Flash | 2026-07-21 | 73.8 | V | 1.50 | 7.50 | 3.000 | ||
| Ling 3.0 Flash | InclusionAI | 2026-07-23 | ✓ | 50.2 | V | 0.075 | 0.22 | 0.111 |
| Claude Opus 5 | Anthropic | 2026-07-24 | 84.6 | V | 5.00 | 25.00 | 10.000 | |
| Inkling Small | Thinking Machines | 2026-07-30 | ✓ | 55.1 | V | 0.30 | 1.20 | 0.525 |
| DeepSeek V4 Flash 0731 | DeepSeek | 2026-07-31 | ✓ | 67.0 | V | 0.44 | 1.32 | 0.660 |
| Qwen3.8 Max | Alibaba | 2026-08-02 | 67.4 | V | 2.00 | 6.00 | 3.000 | |
| Muse Spark 1.2 | Meta | 2026-08-05 | 69.7 | V | 1.25 | 4.25 | 2.000 | |
| Grok 4.6 | xAI | 2026-08-12 | 78.3 | V | 2.00 | 6.00 | 3.000 | |
| DeepSeek V4 Pro 0813 | DeepSeek | 2026-08-13 | ✓ | 54.7 | V | 1.32 | 3.96 | 1.980 |
| Gemini 3.7 Flash | 2026-08-13 | 77.5 | V | 1.50 | 7.50 | 3.000 | ||
| Qwen3.8 27B | Alibaba | 2026-08-14 | ✓ | 79.8 | A | 0.50 | 3.00 | 1.125 |
| GLM-5.3 | Zhipu | 2026-08-18 | ✓ | 83.9 | A | 1.40 | 4.40 | 2.150 |
| GLM-5.3-Flash | Zhipu | 2026-08-26 | ✓ | 84.3 | A | 0.075 | 0.25 | 0.119 |
| Hy4 Preview | Tencent | 2026-08-27 | ✓ | 55.1 | V | 0.834 | 2.501 | 1.251 |
| Claude Fable 5.1 | Anthropic | 2026-09-01 | 91.4 | A | 10.00 | 50.00 | 20.000 | |
| Gemini 3.8 Flash | 2026-09-02 | 87.6 | A | 1.50 | 7.50 | 3.000 | ||
| Muse Spark 1.3 | Meta | 2026-09-02 | 79.0 | V | 1.25 | 4.25 | 2.000 | |
| Qwen3.8 Max 0902 | Alibaba | 2026-09-02 | 88.8 | A | 2.00 | 6.00 | 3.000 | |
| GPT-6 Astra | OpenAI | 2026-09-03 | 89.9 | A | 10.00 | 50.00 | 20.000 | |
| DeepSeek V4.1 Flash | DeepSeek | 2026-09-09 | ✓ | 74.5 | V | 0.30 | 1.20 | 0.525 |
| Grok 4.7 | xAI | 2026-09-21 | 73.4 | V | 2.00 | 6.00 | 3.000 | |
| MiMo V2.6 Flash | Xiaomi | 2026-09-21 | ✓ | 76.4 | V | 0.14 | 0.28 | 0.175 |
| MiMo V2.6 Pro | Xiaomi | 2026-09-21 | ✓ | 67.8 | V | 0.435 | 0.87 | 0.544 |
| Claude Opus 5.5 | Anthropic | 2026-09-22 | 87.6 | V | 4.00 | 20.00 | 8.000 | |
| GPT-6 Luna | OpenAI | 2026-09-22 | 73.0 | V | 0.10 | 0.50 | 0.200 | |
| GPT-6 Sol | OpenAI | 2026-09-22 | 83.2 | V | 2.00 | 10.00 | 4.000 | |
| Claude Sonnet 5.5 | Anthropic | 2026-09-28 | 83.2 | V | 2.00 | 10.00 | 4.000 | |
| Gemini 4 Argon | 2026-09-30 | 57.7 | V | 4.00 | 20.00 | 8.000 | ||
| Muse Spark Open | Meta | 2026-10-15 | ✓ | 76.4 | A | 1.25 | 4.25 | 2.000 |
Table 2.
Moreover, sandboxes already account for a substantial share of agent serving costs. Figure 2 shows CPU and memory accounting for 16.4%, 33.5%, and 74.2% of total cost for GPT-6 Sol, GPT-6.1 Sol, and GPT-6 Luna respectively when we run them at max effort for Terminal-Bench 4.0 even after excluding tasks requiring GPUs. This staggering comparison, especially how models are getting increasingly cheap even for the same model type, demonstrates sandbox could soon become the biggest bottleneck in agent serving.
Figure 2. End-to-end agent cost breakdown across models at max effort for Terminal-Bench 4.0, excluding GPU tasks
Prior Work on Agent Sandboxes
System Mechanisms: Firecracker [1] and gVisor (The gVisor Authors, 2026) isolate execution through lightweight microVMs and a userspace application kernel,
| System | Oversubscription | Memory reclamation | Inference-aware | Fidelity-preserving |
| DSec | ✓ | ✓ | – | – |
| SpecBox | – | – | ✓ | – |
| AgentZip | ✓ | ✓ | ✓ | – |
| AgentCgroup | ✓ | – | ✓ | – |
| TideSand | ✓ | ✓ | ✓ | ✓ |
Table 1. Sandbox mechanisms and objectives: ✓ denotes an explicit focus; – denotes otherwise.
respectively. T-Env-X [8] reduces startup and memory costs through reusable sandboxes and memory templates backed by CXL/RDMA pools. DeltaBox [4] accelerates checkpoint and rollback through incremental state capture and frozen process templates, overlapping checkpoint work with inference. These mechanisms provide building blocks for efficient sandbox scheduling.
Workload-Aware Optimizations: Recent systems increasingly tailor these mechanisms to agent workloads, often using oversubscription to share resources left idle between tool calls. DeepSeek Elastic Compute (DSec) [9] combines oversubscription, memory reclamation, and RL-coordinated sandbox lifecycles, while CPU priorities and core scheduling protect latency-sensitive work. SpecBox [44] predicts sandbox requests from streaming model output and tool transitions to overlap preparation with ongoing inference or execution. AgentZip [14] compresses memory using template and cross-sandbox redundancy, schedules compression during inference, and prefetches pages to reduce restoration stalls. AgentCgroup [46] handles contention in oversubscription by throttling competing tool calls, but it comes at the cost of slowing down tool calls for too long.
DSec, SpecBox, AgentZip, and AgentCgroup adapt resource sharing and oversubscription to agent workloads, while prior works provide valuable primitives for sandbox scheduling. TideSand builds on the system primitives and invents new workload-aware scheduling policies to better support emerging performance sensitive agent workloads.
Sandbox for Performance Sensitive Agents
While prior work in sandbox overcommitting increases resource utilization, multiplexing alone is insufficient for providing performance-accurate sandboxes.
Workload Characteristics and Multiplexing
Agent sandboxes have bursty demand for CPU and memory. Tool calls can require several CPU cores, while inference leaves those cores largely idle and memory resident (Figure 3). Provisioning each sandbox for peak demand throughout a task wastes capacity that could serve other agents. When tool execution is staggered across agents, a host can oversubscribe: accommodate sandboxes whose aggregate configured resources exceed its physical capacity.
Figure 3. Measured CPU usage (cores) and memory usage (GiB) over time for two tasks. Shaded intervals indicate model calls. CPU usage is bursty, while memory remains resident between execution bursts.
For example, DSec ([9]) overcommits by admitting a sandbox when the node still has measured CPU and memory capacity, so the sandboxes’ configured limits can sum to more than the host’s physical capacity.
Resource Contention under Multiplexing
Multiplexing faces challenges in predicting future demand. Several admitted agents may finish inference at the same time and launch resource-intensive tools, creating contention even when average host utilization is moderate. For example, DSec checks local resource capacity before creating a sandbox and combines CPU priorities with core scheduling to limit interference ([9]). These controls operate at sandbox-level granularity, which cannot ensure that resources are ready for these bursts.
On the other hand, the agent loop offers an opportunity for speculative preparation. As a tool call streams, the scheduler can anticipate execution and begin restoring reclaimed memory while the model generates the remaining arguments. Moving restoration into this interval can reduce overhead for the tool call. Conversely, retaining inactive pages from idle sandboxes from agents doing inference can force active tools to spill to swap as shown in Figure 4.
Figure 4. Under naive multiplexing, agent A not yet doing a tool call is using sandbox resources from active agent B.
Tool Call Fidelity
Most importantly, resource contention caused by multiplexing can cause a more severe consequence for the emerging performance-sensitive sandboxes such as auto research agents. Autoresearch agents conduct experiments and use the observations to guide further investigation (Lu et al., 2024). For example, AlgoTune’s agent profiles candidate programs and uses their measured runtimes to select faster correct implementations ([27]). If the sandbox receives fewer CPU cores or less resident memory than the experiment assumes, the observation can be distorted by resource contention. The need to keep a tool call’s result and execution time consistent with a reference run on its configured CPU and memory motivates a property of sandbox execution, which we call tool-call fidelity. In other words, even if the call returns the correct output, it can still lose fidelity when CPU sharing or memory pressure changes its runtime.
We show the effect of resource contention on tool execution time and final benchmark reward in Figure 5. The left figure compares execution-time distributions for 10 tool calls each repeated for 10 times under three CPU and memory allocations, normalized to the recorded time with 8 CPUs and 16 GB. Reducing the allocation increases both execution time and its variation. The right figure compares final benchmark rewards under strict reservation and a naive overcommitment policy based on resource usage. Rewards change in both directions, showing that resource contention can change the agent’s outcome even on the same task. A higher reward under overcommitment does not imply better fidelity: in either direction, the result differs from the reference execution.

Figure 5. Resource contention causes tool execution time to deviate from the reference and affects final benchmark reward.
Given the impact of resource contention on experimental results, tool-call fidelity is the first priority in sandbox systems for autoresearch agents. It is therefore even preferable to delay a tool call rather than run it immediately with insufficient resources and distort its results, since queueing delay is indistinguishable for LLM inference delay. On the other hand, slowdown from contention during execution becomes part of the measurement and can mislead the agent’s next steps.
Improving Sandbox Goodput
The opportunity for statistical multiplexing therefore comes with a requirement to preserve execution conditions when those calls run. Increasing sandbox concurrency is useful only when it does not compromise tool-call fidelity. We capture this goal as sandbox goodput: the rate of successfully completed agent tasks whose tool calls satisfy a specified fidelity requirement. Improving goodput requires reclaiming resources during inference, restoring them before the next tool call, and controlling concurrent execution when demand exceeds host capacity.
System Design
System Overview
TideSand is a sandbox control plane that statistically multiplexes host resources across multiple agent sandboxes. This sharing improves utilization because sandbox demand is bursty during tool execution and typically falls to a fraction of the requested resources while agents wait for LLM responses. The key insight of TideSand is to schedule individual tool calls rather than solely at sandbox admission.
Figure 6 shows the architecture of our system. TideSand runs as a policy inside tideletd, a host-local daemon with four components. The controller exposes interfaces for managing sandboxes through gRPC, a CLI, and Kubernetes. The system operates transparently to the sandbox. The only configuration change required is to direct its LLM endpoint to the LLM Proxy managed by tideletd, allowing TideSand to observe and schedule tool calls without modifying the agent harness. The manager hosts the scheduling policy, which makes scheduling decisions and controls the runtime. Our runtime uses containers managed through cgroups, but it can be replaced by another sandbox technology, such as microVMs, provided that it supports the operations required by the manager.
Figure 6. System overview of TideSand.
The manager comprises three components. The resource monitor communicates with the runtime implementation and reports per-sandbox CPU usage, memory traffic, and tool-call activity. The scheduler decides when to admit sandboxes, execute tool calls, swap memory, and checkpoint sandboxes. It passes these decisions to the action executor, which issues the corresponding commands to the LLM Proxy and the runtime.
Agent-aware Scheduling
LLM Proxy: TideSand observes the agent’s inference–execution loop and controls tool-call delivery through an LLM proxy. The agent directs its model API requests to the proxy, which preserves request and response contents while controlling response timing; no changes to the agent harness are required beyond configuring the endpoint. A model request signals a transition to inference, while a tool-bearing response identifies the next execution interval. Before delivering that response, the proxy reports the tool names to the scheduler. Responses containing only recognized lightweight tools, such as file reads and edits, bypass CPU admission; those containing external execution tools, such as shell commands, wait until the scheduler admits them. For streaming responses, the proxy forwards the text preceding the first tool-call event and buffers that event and the remaining response, preventing the agent from starting a tool before admission while allowing model generation to continue. Responses without tool calls are not held for resource admission.
Statistical Resource Prediction: A tool call’s resource requirements are unknown before execution. High-fidelity execution requires sufficient resources to be available on the host, but reserving the sandbox’s full configured allocation for every call wastes capacity when demand is lower.
To balance fidelity and utilization, TideSand predicts each call’s resource usage before execution and reserves the predicted amount. The prediction is learned from the sandbox’s recent calls. Let be the measured CPU use of sandbox and its configured CPU limit. During each heavy call , the scheduler tracks an exponential average of with a time constant of 10 seconds and records its peak when the call ends. The predicted demand of the next call is the largest peak of the last three calls; a sandbox without history uses the median peak observed on the host, or before any call has completed. The reservation is
where is the sandbox’s background use between calls. A call predicted at half its limit or more reserves the whole limit, to preserve the parallelism available to CPU-intensive jobs in the reference run. Memory traffic is predicted the same way from each call’s sustained traffic , with the reservation capped at the sandbox’s share of the host bandwidth by its CPU limit. A new sandbox is expected to use bytes of memory, the median resident memory of existing sandboxes.
Fine-grained Admission: TideSand admits work at two granularities: a tool call is released when its reservation fits the host’s headroom, and a sandbox is started when its expected memory fits. Let be the host’s cores and its sustainable memory bandwidth, and let and be the measured CPU use and memory traffic of all sandboxes. Measurements can lag newly released calls. The scheduler therefore adds a pending term over calls released within the last 10 seconds, denoted by , accounting for the portion of each reservation not yet reflected in measured use:
and likewise for traffic. A heavy response from sandbox is released when
with budget thresholds of and . Without the pending term, a burst of responses would be released against the same apparent headroom before any of them appears in a sample.
Responses that do not fit wait in a queue ordered by arrival. The scheduler considers the oldest response first but lets a younger response pass when it fits and the older one does not, avoiding unnecessary idling behind a large reservation. A new sandbox starts when its boot allowance satisfies Equation (3) and its expected memory fits the admission target,
with , where is the memory in use and is the memory that swapped-out sandboxes with waiting responses will take back.
Speculative Swapping
Memory Swapping: Memory cannot be multiplexed as readily as CPU capacity because it holds persistent sandbox state. Reusing that capacity requires offloading the state and restoring it before the sandbox access it again. Offloading state to disk consumes bandwidth that active tool calls may also need. For CPU-intensive workloads, this cost may be unnecessary because CPU capacity is the bottleneck rather than memory. TideSand therefore initiates proactive swapping only under memory pressure. Admission stops at 80% of memory capacity (Equation (4)), but the sandboxes already admitted keep growing. When their growth pushes the memory in use past 90%, the scheduler selects sandboxes waiting for model responses, prioritizing those with the largest resident working sets. For each selected sandbox, the scheduler asks the kernel to reclaim 80% of the sandbox’s resident memory to swap, without stopping its processes.
Speculative Prefetch: A swapped-out sandbox must recover its working set before its next tool call to avoid swap-in page faults during execution. The LLM proxy tells the scheduler when that moment comes: the next tool-bearing model response signals that the agent is about to resume execution. When that response arrives at the proxy, the scheduler holds it and issues a prefetch for the sandbox. The prefetch asks the kernel to read the sandbox’s swapped pages back into memory, after which the response can proceed; heavy responses remain subject to tool-call admission, but memory swap-in is now overlapped with waiting admission.
Selective Rollback
Resource prediction is statistical: it reserves what a sandbox’s recent calls indicated, not what its next call may do. A tool call can use more resources than its predicted resource allocation, and several admitted calls can burst beyond their predictions at the same time. If the burst exceeds the headroom, the host saturates, which decreases tool-call fidelity. A simple solution to reduce the chances of such spikes is to leave a large headroom below capacity, but doing so reduces resource utilization. TideSand instead runs close to the capacity and treats saturation as a rare event to recover from rather than a state to prevent. Selective rollback removes selected calls from execution so that the remaining calls retain sufficient resources, then retries the stopped calls once the spike has passed.
Checkpointing Sandboxes: A call can be undone only if its sandbox can be returned to the state before it started. TideSand takes a whole-sandbox checkpoint at the moment the agent sends the model request that precedes the tool call, capturing the state of its processes and its filesystem. Taking the checkpoint at the request rather than at the response overlaps checkpointing with model inference, reducing the delay exposed to the agent. A rollback stops the sandbox, restores the checkpoint, and resumes the agent at the point of the request; the agent re-sends the request and the response carries the same tool call, which the scheduler now admits like any other. However, checkpointing occupies valuable resources that could be used for running other tasks. TideSand therefore checkpoints only selected calls.
Choosing Checkpoints and Restores: A call is selected for checkpointing only when it could cause a spike and its estimated checkpoint cost is low relative to its duration: it must reserve at least half its CPU limit, the host must be loaded enough for a spike to matter, and the expected checkpoint time, estimated from earlier checkpoints, must be a small fraction of the sandbox’s typical call duration. Rollback is triggered when the measured CPU use or memory traffic has stayed above 85% of the host’s capacity for three seconds. The scheduler then stops the checkpointed calls whose measured use exceeds their reservation by the most, until their removal is expected to bring demand below the threshold. A stopped call is restored at the head of the queue as soon as its reservation fits. Across the workloads in § 6, fewer than 3% of calls are checkpointed and fewer than 0.5% are rolled back, with a CPU overhead under 2% (Figure 14).
Figure 14. TideSand rolls back few tool calls, with CPU overhead under 2% across workloads.
Implementation
Sandbox daemon: TideSand is implemented as a policy of tideletd, a host-local sandbox daemon written in about 21K lines of Go. The daemon owns the sandbox table, runs containers through containerd and runc under cgroup v2, exposes a gRPC API and a command-line client, and can register the host as a Kubernetes node through a virtual-kubelet provider so that a Pod maps to a sandbox. Each sandbox is created with the CPU and memory limits its task specifies; the limits bound the sandbox but are not reserved on the host. The daemon samples every sandbox at 250 ms intervals, recording its cumulative CPU time, resident working set, swap, and pressure-stall information, and reads the host’s memory traffic from the hardware last-level-cache miss counter. A policy is implemented behind a small event interface: it receives resource samples, model-request and model-response events from the LLM proxy, and sandbox lifecycle events, and returns actions such as release or hold a response, admit or queue a sandbox, reclaim or prefetch memory, checkpoint, roll back, and restore. Strict reservation, threshold overcommit, and TideSand are policies of this interface; the TideSand policy is about 1,500 lines and is selected by a daemon flag.
LLM proxy: The daemon runs a pass-through proxy for the model API that the agent reaches through its base-URL setting, so Claude Code runs unmodified in the sandbox. The proxy forwards streamed tokens until the response carries a tool call and buffers the remainder; it then reports the tool names to the policy and delivers the buffered part when the policy releases it. The proxy also records every request and response, which gives the scheduler each sandbox’s execution and inference intervals without instrumenting the agent.
Memory and checkpoints: Speculative swapping uses the kernel’s reclaim and process_madvise interfaces on the sandbox’s processes, so swapping out and prefetch happen outside the agent. Selective rollback uses whole-container checkpoints: the daemon freezes the sandbox’s cgroup, dumps its processes with CRIU, and snapshots the writable layer of its filesystem; a rollback restores both and the agent re-issues the model request that preceded the checkpoint. Checkpoint images live on a RAM-backed filesystem and are discarded when the call completes.
Replay harness: To compare policies on identical agent behavior we built TideBox, about 6K lines of Python. It records an agent run once, capturing every model request and response with its timing together with the sandbox telemetry, and replays the recording in a fresh sandbox: a per-sandbox controller answers the agent’s model requests from the tape through the proxy while the tool calls execute for real in the sandbox. The replay driver passes sandbox arrivals, repeats each recording a configurable number of times, and compares every tool call’s output and execution time with the recording and with reference replays.
Evaluations
Experiment Setup
Models and agent: We use two models: Claude Sonnet 5.5 and DeepSeek V4.1 Flash. The harness is Claude Code (versions 2.1.300–2.1.309), which runs unmodified inside each sandbox with the model reached through the TideSand proxy. Each task was run with the agent’s default settings for the benchmark (effort max for AlgoTune and Terminal-Bench Science, medium for Terminal-Bench 4.0 on Sonnet), and every experiment replays these recordings as described in § 5 to compare on identical agent behavior.
Hardware: Each experiment runs on an AWS `c7g.metal bare-metal instance: 64 Arm Neoverse-V1 cores (Graviton3), 128 GB of DRAM, gp3 storage, Ubuntu with Linux 6.17. The sandboxes run in a cgroup of 56 cores and 112 GiB; the remaining 8 cores run the replay driver and the daemon. A 64 GB swap file backs speculative swapping and the memory overcommitment of the baselines.
Workloads: We use three agent benchmarks with resource-intensive tools.
AlgoTune [27]: the agent optimizes the runtime of an algorithm while preserving correctness, profiling candidate implementations in the sandbox; 50 tasks, each with 8 CPUs and 16 GB.
Terminal-Bench 4.0 [23] (The Terminal-Bench Team 2026c): terminal tasks verified by task-specific tests; 50 recorded tasks, with 2–16 CPUs and 4–16 GB each.
Terminal-Bench Science [29]: data-analysis and simulation tasks derived from published research; a random 50 of the 62 recorded tasks, with 1–4 CPUs and 2–16 GB each.
Every task is capped at two hours of agent time. To load the host with enough load, the driver offers the recorded tasks at a fixed arrival rate and repeats each recording: AlgoTune at ×2 (100 sandboxes, one every 15 s), Terminal-Bench at ×8 (400 sandboxes, one every 3 s), and Terminal-Bench Science at ×2 (100 sandboxes, one every 15 s).
Baselines: We compare TideSand with three policies implemented in the same daemon:
Strict reservation: a sandbox is admitted only when its configured CPU and memory fit in the physical capacity.
Overcommit-: a sandbox is admitted whenever the host’s measured CPU and memory use are both below a fraction of capacity, with ; once admitted, sandboxes run without further control. This is similar to the threshold-based overcommit of DeepSeek’s DSec [9].
AgentCgroup [46]: the tool-call resource controller of AgentCgroup, ported as its cgroup-v2 control loop (Appendix § 12). Each tool call is classed by a hint and given a memory allowance and a CPU weight; under memory pressure, high-class sandboxes are protected and the rest are throttled.
Metrics: We evaluate on the following metrics:
Throughput: tool calls completed per host-hour. We measure until 80% of the run’s tool calls have completed to prevent stragglers dominating delay.
Tool-call fidelity: the fraction of tool calls whose delay inflation is less than 10% of their reference time, which is the slowest of five strict replays of the same recording on strictly reserved host. We only measure fidelity for calls with a reference time of at least one second.
Replay-reward error: the percentage change in tasks’ verifier score running in new sandbox system against the strict replay of the same recording.
End-to-End Results
Throughput and Fidelity: Figure 7 shows the throughput and fidelity of the four policies on the six model-workload pairs. Strict keeps fidelity but runs at a significantly lower throughput. On the other hand, TideSand achieves higher throughput while maintaining similar fidelity with strict, achieving better tradeoff compared with baselines. AgentCgroup’s performance is close to overcommit-1.0 on every workload: its throughput stays within 11% of overcommit-1.0’s, and its fidelity ranges from 52% to 84%, 9–42% below TideSand’s. Notice that sometimes Overcommit achieves better throughput than TideSand despite having a worse tradeoff curve. We did not extend TideSand to that tradeoff point because in practice low fidelity (e.g., under 80%) could lead to a failed agent.
Figure 7. TideSand achieves better tradeoff on throughput and fidelity across six model-workload pairs. Higher throughput and fidelity is better.
Workload Burstiness: TideSand’s advantage is largest on AlgoTune with Sonnet, and Figure 10 shows why: its sandboxes are the spikiest (peak 25× the mean CPU, against 4–16× in other workloads) and the most dispersed. Dispersion, the variance of a sandbox’s CPU use over its mean, measures how much the CPU demand fluctuates for each sandbox. The baselines do not predict bursts when admitting sandboxes, so when several burst at once they saturate the host.
Figure 10. CPU burstiness of each workload under strict reservation (a) each sandbox’s peak-to-mean CPU; (b) the variance-to-mean ratio of each sandbox’s CPU, in cores. AlgoTune Sonnet has the highest spikiness and dispersion.
the host. TideSand admits a tool call only when it fits the measured headroom, so the more dispersed the workload, the more it gains over baselines.
Task-Score Error: We measure the significance of TideSand’s fidelity increase in Figure 8. We replay the same recorded trace of AlgoTune under Sonnet of each task and re-score the identical final solution with the benchmark’s verifier under different sandbox policies. Against the strict replay, overcommit changes the reward by +77% on average with a standard deviation of 278% over the 32 scored tasks, while TideSand changes it by −4% ± 14%, significantly reducing the error. Notice that a second strict run differs from the first by +1% ± 5%, which is almost indistinguishable from TideSand’s error.
Figure 8. TideSand reduces the actual reward error on AlgoTune compared to using overcommit policy during actual evaluations.
Resource Utilization: Figure 9 shows how the host’s CPU, DRAM, and swap use changes over time during the Terminal-Bench Science’s Sonnet runs. Strict reservation keeps the host at 23% CPU on average for six hours and never exceeds a fifth of its DRAM. Overcommit-0.8 admits the workload within its first hour and holds the host at 100% CPU for the next hour while resident memory and swap climbs. This damages the fidelity of the task running during this period. TideSand runs the same workload at below 80% CPU and 60% DRAM utilization, resulting in tool call fidelity preservation.
Figure 9. Time series of host CPU, DRAM, and swap use during Terminal-Bench Science runs with Claude Sonnet 5.5 under strict reservation, overcommit-0.8, and TideSand.
Extended Evaluation
Tool-Call Distributions: Figure 13 shows each tool call’s execution time relative to its reference for the three Sonnet workloads. Strict concentrates tightly around the reference, while overcommit develops a long tail of heavily slowed calls. TideSand stays close to strict and removes most of this tail. Terminal-Bench shows the smallest gap because its calls are short and rarely saturate the host.
Figure 13. TideSand keeps tool-call distributions similar to Strict across workloads
Mechanism Ablation: Figure 11 runs TideSand with one mechanism at a time on AlgoTune with Sonnet. Each mechanism alone moves above the overcommit curve, with defer only lands close to full policy but sacrifices throughput. Speculative swapping and rollback are slightly above overcommit for their ability to clear more spaces to reduce contention. However, no single mechanism is able to achieve the best tradeoff as TideSand does.
Figure 11. Ablation of TideSand on AlgoTune (×2). We compare individual mechanisms of TideSand against the full policy.
Parameter Sensitivity: Figure 12 varies one parameter at a time from the default configuration on AlgoTune with Sonnet. Across all these settings, fidelity stays between 93% and 96%, and no setting causes a sharp drop in either metric. Changing these parameters only slightly shifts TideSand along its throughput-fidelity tradeoff curve, but does not dampen the design’s superiority over baselines.
Figure 12. TideSand remains robust across different hyperparameter setups on AlgoTune dataset running under Sonnet 5.5.
Microbenchmarking: Figure 14 measures how often selective rollback acts and what it costs across the six end-to-end runs. Only 0.6–2.9% of calls are checkpointed, and rollbacks are rare: at most 0.44% of calls, on Terminal-Bench Science with Sonnet. Counting both checkpoint freezes and discarded execution, the CPU overhead stays below 2% on every workload. This shows that TideSand rarely falls back to rollback and the cost is minimal.
Related Work
LLM Inference: LLM serving systems improve inference through memory management and attention kernels ([11, 45] (Ye et al. 2025)), prefill-decode disaggregation ([47, 28]), and KV-cache compression, reuse, and offloading ([16, 41, 17] (Gao et al. 2024)). For agent workloads, AgenticX ([19]) schedules calls using program-level history, Continuum ([14]) retains KV caches during tool calls with bounded time-to-live, and MORI ([38]) uses relative idleness to place caches across GPU and CPU memory. ThunderAgent ([10]) coordinates program-aware inference scheduling with tool-resource management. TideSand addresses the complementary challenge of sharing CPU and memory for sandboxes.
Serverless Container and Sandbox: Serverless systems reduce environment startup and memory costs through caching, prefetching, and reclamation. Catalyst (Du et al., 2020) reuses initialized state for fast sandbox startup, and MITOSIS ([37]) enables RDMA-based remote fork without provisioning cached instances on each host. RainbowCake (Yu et al., 2024) shares container layers, REAP ([34]) prefetches snapshot working sets, and FaaSMem (Xu et al., 2024) and Squeezy ([12]) improve memory efficiency through offloading and reclamation. Jiagu ([15]) combines performance-aware scheduling and staged scaling to improve utilization while maintaining QoS. TideSand complements these mechanisms by exploiting agent specific improvements by efficient sharing while controlling contention for fidelity to preserve autoresearch agent measurements.
Commercial Sandbox: We describe the oversubscription policies of two leading commercial sandbox providers: E2B supports memory oversubscription through userfaultfd-based lazy memory loading, allocating physical memory only as sandbox pages are accessed (E2B, 2026b;a). Modal supports CPU oversubscription by separating guaranteed CPU reservations from maximum usage limits, allowing sandboxes to burst beyond their reserved capacity when spare resources are available (Modal, 2026b;a). However, both policies are designed to improve execution time rather than fidelity. Our focus is preserving that criterion for autoresearch measurements while sharing idle resources.
Future Work
Extension to More Sandbox Types: Extending TideSand to GPU or TPU sandboxes requires tracking and reclaiming accelerator state alongside CPU memory. Tools may load model weights, allocate device buffers, or launch kernels, so restoring a sandbox must preserve consistency between host and device state while weighing transfer costs against expected idle intervals. While utilities like NVIDIA’s CUDA checkpoint (NVIDIA, 2026) support saving and restoring GPU state alongside CPU checkpoints, arbitrary accelerator workloads and other backends (such as TPUs) require assessing backend-specific runtime and driver capabilities.
Co-design with Inference System: Sandbox and inference systems can coordinate in both directions: inference progress can guide sandbox restoration, while tool execution signals can inform KV-cache retention. For example, Continuum uses tool-aware time-to-live policies to keep an agent’s KV cache in GPU memory across short tool calls ([14]). A joint scheduler could refine these decisions using live signals, such as evicting KV cache when sandbox server is already under contention, or reclaiming sandbox memory during extended inference waits.
Better Mechanism Support: Our main contribution in TideSand is outlining three key ideas for obtaining performance accurate sandboxes. However, the mechanisms that implement these ideas, can be made more efficient and left as future work. For example, we found no good preexisting read-to-use methods for implementing memory bandwidth isolation between sandboxes, and this made perfect tool-call fidelity hard to obtain. Checkpoint and restore overhead can also be further reduced with more efficient mechanisms such as ([4]).
Conclusion
Agent sandboxes introduce new opportunities for sandbox management: bursty tool execution allows resource multiplexing for more efficient resource utilization. However, resource contention can distort the measurements that guide subsequent agent decisions, compromising tool-call fidelity and task quality. We present TideSand, which combines agent-aware scheduling, speculative swapping, and selective rollback to obtain performance accurate sandbox multiplexing. Across six model-workload pairs, our evaluation shows that TideSand achieves the throughput of strict reservation while preserving tool-call fidelity, 7–44% higher fidelity than overcommitting at similar throughput, and reduces the error in the agent’s task reward from 77% to 4%. We hope this work motivates the development of more performance-accurate sandbox systems for LLM agents that operate with high resource utilization.
AI Usage Disclosure
We mainly used coding agents to help generate code. We also used AI tools to proofread, correct grammar, and refine sentences for writing.
LLM PRICE DATA
Table 2. Models scoring at least 50% on Terminal-Bench 2.1, as plotted in Figure 1(a). Scores are the best independent result recorded in our data: T is the official tbench.ai leaderboard (The Terminal-Bench Team, 2026a), V is Vals AI (Terminus 2 harness) [35], and A is Artificial Analysis [2]. Prices are listed input/output rates in USD per 1M tokens compiled in October 2026; blended weights input and output 3:1. Bold rows set a new lowest blended price.
AgentCGroup baseline
The AgentCgroup baseline in § 6 is a port of the tool-call resource controller of AgentCgroup [46], run as its cgroup-v2 control loop inside the same daemon as the other policies.
Each tool call, delimited by the sandbox’s model requests, opens a resource domain. A hint derived from the call (file tools and light shell commands low, package fetches medium, everything else high) sets the sandbox’s memory.high to the call’s allowance over the sandbox’s memory at the call’s start (256 MiB, 1 GiB, or the limit) and its CPU weight to its class’s (150 high, 50 low). Memory pressure, from host memory use above 85%, memory PSI above 10%, or a high-class call stalling on memory, opens one-second protection windows in which high-class sandboxes are protected with memory.low and low-class sandboxes are squeezed to their current use plus 256 MiB and frozen after three seconds over their cap. The controller’s per-call child cgroups cannot be created on the container’s exec path, so the domain is the sandbox’s cgroup, and the agent’s response to the controller’s throttling feedback, re-issuing the call with a higher hint, is replayed as a promotion of the hint after 30 seconds of throttling.
References
- [1]Agache, A., Brooker, M., Iordache, A., Liguori, A., Neuge-bauer, R., Piwonka, P., and Popa, D.-M. Firecracker: Lightweight Virtualization for Serverless Applications. In 17th USENIX Symposium on Networked Systems Design and Implementation (NSDI 20), pp. 419–434. USENIX Association, 2020. URL https://www.usenix.org/conference/nsdi20/presentation/agache.
- [2]Artificial Analysis. Terminal-Bench 2.1 Benchmark, 2026. URL https://artificialanalysis.ai/evaluations/terminalbench-2-1. Accessed October 25, 2026.
- [3]Chen, Z., Chen, S., Ning, Y., Zhang, Q., Wang, B., Yu, B., Li, Y., Liao, Z., Wei, C., Lu, Z., Dey, V., Xue, M., Baker, F. N., Burns, B., Adu-Ampratwum, D., Huang, X., Ning, X., Gao, S., Su, Y., and Sun, H. ScienceAgentBench: Toward Rigorous Assessment of Language Agents for Data-Driven Scientific Discovery. In International Conference on Learning Representations, volume 2025, pp. 96934–96990, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/file/f12b4df2634f3be803c06b555252efe-paper-Conference.pdf.arxiv.org/abs/2410.05080
- [4]Dong, Y., He, J., Liu, S., Hou, Y., Du, D., Xu, Z., Yu, S., Yang, B., Xia, Y., and Chen, H. DeltaBox: Scaling Stateful AI Agents with Millisecond-Level Sandbox Checkpoint/Rollback. arXiv preprint arXiv:2605.22781, 2026. URL https://arxiv.org/abs/2605.22781v2.
- [9]Huang, J., Tang, H., Chen, J., Liu, Y., Chen, Y., Cheng, Y., Tao, Y., Zhou, J., Chen, Y., Chen, H., et al. DeepSeek Elastic Compute (DSec): A Sandbox Infrastructure for Effective Agentic Training at Scale. arXiv preprint arXiv:2609.22978, 2026b. URL https://arxiv.org/abs/2609.22978v1.
- [10]Kang, H., Li, Z., Xu, W., Yang, X., Chen, Y., Wang, J., Chen, B., Krishna, T., Xu, C., and Arora, S. ThunderAgent: A Simple, Fast and Program-Aware Agentic Inference System. arXiv preprint arXiv:2602.13692, 2026. URL https://arxiv.org/abs/2602.13692v3.
- [11]Kwon, W., Li, Z., Zhuang, S., Sheng, Y., Zheng, L., Yu, C. H., Gonzalez, J., Zhang, H., and Stoica, I. Efficient Memory Management for Large Language Model Serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles, pp. 611–626. ACM, 2023. doi: 10.1145/3600006.3613165. URL https://doi.org/10.1145/3600006.3613165.
- [12]Lagkas Nikolos, O., Alberti, C., Posmodakis, S., Goumas, G., and Koziris, N. Squeezy: Rapid VM Memory Reclamation for Serverless Functions. In Proceedings of the 21st European Conference on Computer Systems, pp. 1467–1482. ACM, 2026. doi: 10.1145/3767295.3769357. URL https://doi.org/10.1145/3767295.3769357.
- [14]URL https://arxiv.org/abs/2609.11294v1.
- [15]Liu, Q., Yang, Y., Du, D., Xia, Y., Zhang, P., Feng, J., Larus, J. R., and Chen, H. Harmonizing Efficiency and Practicality: Optimizing Resource Utilization in Serverless Computing with Jiagu. In 2024 USENIX Annual Technical Conference (USENIX ATC 24), pp. 1–17. USENIX Association, 2024a. URL https://www.usenix.org/conference/atc24/presentation/liu-qingyuan.arxiv.org/abs/2403.00433
- [16]Liu, Y., Li, H., Cheng, Y., Ray, S., Huang, Y., Zhang, Q., Du, K., Yao, J., Lu, S., Ananthanarayanan, G., Maire, M., Hoffmann, H., Holtzman, A., and Jiang, J. CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving. In Proceedings of the ACM SIGCOMM 2024 Conference, pp. 38–56. ACM, 2024b. doi: 10.1145/3651890.3672274. URL https://doi.org/10.1145/3651890.3672274.
- [17]Liu, Y., Cheng, Y., Yao, J., An, Y., Chen, X., Feng, S., Huang, Y., Shen, S., Zhang, R., Du, K., and Jiang, J. LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inference. arXiv preprint arXiv:2510.09665, 2025. URL https://arxiv.org/abs/2510.09665v2.
- [19]Luo, M., Shi, X., Cai, C., Zhang, T., Wong, J., Wang, Y., Wang, C., Huang, Y., Chen, Z., Gonzalez, J. E., and Stoica, I. Agentix: An Efficient Serving Engine for LLM Agents as General Programs. In 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI 26), pp. 2443–2459. USENIX Association, 2026. URL https://www.usenix.org/conference/nsdi26/presentation/luo.arxiv.org/abs/2502.13965
- [20]Mang, Q., Chai, W., Li, Z., Mao, H., Zhou, S., Du, A., Li, H., Liu, S., Chen, E., Wang, Y., Chu, X., Cheng, Z., Xu, Y., Xia, T., Wang, Z., Shi, T., Yao, J., Zhao, Y., Zhang, Q., Ruan, C., Shen, Z., Liu, K., He, R., Xing, D., Li, Z., Zeng, Z., Jiang, Y., Cheng, L., Zhao, Z., Sun, Y., Zheng, W., Zhang, M., Ji, R., Tu, X., Zheng, Z., Chen, Z., Zhou, K., Wang, Z., Chen, J., Korolova, A., Henderson, P., Viswanath, P., Ganesh, V., Xie, S., Liu, Z., Song, D., Min, S., Stoica, I., Gonzalez, J. E., Shang, J., and Cheung, A. Frontiers: Evolving challenges for evolving intelligence, 2025. URL https://arxiv.org/abs/2512.15699.
- [22]Maslej, N., Fattorini, L., Perrault, R., Gil, Y., Parli, V., Kariuki, N., Capstick, E., Reuel, A., Brynjolfsson, E., Etchemendy, J., et al. Artificial Intelligence Index Report 2025. arXiv preprint arXiv:2504.07139, 2025. URL https://arxiv.org/abs/2504.07139v3.
- [23]Merrill, M., Shaw, A., Carlini, N., Li, B., Raj, H., Bercovich, I., Shi, L., Shin, J., Walshe, T., Buchanan, E. K., et al. Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfaces. In International Conference on Learning Representations, volume 2026, pp. 40903–40986, 2026. URL https://proceedings.iclr.cc/paper_files/paper/2026/file/444a3737adaee10d86ad2ef5f74468e6–Paper-Conference.pdf.
- [27]Press, O., Amos, B., Zhao, H., Wu, Y., Ainsworth, S., Krupke, D., Kidger, P., Sajed, T., Stellato, B., Park, J., et al. AlgoTune: Can Language Models Speed Up General-Purpose Numerical Programs? In Advances in Neural Information Processing Systems, volume 38, Main Conference. Curran Associates, Inc., 2025. doi: 10.52202/085713-3585. URL https://doi.org/10.52202/085713-3585.
- [28]Qin, R., Li, Z., He, W., Cui, J., Tang, H., Ren, F., Ma, T., Cai, S., Zhang, Y., Zhang, M., Wu, Y., Zheng, W., and Xu, X. Mooncake: A KVCache-centric Disaggregated Architecture for LLM Serving. ACM Transactions on Storage, 22(4):1–38, 2026. doi: 10.1145/3773772. URL https://doi.org/10.1145/3773772.
- [29]Terminal-Bench-Science Team. Terminal-Bench-Science: Evaluating AI agents on research workflows across scientific domains. Computer software, 2026. URL https://doi.org/10.5281/zenodo.22110253.
- [34]Ustiugov, D., Petrov, P., Kogias, M., Bugnion, E., and Grot, B. Benchmarking, analysis, and optimization of serverless function snapshots. In Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, pp. 559–572. ACM, 2021. doi: 10.1145/3445814.3446714. URL https://doi.org/10.1145/3445814.3446714.
- [35]Vals AI. Terminal-Bench 2.1 Leaderboard and Methodology, 2026. URL https://vals-ai.com/benchmarks/terminal-bench-2-1. Accessed October 25, 2026.
- [36]Wang, X., Li, B., Song, Y., Xu, F. F., Tang, X., Zhuge, M., Pan, J., Song, Y., Li, B., Singh, J., et al. OpenHands: An Open Platform for AI Software Developers as Generalist Agents. In International Conference on Learning Representations, volume 2025, pp. 65882–65919, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/file/a4b6ad6b48850c0c331d1259fc66a69c–Paper-Conference.pdf.arxiv.org/abs/2407.16741
- [37]Wei, X., Lu, F., Wang, T., Gu, J., Yang, Y., Chen, R., and Chen, H. No Provisioned Concurrency: Fast RDMA-codesigned Remote Fork for Serverless Computing. In 17th USENIX Symposium on Operating Systems Design and Implementation (OSDI 23), pp. 497–517. USENIX Association, 2023. URL https://www.usenix.org/conference/osdi23/presentation/wei-rdma.arxiv.org/abs/2203.10225
- [38]Xia, T., Li, H., Li, Z., Chen, X., Kang, H., Qiao, Y., Xu, Y., and Stoica, I. Idleness is Relative: Exploiting Tool-Call Idle Windows for Offloading in Agentic Systems with MORI. arXiv preprint arXiv:2606.00866, 2026. URL https://arxiv.org/abs/2606.00866v1.
- [40]Yang, J., Jimenez, C., Wettig, A., Lieret, K., Yao, S., Narasimhan, K., and Press, O. SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering. In Advances in Neural Information Processing Systems, volume 37, pp. 50528–50652. Curran Associates, Inc., 2024. doi: 10.52202/079017-1601. URL https://doi.org/10.52202/079017-1601.
- [41]Yao, J., Li, H., Liu, Y., Ray, S., Cheng, Y., Zhang, Q., Du, K., Lu, S., and Jiang, J. CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion. ACM Transactions on Computer Systems, 2026. doi: 10.1145/3790254. URL https://doi.org/10.1145/3790254.
- [44]Zhang, Y., Wo, T., Wang, J., Sun, X., Zhang, M., Yuan, C., Li, L., Hu, C., Zomaya, A. Y., and Yang, R. SpecBox: Speculative Sandbox Scheduling for Efficient LLM Agent Serving. arXiv preprint arXiv:2607.23933, 2026. URL https://arxiv.org/abs/2607.23933v2.
- [45]Zheng, L., Yin, L., Xie, Z., Sun, C., Huang, J., Yu, C. H., Cao, S., Kozyrakis, C., Stoica, I., Gonzalez, J. E., Barrett, C., and Sheng, Y. SGLang: Efficient Execution of Structured Language Model Programs. In Advances in Neural Information Processing Systems, volume 37, pp. 62557–62583. Curran Associates, Inc., 2024. doi: 10.52202/079017-2000. URL https://doi.org/10.52202/079017-2000.
- [46]Zheng, Y., Fan, J., Fu, Q., Yang, Y., Zhang, W., and Quinn, A. AgentCroup: Understanding and Controlling OS Resources of AI Agents. arXiv:2602.09345, 2026.arxiv.org/abs/2602.09345
- [47]Zhong, Y., Liu, S., Chen, J., Hu, J., Zhu, Y., Liu, X., Jin, X., and Zhang, H. DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving. In 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI 24), pp. 193–210. USENIX Association, 2024. URL https://www.usenix.org/conference/osdi24/presentation/zhong_yimin.arxiv.org/abs/2401.09670
- [48]Zhou, S., Xu, F. F., Zhu, H., Zhou, X., Lo, R., Sridhar, A., Cheng, X., Ou, T., Bisk, Y., Fried, D., Alon, U., and Neubig, G. WebArena: A Realistic Web Environment for Building Autonomous Agents. In International Conference on Learning Representations, volume 2024, pp. 15585–15606, 2024. URL https://proceedings.iclr.cc/paper_files/paper/2024/file/4410c07119e547a2d26f9b3816d1ef-Paper-Conference.pdf.arxiv.org/abs/2307.13854












