Coder Eval runs a real agent — Claude Code, Codex, or Gemini — in a sandbox against declarative YAML tasks, then scores the files and commands it actually produced. The coding agents gym: reproducible, weighted, and data-driven.
uv tool install coder-evalApache-2.0 · Python 3.13+ · runs Claude Code, Codex & Gemini
$ coder-eval run tasks/hello_date.yaml tasks/token_check.yamlRun directory: runs/2026-07-21_20-21-48 Running 2 task(s)Mode: Sequential 20:21:50 [INFO] [default/hello_date_smoke_test/00] orchestrator: API routing: anthropic_direct20:22:04 [INFO] [default/hello_date_smoke_test/00] orchestrator: Success criteria: 3/3 passed, weighted score: 1.00020:22:05 [INFO] [default/hello_date_smoke_test/00] orchestrator: Task finished: status=SUCCESS duration=16.4s score=1.000Tasks: 50%|██████████░░░░░░░░░░| 1/2 [00:16<00:16, 16.43s/task]20:22:24 [INFO] [default/token-check/00] orchestrator: Success criteria: 1/1 passed, weighted score: 1.00020:22:25 [INFO] [default/token-check/00] orchestrator: Task finished: status=SUCCESS duration=20.0s score=1.000Tasks: 100%|████████████████████| 2/2 [00:37<00:00, 18.95s/task] Run complete: runs/2026-07-21_20-21-48Results: 2/2 succeededView report: coder-eval report runs/2026-07-21_20-21-48
task_id: "hello_date_smoke_test"description: "Create a Python script that prints a greeting and today's date."initial_prompt: "Create app.py that prints 'Hello, Claude!' on one line and today's date in YYYY-MM-DD format on the next. Then run: python app.py"tags: [smoke, golden, basic, pure-python] # Soft target on cumulative SDK inner-loop turns. Surfaces a warning# and a report badge when exceeded; never aborts or affects scoring.run_limits: expected_turns: 5 agent: type: "claude-code" permission_mode: "acceptEdits" # Safer default allowed_tools: ["Read", "Write", "Bash"] success_criteria: - type: "file_exists" path: "app.py" description: "The file app.py must be created." - type: "file_contains" path: "app.py" includes: ["Hello, Claude!", "datetime"] description: "The script uses the required string and import." - type: "run_command" command: "python app.py" timeout: 10 description: "The script must execute successfully."
$ coder-eval report runs/2026-07-21_20-21-48Reading report from runs/2026-07-21_20-21-48/experiment.md Experiment Report: default Description: Default experiment - baseline agent configurationVariants: default Total Duration: 36.5s Aggregate Metrics Metric default ────────────────────────────────── Tasks Run 2 Succeeded 2 Failed 0 Errors 0 Success Rate 100.0% Score 1.000 ± 0.000 Avg Duration (s) 18.2 ± 2.5 Assistant Turns 5.5 ± 2.1 Tokens 115,239 ± 33,631 Win Rates • default: 2/2 tasks (100%) Per-Task Comparison Task default Best Spread ───────────────────────────────────────────────── hello_date_smoke_test 1.000 (+) default 0.000 token-check 1.000 (+) default 0.000
One file per task with pinned dependencies, weighted 0.0–1.0 criteria, and pass thresholds — versioned next to your code.
Isolated runs of Claude Code, Codex, or Gemini with full telemetry: every tool call, token count, and cost.
Verify a Claude Code skill actually triggers with skill_triggered, and score SkillsBench-style skill suites.
Agent vs. agent, model vs. model, prompt vs. prompt — side by side. Fail the build when quality regresses.
Coding agents are moving fast. Models change, prompts drift, tools get added, skills get rewritten. Every one of those changes can quietly make an agent better — or quietly break it. Almost nobody can answer a simple question with a straight face: is our agent actually better than it was last week?
SWE-bench and SkillsBench are static datasets. Great for a leaderboard, but you can’t author tasks for your codebase, your skills, or your internal SDK.
They grade a model’s text against a reference string. But a coding agent isn’t a string generator — it takes turns, calls tools, edits files, and runs commands.
They get you started, then rot. No reproducible sandboxes, no weighted scoring, no cost telemetry, nothing to gate CI on.
Coder Eval is a framework for the middle ground: author your own tasks in declarative YAML, run a real agent inside a sandbox with real tool use and multi-turn dialog, and score the actual files and commands it produced. Scoring is continuous, 0.0 to 1.0, with per-criterion weights, fractional credit, and pass thresholds — a run isn’t just green or red, it’s a number you can track, compare, and regress against.
A sandboxed agent takes the hello_date task from YAML to a scored run, then the result is browsed in evalboard.
17 seconds, no audio: coder-eval run tasks/hello_date.yaml --stream full starts a sandboxed Claude Code agent, which writes app.py and executes it. All three criteria report PASS — file_exists, file_contains, run_command — for a weighted score of 1.000, and the run directory is written to runs/.
One declarative YAML file: the prompt, the agent, and weighted criteria scored against what the agent actually produced.
task_id: "date-teller-skill"description: "The date-teller skill must trigger — and be right."initial_prompt: "What day of the week was 2026-01-01? Write it to answer.md." agent: type: "claude-code" # or "codex" / "gemini" success_criteria: - type: "skill_triggered" # did the skill really engage? skill_name: date-teller expected_skill: date-teller weight: 3.0 description: "The skill fires — not a lucky answer." - type: "file_contains" path: "answer.md" includes: ["Thursday"] weight: 1.0 description: "The written answer is correct."
initial_promptWhat the agent is asked to do, verbatim. Each run starts a fresh sandboxed agent from this prompt — no hand-holding, no replays — so every score reflects a real attempt.
success_criteriaEvery check scores 0.0–1.0 against the files and telemetry the agent actually produced. Weights roll the checks into one task score, and a failing run exits non-zero — ready to gate CI.
skill_triggeredReads the run’s turn records for a real skill invocation, so a Claude Code skill that quietly stops triggering fails this eval — not a user.
Real tasks need more than “does the file exist.” Coder Eval ships criterion types spanning the full range from deterministic checks to model-graded judgment.
| Criterion | What it checks |
|---|---|
file_exists | A file was created at a path |
file_contains | A file includes required strings |
file_check | Existence, includes, excludes and regex in one check |
json_check | A JSON document matches an expected shape |
file_matches_regex | File contents match a pattern |
run_command | A command exits successfully |
command_executed | The agent actually ran a given command or tool |
commands_efficiency | The agent stayed inside a tool-call budget |
reference_comparison | Code similarity against a reference solution |
classification_match | A written label matches ground truth |
llm_judge | An LLM grades the result against a rubric |
agent_judge | An agent inspects the result and scores it |
skill_triggered | A target skill was actually engaged |
uipath_eval | A UiPath agent clears its eval-set thresholds |
That skill_triggered criterion is worth calling out. If you maintain Claude Code skills, Coder Eval can verify an agent actually reached for the skill you meant it to — and score skill-driven suites, SkillsBench-style. Wire it into CI on a schedule and a skill that quietly stops triggering surfaces as a failing criterion before your users hit it, instead of after.
One command fans the suite out across isolated sandboxes, in parallel, with every turn, token, and score recorded.
$ coder-eval run tasks/skills/*.yaml --driver docker -j 4Run directory: runs/2026-07-22_09-14-02 Running 12 task(s)Max parallel tasks: 4 09:14:03 Building docker image coder-eval-agent from docker/Dockerfile09:14:05 [default/date-teller/00] API routing: anthropic_direct09:14:06 [default/invoice-extract/00] API routing: anthropic_direct09:14:31 [default/date-teller/00] Success criteria: 2/2 passed, score: 1.00009:14:32 [default/date-teller/00] Task finished: status=SUCCESS duration=27.1s score=1.000Tasks: 33%|██████░░░░░░░░░░░░░░| 4/12 [01:12<02:24, 18.05s/task]09:15:02 [default/q3-report/00] Success criteria: 1/3 passed, score: 0.33309:15:02 [default/q3-report/00] Task finished: status=FAILURE duration=41.9s score=0.333Tasks: 100%|████████████████████| 12/12 [03:41<00:00, 18.4s/task] Run complete: runs/2026-07-22_09-14-02Results: 11/12 succeededView report: coder-eval report runs/2026-07-22_09-14-02
--driver dockerEvery task runs in a disposable sandbox. The tempdir driver is fast and convenient — but it is not a security boundary; reach for Docker when the task runs code you don’t trust.
-j 4Parallelism is one flag: tasks, replicates, and A/B variants fan out across workers, so a suite that takes hours sequentially lands in minutes.
runs/2026-07-22_09-14-02Full monitoring, kept forever: every turn, tool call, token count, and cost lands in the run directory — stream it live with --stream full, then browse transcripts and scores in evalboard.
The point isn’t one score in isolation — it’s the difference between two. The experiment layer runs the same tasks across variants side by side: Claude vs. Codex, model vs. model, tool-on vs. tool-off, prompt vs. prompt.
experiment_id: model-comparisondescription: "Compare Sonnet vs Opus on the same coding tasks." defaults: repeats: 5 # run every (task, variant) pair five times agent: type: claude-code permission_mode: bypassPermissions variants: - variant_id: sonnet agent: model: claude-sonnet-4-6 - variant_id: opus agent: model: claude-opus-4-6
Agents are non-deterministic, so a single run tells you almost nothing. Coder Eval runs the same (task, variant) pair N times and reports the aggregate.
Every aggregate metric comes with an interval, not just a mean — so you can see how much of the gap is signal and how much is spread.
For two-variant experiments, “Opus beat Sonnet” arrives with a number that says whether the difference is real or noise.
Each run writes its results three ways: browsable HTML, diffable markdown, and CI-native JUnit.
task.htmlOne self-contained HTML file per task — criteria scores, the full conversation trace, every tool call and token count. No server, no dependencies: open it locally or attach it as a CI artifact.
run.md · experiment.mdMarkdown reports at every level — run, variant, experiment — with aggregate metrics, win rates, and per-task comparisons. coder-eval report runs/latest renders them in the terminal; -o exports a file for a PR comment.
junit.xml--junit-xml emits standard JUnit XML — one test case per task — so regressions surface in your CI’s native test UI.
The runs directory is the database — evalboard is a zero-config local dashboard that reads it straight off the filesystem. Success-rate trends across runs, pass rate and cost per run, and per-task drilldowns: success-criteria cards, tool timelines, and message-by-message token and latency breakdowns.
Apache-2.0, on PyPI, Python 3.13+. It uses your own model credentials (Anthropic direct or AWS Bedrock; Gemini and Codex via their extras) — it never proxies model access.
uv tool install coder-eval
coder-eval run tasks/hello_date.yaml
coder-eval report runs/latest
Ships with example tasks, tutorials, and Claude Code slash commands (/coder-eval-task-create, /coder-eval-run-analysis) to get you authoring your first suite in minutes.
SWE-bench, HumanEval, and SkillsBench are fixed datasets for ranking models. Coder Eval is a framework: you write declarative YAML eval tasks for your own repos, skills, and workflows, run a real agent against them in a sandbox, and score the files and commands it actually produced. It measures what leaderboards can’t see — your tasks.
Claude Code, Codex, and Gemini run out of the box, each in an isolated sandbox with full telemetry: every tool call, turn, token count, and cost. Other agents plug in through the framework’s plugin SPI.
Yes. A run exits non-zero when weighted criteria or suite thresholds fail, so a plain CI step fails the build when quality regresses — for example when a task’s score drops or a Claude Code skill stops triggering.
Add a skill_triggered criterion to a task. It scans the run’s telemetry for a real skill invocation and scores pass or fail; across a dataset of prompts it aggregates into precision and recall thresholds you can gate on.
Define your tasks once, then run an A/B experiment with one variant per agent. Every variant runs the same tasks in the same sandboxes, and the experiment report puts the scores side by side — win rates, cost, duration, and tokens per agent — so the comparison is on your workload, not a public leaderboard.
Yes — that’s the point. Task templates seed each sandbox with files from your repo, the agent works on that copy in isolation, and criteria score the result. Runs execute on your machine or your CI, so private code stays in your infrastructure.
Run the experiment with repeats: each variant executes the same tasks N times, and reports aggregate the replicates with bootstrap confidence intervals plus a paired mean-difference test for two-variant experiments — a statistically grounded answer instead of a vibe check on one lucky run.