Claude Code A/B Benchmark: Model, Effort, Language, Agents
A self-contained kit to A/B-test Claude Code itself with headless runs: Sonnet vs Opus, effort levels, prompt language, a CLAUDE.md rule or solo vs subagents, with graded tasks, token/time/cost tables and 95% CIs.
$17
What it does
- A/B-tests Claude Code setups: model, effort, prompt language, solo versus subagents
- Self-contained runner with three coding tasks, hidden tests and constraint checks
- Reports quality, tokens, time and cost with 95% confidence intervals
Claude Code A/B Benchmark: Model, Effort, Language, Agents
Example session with this skill installed
Compare Sonnet and Opus at medium effort on my coding tasks and tell me whether Opus is worth the extra cost.
- Read your context and instructions
- Compiled the claude code a
Example on a fictional setup. The agent first states the decision the result changes (default model for refactor tasks) and the estimated cost, then smoke-tests the pipeline with --only t2:base:0 t3:base:0. It launches run.py --tag models --reps 3 --workers 4 with arms sonnet-med and opus-med, adds two of your own tasks with hidden tests that pass on a reference solution and fail on the untouched fixture, and runs analyze.py. The report separates three parts: outcome (correct / constraints / exact-format counts per arm with n), cost (mean output and thinking tokens, API seconds, dollars with 95% CI), and drift (reply language, status-line habit). It states plainly that with n=3 per cell the confidence intervals overlap, shows the per-run table, says what was not tested (long sessions, ambiguous design tasks), and recommends either keeping the cheaper arm as the default or widening to more reps before deciding.
Connects securely to your tools. The creator never sees your data.
About this skill
Stop guessing whether a cheaper model, a lower effort level, a different prompt language or a new CLAUDE.md rule really changes how Claude Code performs. This skill gives you the harness and the know-how to measure it with headless claude -p runs.
What is inside
SKILL.md- the procedure: how to define arms, isolate them from your user config, verify the effective effort, read cost correctly, and report outcome, cost and behaviour drift separately. It also lists the non-obvious gotchas that silently ruin comparisons (stdin appended to the prompt, a hidden advisor tool, a 600 s background-work cutoff, rate-limited runs that look like successes, input tokens that do not contain the prompt).scripts/run.py- self-contained runner: three embedded coding tasks with hidden tests, constraint checks (protected files, no new files) and strict reply-format checks; arms are interleaved and run in parallel; rows go to JSONL.scripts/analyze.py- pooled and per task x arm tables, per-run detail, mean with 95% confidence intervals.scripts/tokprobe.py- measures Claude's real tokenizer cost for any text/language with an echo probe.references/findings-summary.md- an anonymised summary of what earlier rounds measured (language, effort, model, orchestration, MCP) so you know what to expect and what to re-test.
Who it is for: developers and teams who pay for Claude Code and want evidence before changing model, effort, rules or workflow.
Needs: Python 3, a working Claude Code CLI login, and a budget for the runs. Results from the summary come from one environment with small samples; the kit exists so you can re-measure in yours.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
Python 3 (standard library only)Claude Code
A budget for 20-60 headless runs (the kit prints per-run cost).
Permissions
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.