The Weave Test · draft protocol
The router benchmark built for real coding sessions
Other router benchmarks grade short prompts. The Weave Test grades what a coding team pays for: long Claude Code and Codex sessions, solved tasks and the bill at the end.
Key takeaways
- Router benchmarks today mostly grade chat, Q&A and text-to-SQL. None scores routing across a full coding-agent session.
- The Weave Test measures quality, cost, time and cache reuse together, with separate Claude Code and Codex tracks.
- Every router faces the same controls: single frontier models, always-cheapest, random routing and an oracle.
- The harness and scoring code are public, and any router with an API can enter.
Why router benchmarks miss what matters
A coding agent does not answer one prompt. It runs a session: dozens of turns that read files, call tools, run tests and retry. A router makes a decision on every one of those turns, and the decisions compound.
Switch models at the wrong moment and the prompt cache resets, so the next turn pays full price for the whole context. Pick a cheap model for a hard step and it fails, so the agent retries and spends more than the expensive model would have. Short-prompt benchmarks cannot see either cost.
That is why a router can top a chat leaderboard and still make your Claude Code bill go up. The Weave Test is designed to catch exactly that.
How it runs
Pick the tasks
Long repository work graded by hidden tests, with a public split and a private held-out split.
Pin the harness
Claude Code and Codex run as separate tracks with pinned client versions and the same task order.
Run the controls
Every router runs against single models, always-cheapest, random routing and an oracle.
Publish the receipt
Run ID, build hash, model mix, per-task results and a reproduction command.
What it measures
Four numbers per run, never one blended score.
- Quality
- Pass@1 and Pass@2 from hidden tests, with Wilson 95% intervals.
- Cost
- API list price per trial and per solved task.
- Time
- Wall time per task, including routing overhead.
- Cache
- Cache reads and prefix reuse across model switches.
Keeping the four numbers apart matters. A router can buy a higher score by always choosing the most expensive model, or cut cost by accepting more failures. Reporting quality, cost, time and cache side by side makes those trade-offs visible instead of hiding them in one index.
Control arms
A router has to beat the choices a buyer could make instead.
| Arm | Role |
|---|---|
| Weave Router | Submission |
| Rival routers | Any router with an API |
| Single models | Quality floor |
| Always-cheapest | Cost floor |
| Random routing | Sanity check |
| Oracle in hindsight | Ceiling |
If a router cannot beat always using one frontier model, it is not adding quality. If it cannot beat always using the cheapest model, it is not saving money. If it cannot beat random routing, it is not routing at all. The oracle shows how much headroom is left.
What Weave Router already shows
The Weave Test is still a draft, but Weave Router already publishes the kind of evidence it will require. On Terminal-Bench 4.0, Weave Router solved 54.5% of tasks on the first attempt in Claude Code, ahead of every router Vals tested. In Codex it cost $2.21 per solved task, less than any of them.
Weave Router also publishes Claude Code and Codex results on SWE-Atlas Codebase QnA and SWE-Bench Pro V2 HARD, each with its client, task count, attempts and run ID.
Questions
What is the Weave Test?
The Weave Test is an open benchmark for LLM routers in long coding-agent sessions. It scores quality, cost, time and cache reuse together, with separate Claude Code and Codex tracks, and compares every router against single models, a cheapest-model baseline, random routing and an oracle.
Why does the industry need another router benchmark?
Existing router benchmarks mostly use short prompts, chat or text-to-SQL. Coding agents run long sessions where a bad model switch breaks the prompt cache and a cheap model that fails costs more than an expensive one that succeeds. The Weave Test measures those effects directly.
Does the Weave Test have results yet?
Not yet. The protocol is published first so any router vendor can review the rules before the first run. Weave Router's current results on Terminal-Bench 4.0, SWE-Atlas QnA and SWE-Bench Pro V2 HARD are on the benchmarks page.
Can other routers enter?
Yes. Any router with an API can submit a pinned configuration and a reproducible run command. Every router is scored by the same public code, including Weave Router.
Why would a rival trust a benchmark run by Weave?
The harness, task manifests and scoring code are public. The held-out split prevents tuning to the test, canary strings detect training leaks, and every submission is checked in CI with the same code that scores Weave Router.