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.
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.
- 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-execon macOS,bwrapon 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.
- 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
nfixtures has a minimum p-value of2 / 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 reachp < 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.