Agent·

AgentZip compresses agent sandboxes 8.7× — LLM-wait latency hiding — What does it mean?

The news. On September 10, 2026, a paper posted to arXiv described AgentZip, a memory system for the sandboxes that agent tool calls run inside. The authors report sandbox-owned memory reduced by up to 8.7×, against 2.1× for the Linux configuration they compare against. The part this article is about is the second claim: restore prefetching plus execution-aware scheduling cut the slowdown from aggressive compression from as high as 3.1× to 1.40×. Read the paper →

Picture the stage between two scenes. The curtain is down, the house lights are up, and for ninety seconds nothing is being performed. That is when the crew strikes the old set and stacks the flats against the back wall — not because the theatre has suddenly run out of room, but because it is the one window in the evening where moving heavy things costs the audience nothing.

An agent's sandbox has exactly such a window, and it is the larger part of the evening. A tool call runs for a few hundred milliseconds; the model then spends seconds writing the next one. For most of an agent's wall-clock life the sandbox is a fully provisioned Linux process tree doing absolutely nothing — the curtain is down and the stage is free.

The crew that gets this wrong is the operating system's own. The paper's comparison point is a stock Linux configuration, and a Linux box compresses memory the way zswap and zram do — it starts packing pages when free memory runs short. Memory pressure is not a stage direction: it arrives in the middle of a scene, and the packing then competes for CPU with the shell command the agent is waiting on. The paper's contrast is not about how expensive the compression is, but about when it runs: pressure-driven packing is not aligned with the agent's execution phase, so it lands where it shows.

That is why the other half of the design matters. Striking the set is only mostly free, and only if the next scene's props are already waiting in the wings, so AgentZip pairs the scheduling with restore-time prefetching: when the sandbox starts touching pages again, the system decompresses ahead of the accesses that will need them, rather than stalling the tool call on each page in turn.

The scheduling also changes what can be compressed, not only when. A memory system that must stay out of the foreground's way can only touch pages it is confident are cold, because every mistake costs a visible stall. Moving the work out of the foreground widens the set of pages worth packing at all, because packing one no longer risks stalling a tool call that is running right now — the paper describes this as broadening the compressible set rather than merely rescheduling the same work.

DesignWhen it compressesForeground slowdownMemory reduction
Linux configurationpressure-driven, not execution-awarenot reported2.1× (paper)
Aggressive compression, unscheduledunscheduled, not execution-awareas high as 3.1× (paper)not reported separately
AgentZipin the model's generation window, with restore prefetch1.40× (paper)up to 8.7× (paper)

Hold three numbers fixed and the trade becomes arithmetic. Say one tool call needs 200 ms of sandbox CPU, a task makes 40 tool calls, and the model takes 3 s to write each one (all three illustrative; the ratios below are the paper's). The model time alone is 40 × 3 s = 120 s — time the sandbox spends idle — so an uncompressed task runs 120 s + 40 × 200 ms = 128 s.

Unscheduled aggressive compression at 3.1× turns each 200 ms call into 620 ms. The extra 420 ms lands 40 times, so the task grows by 16.8 s13% longer, every second of it in front of the user. AgentZip at 1.40× turns the same call into 280 ms, adding 80 ms × 40 = 3.2 s, or 2.5%. The compression did not get cheaper; 13.6 seconds of it moved into the 120 seconds the sandbox was already wasting.

The window is the whole premise, which tells you where the idea stops paying. A small local model that answers in 150 ms leaves almost no interval to hide work in, and an agent that streams tool calls back-to-back without a model turn between them has no curtain at all. The technique is strongest exactly where agents are heading — slow, expensive, reasoning-heavy model turns wrapped around short tool calls — and it is worth asking of any agent cost you are looking at: is there a window here, and is anything using it? Answering that starts with knowing where an agent's time and money actually go, the same question behind parallelizing tool calls and behind what it costs to coordinate a team of agents.

Goes deeper in: Agent Engineering → Cost \& Latency → The Cost Profile of an Agent

Related explainers

Frequently Asked Questions

Check what you knowMap your AI & GPU knowledge across every track — free, role-based