Harvard Releases 209B-Token Agent Traces for Cache Research | Zeniteq
Loading
Loading article
Zeniteq is now available on mobile for iPhone, iPad and Apple Watch.Download nowLearn more
Harvard Releases 209B-Token Agent Traces for Cache Research
The downloadable FreeInference dataset exposes cache reuse, tool delays and context changes across real agent sessions, without releasing prompts or responses.
Harvard released a 209-billion-token dataset of agent session traces capturing cache behavior, tool execution timing and context changes across 12,002 real sessions without exposing prompts or responses. The FreeInference Agentic Trace, available in raw JSONL and flattened Parquet formats, covers 16 weeks from May through September 2026 and includes 1.2 million model requests and tool calls. Infrastructure developers can use the traces to test KV-cache policies, batching and scheduling systems. The researchers report that cached input dominates session costs under their pricing model, tool delays offer the largest latency improvement opportunity, and context-changing requests cause disproportionate fresh prefill processing.
Developers can now replay prefix-cache behavior across 12,002 real agent sessions without accessing the underlying conversations. Harvard MaDSys’ FreeInference Agentic Trace release captures 209 billion input tokens, request timing and tool activity, with block-level identifiers designed for serving-infrastructure experiments.
The dataset covers 16 weeks, from May 17 through September 5, 2026, and represents 267 accounts. The release documentation reports 14 agent harnesses, 1,186,582 model requests and 1,213,347 tool calls from coding and assistant agents using FreeInference.
Infrastructure developers can use these recorded workloads to test KV-cache policies, batching, scheduling and session-aware systems. The dataset records serving behavior; it does not provide readable tasks or training trajectories.
The researchers report three findings: cached input dominates session costs under their pricing assumptions, tool execution offers the largest simulated latency improvement, and a small share of context-changing requests causes most fresh prefill. Each comes with conditions to consider before applying it to other AI products.
Raw JSONL traces: About 108 GB decompressed, preserving nested session structure, ordered model requests, tool calls and subagent sessions.
Flattened Parquet tables: About 9 GB, organized into session, request and tool-call tables. The repository says these are sufficient to reproduce the paper’s analysis and figures.
For initial exploration, the Parquet tables are the more manageable download. Developers can query them with DuckDB or load the dataset through Hugging Face Datasets. Experiments that need the original nested relationships can use the raw traces, which include subagent sessions attached to the tool calls that spawned them.
From a local checkout of the repository, the documented setup and table-download commands are:
make setup
.venv/bin/python -m release download --tables
To download the raw traces instead:
.venv/bin/python -m release download --traces
The repository includes conversion tools, analysis code and prefix-cache simulation artifacts. Its documented reproduction commands include for the paper’s tables and figures, and to recompute a week of cache simulation.
The dataset and accompanying artifact use CC BY 4.0, allowing sharing and adaptation, including commercial use, with appropriate attribution. The repository asks researchers to cite the accompanying paper, From Requests to Sessions: A Large-Scale Characterization of Human-Driven Agentic Workloads.
The 209-billion-token figure describes aggregate input volume across requests, including context repeatedly sent through an agent session. It is not 209 billion distinct tokens of released text, nor a measure of uncached processing alone.
Replayable Prefix Blocks Preserve Reuse, Not Meaning
The release represents request inputs as chained 16-token prefix blocks, tokenized with tiktoken using o200k_base. The released block identifiers let researchers track shared prefixes without publishing the text behind them.
Researchers can use these blocks to experiment with the key-value cache, or KV cache, which retains attention keys and values from previously processed context. They can replay recorded block accesses, vary capacity or eviction rules, and measure how much prefix reuse a policy preserves.
Session structure adds information that an isolated request log would miss. The traces connect model requests to tool calls and later requests, exposing the periods when an agent pauses inference while another operation runs. Those intervals can inform experiments with cache retention, offloading and prefetching.
The data hub also identifies recorded request arrivals and serving latencies as inputs for batching and scheduling research, and lists LLMLCS export for experiments with libCacheSim.
“Replay” here means replaying workload structure and cache access patterns. The original agent task cannot be rerun from the release because prompts, generated answers and tool-result contents are absent. The standardized token blocks also should not be treated as proof that every anonymized provider uses the same tokenizer or physical cache layout.
Cached Input Dominates Cost Under a Stated Price Ratio
Cached input is the largest cost component in 72% of sessions, the researchers report. Their cost breakdown uses a relative token-price ratio of 1:10:50 for cached input, uncached input and output.
The result depends on that assumption. It does not establish that cached input dominates spending under every model’s pricing, or that uncached-input and output prices are irrelevant.
Repeated context can outweigh a substantial per-token discount. An agent may carry a large conversation history through many tool-use steps. Even if most of that history receives a cached-input rate, repeatedly reading it can contribute more to the modeled bill than the smaller quantities of fresh input or generated output.
For developers comparing model APIs, the practical response is to price a representative session rather than a single request. A cost model should distinguish cached input, fresh input and output, then apply the provider’s actual rates.
Billing and infrastructure also need separate consideration. Lower cache-read prices affect customer cost; better cache placement and retention affect serving work. Improving one does not automatically guarantee an equivalent improvement in the other.
Tool Delays Offer the Largest Simulated Speedup
In the researchers’ latency simulation, halving tool time improves session speed by 1.38×, compared with 1.09× for halving prefill time and 1.16× for halving decode time.
Prefill processes the input context; decode generates output tokens. Optimizing model execution alone, the comparison suggests, can leave much of an agent’s active-session delay untouched.
The simulation conditions exclude user idle time and cap each tool gap at 15 minutes. These speedups were modeled, not measured by deploying faster tools across the service. The trace schema adds another limitation: tool latency is represented through the gap until the next model request. That provides useful operational evidence without fully instrumenting everything happening inside a shell command, browser action or remote service.
Before investing exclusively in faster decoding, infrastructure teams can examine where sessions wait between model requests and which tool categories contribute those waits. They then need to distinguish work that can genuinely run faster from orchestration delay or operations that depend on external systems.
The aggregate result does not imply that every harness is tool-bound. The downloadable traces allow teams to test that question by workload rather than assume one optimization priority for all agents.
Just 4% of Requests Cause Most Fresh Prefill
The researchers report that 4% of requests mutate prior context, yet account for 62.5% of fresh prefill. Append-only requests make up the other 96% of requests and contribute 37.5% of fresh prefill.
The context-mutation analysis assumes infinite KV-cache retention, isolating reuse lost through context changes from reuse lost through eviction.
An append-only request preserves earlier context and extends it. A mutation changes something already present, potentially breaking a reusable prefix. Even an infrequent change can force processing of a much larger section of context.
System-prompt changes account for 0.74% of requests but 26.9% of fresh prefill. Tool-definition changes account for 0.40% of requests and 13.9% of fresh prefill. Both contribute disproportionately to the modeled recomputation and deserve attention.
Developers can inspect whether a harness changes context unnecessarily, including whether tool definitions remain stable and prompts are constructed consistently. The dataset does not, however, establish one universally optimal prompt arrangement.
Useful context updates should not be eliminated merely to preserve a cache hit. Without conversation text or task-quality measurements, the release cannot determine whether a mutation was avoidable, necessary or beneficial. It exposes the serving consequence without the semantic justification.
Privacy and Session Boundaries Limit the Conclusions
The release excludes message text, prompt text, response text, tool-result text and raw identifiers. Providers are anonymized, while tool arguments preserve structure with sensitive values replaced by typed placeholders.
Meaningful operational metadata remains: model names, tool names, timing, token counts, outcomes and context-change categories. The privacy approach removes conversation content while retaining workload structure; it should not be described as removing every potentially informative detail.
Sessions crossing a week boundary are split. Researchers studying long-lived sessions or reuse across those boundaries must account for that segmentation. Each released session should not be assumed to represent an uninterrupted end-to-end interaction.
The sample comes from one service and 267 accounts. It is substantial for replay experiments, but its results should not be generalized to all agent workloads. There is a documentation discrepancy too: the repository reports 14 harnesses, whereas the data hub’s descriptive text says 13. This article uses the repository’s detailed release count.
These operational findings come from the releasing team; the supplied sources do not establish independently replicated results. Developers can now reproduce and challenge them using the accompanying artifacts.
The strongest use of this release is comparative: hold the recorded workload constant, change a cache or scheduling policy, and document the assumptions behind the result. It cannot tell developers which agent produces the best answers. It can help them test whether their infrastructure handles the repeated context, tool waits and prefix changes that real sessions generate.