Claude Code Routing Benchmark — AI skill for Claude Code
Run the same coding task through identical copies of Claude Code that differ only in which model answers the API calls.
How to install Claude Code Routing Benchmark
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open kolezka/claude-code-routing-benchmark and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Routing Benchmark does
Run the same coding task through identical copies of Claude Code that differ only in which model answers the API calls. Same git worktree, same commit, same prompt. Publishes a self-contained HTML report.
Alternatives in AI
- Ante — Ghost in your shell 1.9k ★
- Claude Replay — Convert AI coding agent sessions (Claude Code, Cursor, Codex, Gemini, OpenCode) into self-contained, embeddabl 644 ★
- Usage — macOS menu bar & Windows tray app pinning Claude Code, Codex & Antigravity quota, burn rate, and cost to your 301 ★
README
benchmark-claude-code
Give the same coding task to differently configured copies of Claude Code, then compare what each one did.
Every profile gets a fresh git worktree at the same commit and the same prompt. The only thing that differs is which model does the work. The result is a single HTML page: timings, cost, tool usage, and the diff each agent produced.
**[Read the latest results](https://kolezka.github.io/claude-code-routing-benchmark/)**
Reading the results honestly!
This is one task, run once, on one machine. It shows how these setups behaved on a specific bug. It is not a model ranking.
Wall time includes your network and machine load. Fewer tool calls is not automatically better work: an agent that reads less code can still land on a worse fix. Read the diffs, not just the counters.
How a profile is configured
Claude Code is Anthropic's terminal coding agent. A profile in `config.yml` says how to start it:
profiles:
- id: anthropic
label: Anthropic only
command: ["ccr", "CC - Anthropic Only", "cli", "--"]
env:
CLAUDE_CONFIG_DIR: ./.profile/claude-code-anthropic
`command` is the argv prefix. The harness appends its own flags and the prompt. `env` is added to the child process, and `./` paths resolve from the repo root.
That gives you two ways to vary the model:
- With a proxy. CCR (claude-code-router) runs locally, Claude Code points at it, and it forwards each request to whichever provider you configured. The profiles committed here use it. CCR is a third party project, not shipped with this repo.
- Without one. Use
command: ["claude"]and give each profile its ownCLAUDE_CONFIG_DIR, holding asettings.jsonthat selects the model you want.
The first element of `command` is looked up on PATH. Override it with `CCR_BIN` or `CLAUDE_BIN`.
Usage
bun install
bun benchmark.ts setup # clone the target repo at the pinned ref
bun b
Related Skills
Garl Receipt Action
Cryptographic verification for AI-authored code. ECDSA-signed receipts (secp256k1, RFC 6979 deterministic) for
Residoo
Find secrets your AI coding agent leaked to disk. Free, MIT, zero deps, zero network calls. Beat TruffleHog an
Dux
Dux is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, w
AI Structured Commit
Split a messy worktree into reviewed, isolated commits — one system behavior per commit, gate-checked, verifie
Translate Academic Paper
Translate academic papers & monographs (PDF) into a single self-contained bilingual HTML — Chinese/original/si
Wiki Bible
LLM-maintained research wiki over deep-research bibles: interlinked concepts/thinkers/debates/themes, a self-c
Related Agents
Klein Tutor
TUTORIAL worker for Klein Auto Research — builds report/index.html, the self-contained seven-section teaching
Port Worker
Self-contained porting worker that runs stages 0-4 for a single port in an isolated worktree. Designed for par
Preview HTML Author
Use ONLY as part of the /design-md skill pipeline. Builds one self-contained preview HTML file (preview.html)