CodePanel

How the coding agent benchmark works

How CodePanel benchmarks coding agents: sandboxed worktrees, nonce-keyed hidden probes, ratio-of-sums cost per solved task, and exact paired permutation tests.

Real local runner, isolated worktrees

Every model runs each task through the same local runner, git worktree setup, permission engine, and model proxy that power CodePanel's desktop app.

Each slot gets its own copy of the fixture repository and runs headless with a simulated owner. When a fixture requires running a generator command, the owner approves only that exact command and refuses anything else. Token counts and dollar spend are metered live from the model proxy stream and priced with CodePanel's price table.

Hidden probes that untrusted code cannot game

Standard test suites import the agent's code in the same process that writes the pass/fail verdict. A broken or adversarial solution can print fake summaries, exit 0 early, or read expected values from disk.

  • Parent-side grading: The child process imports the committed branch and reports raw expression observations as nonce-keyed frames on file descriptor 3. The parent process holds the expected values and grades only after the child process group has exited.
  • OS read sandbox: The probe runs inside an OS read sandbox (sandbox-exec on macOS, bwrap on Linux) that denies reads outside its own worktree and runtime, preventing code from reading expected values on disk or inspecting sibling slots.
  • Fail closed: The harness proves the sandbox works before grading. Without a proven sandbox, grading refuses to run unless explicitly marked unsandboxed.

Ratio-of-sums cost and exact paired permutation tests

Failed runs still burn tokens, so cost per solved task is computed as total spend divided by total tasks solved, never an unweighted mean of per-fixture ratios.

  • Fixtures are the unit of sampling: Confidence intervals use a 95% cluster bootstrap resampled over fixtures, not repeats.
  • Why at least seven fixtures: An exact paired permutation test on n fixtures has a minimum p-value of 2 / 2^n. With three watched measures (cost, time, and tokens per solved task) Holm-corrected together, seven is the smallest count where a difference can reach p < 0.05; the suite holds eight (two per task kind).
  • Brief score: The deterministic share of a fixture's review-brief rules the committed diff satisfies (no stray console.log, edits inside allowed paths, line cap, and tests touched when adding behaviour). Runs with no commit score 0%.
  • Machine-readable output: The published results (323 runs, 2026-11-19) are available at /benchmarks/coding/results.json. See the coding leaderboard or code review benchmark methodology.