bench-routing — Claude Code¶
Rank published benchmark entries (Artificial Analysis Intelligence Index), recommend a model+effort per orchestration role given what each harness can actually dispatch, and check that recommendation against this repo's OWN measured routing outcomes. Use when the user asks whether a new/higher model should replace what a role currently runs on, wants a benchmark-informed routing recommendation, or asks "should we upgrade X to Y for this role" — the answer must be checked against the ledger, not just the benchmark.
- Source: skills/bench-routing/SKILL.md
- Also available on: OpenAI Codex CLI, GitHub Copilot CLI
In practice¶
What it does¶
When someone proposes moving a role onto a stronger or newer model, this skill answers with
three separate pieces of evidence instead of one: what a published benchmark says, what
this repo's own execution ledger has actually measured, and whether the two agree. Its
compare subcommand exists specifically to stop a plausible-sounding upgrade the ledger
doesn't actually support.
When to reach for it¶
- Someone proposes upgrading an implementer, verifier, or orchestrator role to a higher tier.
- You want a routing recommendation checked against outcomes, not just a bigger model's reputation.
- Sanity-checking a routing change before it goes into a kit's
PLAN.md. - Not for a role this repo has never run a kit task on —
comparereportsno_role_evidencerather than inventing a verdict for it.
Worked example¶
python3 bin/bench_routing.py compare
The card joins each ranking pick against the measured first-try rate per tier. A
nominally-positive gain — one tier already clearing nearly every task against another a few
points behind — reads not_supported: a few points don't justify a routing change, and the
card says so instead of dressing it up as "worth considering." Where a tier has too few
finished tasks, it prints "insufficient sample" rather than guessing one.
Failure modes & fallbacks¶
- A role has no ledger evidence — architect, reviewer, orchestrator, and verifier all
read
no_role_evidence; the benchmark pick stands unchallenged, and it should be relayed that way rather than paraphrased as support either direction. - The recommended model is measured at fewer effort points than its tier-mate. The tool computes and reports this coverage gap; repeat the caveat instead of dropping it.
- The benchmark snapshot looks stale. It's screenshot-transcribed, not an API export — flag it as re-verify-worthy against its own recorded date rather than treating it as live.
Cost & safety¶
Every subcommand here is read-only: no dispatch, no spend, nothing written. rank,
roles, and compare all resolve numbers from the pricing files and the benchmark
snapshot at run time rather than from memory. The benchmark's own cost ratio is a ranking
figure inside its workload, never this repo's real spend — never add it to what
cost-report or execute's scorecard already report.
Related¶
- route — the same tiering judgment, applied per task instead of per role.
- repo-bench — the third leg: measured on this repo's own work, not a published index.
- execute — the loop whose ledger
comparereuses as its evidence.
The skill card — what the model reads¶
This is the SKILL.md body the model reads, transformed for this page: the source's own leading title, if it had one, is removed; every remaining heading is demoted one level to nest under this section; and relative links are rewritten to site or GitHub URLs. ${CLAUDE_PLUGIN_ROOT} and {{POLYTROPOS_ROOT}} are install-time path variables, left intact exactly as the model sees them. The unmodified original is skills/bench-routing/SKILL.md.
Run the engine that ships with this plugin. Use the ${CLAUDE_PLUGIN_ROOT} env var Claude Code
sets for plugin-executed content; if it is unset, fall back to resolving
../../bin/bench_routing.py relative to this SKILL.md to an absolute path.
python3 "${CLAUDE_PLUGIN_ROOT}/bin/bench_routing.py" rank --top 10
python3 "${CLAUDE_PLUGIN_ROOT}/bin/bench_routing.py" roles --harness claude
python3 "${CLAUDE_PLUGIN_ROOT}/bin/bench_routing.py" compare
python3 "${CLAUDE_PLUGIN_ROOT}/bin/bench_routing.py" demo
The dataset it reads, ${CLAUDE_PLUGIN_ROOT}/data/benchmarks.aa.json, is a screenshot-transcribed
snapshot of the Artificial Analysis Intelligence Index — a general-capability composite, not this
repo's pricing and not a bill. Never edit that file from this skill.
Subcommands¶
rank— ranked tables from the benchmark file: by intelligence index, by VALUE (index / usd_per_task — a ranking ratio, never a price), and a "capability frontier" (cheapest entry clearing each index floor).--provider P,--model M,--top N.roles— per-harness role recommendation (--harness claude|codex|copilot|all). Availability is derived at run time fromdata/pricing.json/pricing.codex.json/pricing.copilot.json— a benchmark entry that matches no available model is reported UNAVAILABLE, never silently dropped. Role floors are this repo's own editorial judgement (ROLE_POLICYin the script), overridable with a repeatable--floor "role=N".compare— THE ONE TO REACH FOR when the question is "should we route role X to a different/higher model." Joins eachrolesrecommendation (Claude harness only — the only harness whose models map onto this repo's own haiku/sonnet/opus/frontier tiers) against this repo's own measured first-try rate per tier (reusingbin/routing_scorecard.py's ledger, never re-parsed) — but only for the role that ledger actually evidences. This repo's ledger records per-TASK outcomes, which is implementer work; it carries no per-role result data for architect/planner, reviewer, orchestrator, or verifier, so those roles are reportedno_role_evidence(benchmark pick stands unchallenged, no rate is quoted) rather than judged on a number that measures a different job function. Onlyimplementergets a real verdict: states plainly whether the ledger CONTRADICTS the benchmark's implied upgrade, and reports the MARGINAL GAIN — not just both numbers. Measured outcomes win. A nominally-positive gain that is small (e.g. "opus already clears ~100% vs sonnet ~97%") is reported asnot_supported, because a few points don't justify the routing change. Where a tier has too few finished tasks, it says "insufficient sample" rather than guessing.mechanical sweepgetscheapest_tierwhen its pick lands on the cheapest repo tier — a tier-ladder fact, not a borrowed outcome claim.demo— synthetic smoke, no real files touched. Use to sanity-check the tool itself.
Presenting the results¶
- Lead with
compare's verdict, not the raw benchmark ranking — the benchmark is a prior; the ledger is what this repo has actually observed. Ifcomparesaysnot_supported, say so plainly and name the marginal gain; do not soften it into "might be worth considering." - Never present
usd_per_taskas a bill. It is a benchmark-workload cost for relative ranking only. This repo's actual dollars come fromrouting_scorecard/cost_report, a different measurement — never add the two together. - Surface coverage gaps. If the model
comparerecommends is measured at fewer effort points than the tier-mate it would displace (the tool computes and reports this — e.g. an "Opus at medium beats Sonnet" claim when Sonnet has no medium-effort benchmark entry), repeat that caveat: the comparison covers only the effort points actually measured. - State the index's scope. The Intelligence Index is a general-capability composite; Coding Index and Agentic Index are separate boards not included here. A strong entry is not automatically strong at agentic tool use — say this before recommending a routing change for an agentic role (implementer, verifier, orchestrator, mechanical sweep).
- Name the provenance. The benchmark file is screenshot-transcribed (see its
cached_date/transcribed_from), not an API export — flag it as re-verify-worthy if it looks stale. - Never borrow implementer's rate for another role. If
comparesaysno_role_evidencefor architect/planner, reviewer, orchestrator, or verifier, do not paraphrase it as "the ledger supports/contradicts this" — say plainly that this repo has no per-role evidence for that role (the ledger only measures implementer task outcomes) and the benchmark recommendation stands unchallenged either way.