Datasets:
id stringlengths 10 10 | models listlengths 1 3 | block_size int64 64 64 | hash_id_scope stringclasses 1
value | tool_tokens int64 890 17.3k | system_tokens int64 498 7.46k | requests listlengths 3 1.18k |
|---|---|---|---|---|---|---|
trace_0001 | [
"claude-opus-4-5-20251101"
] | 64 | local | 12,974 | 4,243 | [{"t":0.0,"type":"n","model":"claude-opus-4-5-20251101","in":71175,"out":169,"hash_ids":[1,2,3,4,5,6(...TRUNCATED) |
trace_0002 | [
"claude-opus-4-5-20251101"
] | 64 | local | 12,448 | 2,882 | [{"t":0.0,"type":"n","model":"claude-opus-4-5-20251101","in":15818,"out":154,"hash_ids":[1,2,3,4,5,6(...TRUNCATED) |
trace_0003 | [
"claude-opus-4-5-20251101"
] | 64 | local | 12,974 | 2,771 | [{"t":0.0,"type":"n","model":"claude-opus-4-5-20251101","in":16564,"out":244,"hash_ids":[1,2,3,4,5,6(...TRUNCATED) |
trace_0004 | [
"claude-opus-4-5-20251101"
] | 64 | local | 12,439 | 2,979 | [{"t":0.0,"type":"n","model":"claude-opus-4-5-20251101","in":84352,"out":154,"hash_ids":[1,2,3,4,5,6(...TRUNCATED) |
trace_0005 | [
"claude-opus-4-5-20251101"
] | 64 | local | 12,439 | 2,988 | [{"t":0.0,"type":"n","model":"claude-opus-4-5-20251101","in":47714,"out":158,"hash_ids":[1,2,3,4,5,6(...TRUNCATED) |
trace_0006 | [
"claude-opus-4-5-20251101"
] | 64 | local | 12,439 | 2,771 | [{"t":0.0,"type":"n","model":"claude-opus-4-5-20251101","in":16981,"out":154,"hash_ids":[1,2,3,4,5,6(...TRUNCATED) |
trace_0007 | [
"claude-opus-4-5-20251101"
] | 64 | local | 12,439 | 4,243 | [{"t":0.0,"type":"n","model":"claude-opus-4-5-20251101","in":128679,"out":838,"hash_ids":[1,2,3,4,5,(...TRUNCATED) |
trace_0008 | [
"claude-opus-4-5-20251101"
] | 64 | local | 12,439 | 2,771 | [{"t":0.0,"type":"n","model":"claude-opus-4-5-20251101","in":17670,"out":245,"hash_ids":[1,2,3,4,5,6(...TRUNCATED) |
trace_0009 | [
"claude-opus-4-5-20251101"
] | 64 | local | 12,262 | 2,920 | [{"t":0.0,"type":"n","model":"claude-opus-4-5-20251101","in":20727,"out":190,"hash_ids":[1,2,3,4,5,6(...TRUNCATED) |
trace_0010 | [
"claude-opus-4-5-20251101"
] | 64 | local | 12,439 | 4,283 | [{"t":0.0,"type":"n","model":"claude-opus-4-5-20251101","in":17209,"out":275,"hash_ids":[1,2,3,4,5,6(...TRUNCATED) |
CC Traces — Weka (April 2026)
A collection of 739 multi-turn agentic traces (≈ 59.3k individual model
requests) driven by claude-opus-4-5-20251101. Each trace captures the full
request/response sequence of a single agent session, including per-request KV
block hashes, so the dataset can be replayed against an inference engine or
used to simulate prefix-cache behavior offline.
- Traces: 739
- Requests: 59,274 total, mean 80.2 per trace, max 1,178
- Model:
claude-opus-4-5-20251101 - KV block size: 64 tokens
- Hash scope:
local— block hash IDs are only comparable within a single trace; they are not a global content-addressable identity.
What's in each trace
Top-level trace fields:
| field | type | description |
|---|---|---|
id |
str | Trace identifier, e.g. trace_0001 |
models |
list[str] | Models used by the trace (all one entry here) |
block_size |
int | KV block size used to derive hash_ids (64) |
hash_id_scope |
str | local — hash IDs are per-trace, not global |
tool_tokens |
int | Size of the tool-definition block for the session |
system_tokens |
int | Size of the system prompt for the session |
requests |
list[object] | Ordered list of per-request records |
Each entry in requests is:
| field | type | description |
|---|---|---|
t |
float | Seconds since start of trace |
type |
str | Request type marker (e.g. n) |
model |
str | Target model for this request |
in |
int | Input tokens (ISL) |
out |
int | Output tokens (OSL) |
hash_ids |
list[int] | Block-hash IDs for the input, one per 64-token block |
input_types |
list[str] | Content kinds in the input (text, tool_result, …) |
output_types |
list[str] | Content kinds in the output (text, thinking, tool_use, …) |
stop |
str | Stop reason (tool_use, end_turn, …) |
api_time |
float | End-to-end server time for this call (seconds) |
think_time |
float | Client think/tool time between this request and the next (s) |
hash_ids make the dataset unusually useful for KV-cache work: the
contiguous common prefix between turn t and turn t − 1 exactly measures
the portion of the input that a local prefix cache would be able to reuse.
Summary statistics
| metric | p50 | p75 | p90 | p95 | mean |
|---|---|---|---|---|---|
| ISL (input tokens) | 109,903 | 150,308 | 300,118 | 395,328 | 139,925 |
| OSL (output tokens) | 218 | 441 | 937 | 1,563 | 446 |
think_time (s) |
10 | 30 | 154 | 435 | 199 |
api_time (s) |
6.47 | 11.02 | 19.50 | 29.63 | 10.18 |
| requests / trace | 48 | 101 | 201 | 253 | 80.2 |
Aggregate prefix-KV-cache hit rate across all requests and all traces: 96.57 % of the 129,409,824 blocks would have been served from a local prefix cache (incl. turn 0 which can never hit).
Plots
All plots below were produced from the full dataset with the analysis script published alongside the repo. Vertical dashed lines mark p50 / p75 / p90 / p95.
Input sequence length (ISL)
Agentic traces accumulate a very large context over time — the median turn sends ~110k tokens of input, and the p95 exceeds 395k.
Output sequence length (OSL)
Outputs are short by comparison: most turns produce a tool call or a brief text response. The median is 218 tokens and p95 is ~1,600.
Client think time
Time between a completed response and the next request — this includes
local tool execution, user wait time, etc. The distribution has an extreme
heavy tail (p95 ≈ 7 min, p99 ≈ 50 min). The linear plot also shows the
large spike at 0 s (≈888 requests fired back-to-back).
Prefix KV cache behavior
Because this is a sequence of agentic turns on the same conversation, the hit rate of a local prefix cache is extremely high — almost every turn reuses nearly the full preceding context.
Per-request hit rate. The distribution is saturated near 1.0:
Per-request miss rate (log x). Viewing 1 − hit_rate on a log axis is
more informative; most turns miss <2 % of blocks, but there's a visible
secondary mode near 1.0 corresponding to conversation resets /
compaction:
New tokens to prefill per request. Tokens the prefix cache did not cover — i.e. the work an engine actually has to do on prefill:
Hit rate across turns. After the first couple of turns the mean hit rate stabilizes around 0.97, with occasional dips wherever the client compacts or rebuilds the context:
Cached tokens vs ISL. Each point is one (non-first) request. Most sit on the y = x line (fully cacheable). The distinctive horizontal band near y = 0 is the compaction/reset cluster:
Intended uses
- Inference benchmarking: replay traces against a serving engine (vLLM, SGLang, TRT-LLM, etc.) to measure throughput / latency under a realistic agentic workload.
- KV-cache research: the
hash_idsfield exposes block-level prefix structure directly, without needing to re-tokenize any text. - Capacity planning: the ISL / OSL / think-time distributions are a reasonable first-order model of traffic from long-context agentic clients.
Loading
from datasets import load_dataset
ds = load_dataset("semianalysisai/cc-traces-weka-042026", split="train")
print(ds[0]["id"], len(ds[0]["requests"]))
License & attribution
Released under the Apache 2.0 license. Credit: Callan Fox.
- Downloads last month
- 750










