--- license: apache-2.0 pretty_name: CC Traces — Weka, No-Subagents, v5 only (May 18 2026) task_categories: - text-generation tags: - llm - inference - benchmarking - kv-cache - agentic - multi-turn - claude size_categories: - n<1K configs: - config_name: default data_files: - split: train path: traces.jsonl --- # CC Traces — Weka, No-Subagents, v5 only (May 18 2026) A collection of **98 multi-turn agentic traces** (≈ 22.8 k individual model requests) drawn from real production traffic against the Claude Code CLI ≥ 2.1.139. 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. **No-subagents, v5-only, CC ≥ 2.1.139 variant.** Three filters: 1. **No subagents.** All `WekaSubagentEntry` blocks have been stripped — only top-level main-agent turns remain. 2. **v5 only.** Every replayable request in every included session has `trace_version = 5` (latest proxy schema, o200k_base tokenizer). 3. **Claude Code CLI ≥ 2.1.139.** Every successful request in every included session is on a CC build that ships the `x-claude-code-agent-id` HTTP header — the canonical signal sub-agent grouping depends on. Sessions where any row predates this header are excluded entirely because we can't reliably distinguish a Task-tool sub-agent from a utility call without it. Each remaining trace has **≥ 20 main-agent turns** post-strip so every trace exercises multi-turn replay meaningfully. Companion: [`cc-traces-weka-051826`](https://huggingface.co/datasets/semianalysisai/cc-traces-weka-051826) is the same 98 traces with sub-agent fan-out preserved. - **Traces:** 98 - **Requests:** 22,822 total, mean **232.9** per trace, max **2,171** - **Models:** `claude-opus-4-7`, `claude-opus-4-6`, `claude-sonnet-4-6` - **KV block size:** 64 tokens - **Hash scope:** `local` ## Tokenizer caveat The `in` field and `hash_ids` are measured in the proxy's tokenizer (`o200k_base`, GPT-4o family). Anthropic typically reports ~60 % of the o200k token count for the same content — so ISL numbers below are larger than what Anthropic would bill for the same prompt, but self-consistent between `in` and `hash_ids` for cache-hit simulation. ## Summary statistics | | p50 | p75 | p90 | p95 | p99 | mean | |------------------------------|---------:|---------:|---------:|---------:|---------:|---------:| | ISL (tokens) | 181,474 | 338,879 | 525,701 | 664,749 | 838,501 | 240,502 | | OSL (tokens) | 212 | 569 | 1,455 | 2,499 | 6,528 | 623 | | `think_time` (s) | 0.98 | 2.71 | 12.45 | 71.64 | 448.24 | 92.32 | | Turn depth (requests/trace) | 110 | 300 | 568 | 730 | 1,119 | 233 | ![Distributions — log x](plots/distributions_log.png) ![Distributions — linear x](plots/distributions_linear.png) ## Model composition | model | requests | |-------|---------:| | `claude-opus-4-7` | 22,484 | | `claude-opus-4-6` | 302 | | `claude-sonnet-4-6` | 36 | ## Source Derived from the SemiAnalysis Claude Code traffic proxy. Build pipeline: 1. `utils/sample_proxy_traces.py --min-trace-version 5 --min-main-turns 20 --require-cli-min 2.1.139 --privacy-mode anon` 2. `utils/proxy_to_weka.py` converts per-session JSONL into weka-format trace JSON. Sub-agent grouping is identical to the [proxy dashboard's `buildRequestRuns`](https://github.com/SemiAnalysisAI/semianalysis-claude-code-proxy/blob/main/packages/app/src/lib/subagent-runs.ts). 3. Post-step strips all `WekaSubagentEntry` blocks; traces with <20 surviving main turns are dropped (none dropped at this build). 4. Remaining traces concatenated into `traces.jsonl` (one trace per line).