# Octobench Real-Commit Benchmark Comparing coding agents on **25 real, recent, fail-to-pass-proven tasks** harvested from merged pull requests in trusted open-source projects — 5 languages (python, php, rust, cpp, js), scenario mix from one-line crash fixes to multi-surface features, graded by the projects' own held-out tests plus an LLM judge. Providers under test (each runs its stock single-agent invocation): | provider | invocation | model | |---|---|---| | claude | `claude -p --output-format stream-json --dangerously-skip-permissions` | claude-opus-5 | | octomind | `octomind run developer:general --format=jsonl` | ollama:glm-5.2 | | codex | `codex exec` | gpt-5.6-sol | | opencode | `opencode run --auto --format json` | ollama/glm-5.2 | ## Results _Updated 2026-07-30 14:35 UTC. val = hidden gold tests; j = judge 0-100; cost; wall time (incl. env setup + verification)._ | case | opus | glm-octomind | gpt56-codex | glm-opencode | |---|---|---|---|---| | dev/cpp_fmt_printf_oob_read | PASS j=95 $2.18 16m | PASS j=95 $1.56 8m | PASS j=92 $0.29 2m | PASS j=95 $0.91 6m | | dev/cpp_yamlcpp_binary_emit_styles | PASS j=95 $2.08 6m | FAIL j=65 $5.94 13m | PASS j=92 $0.45 2m | FAIL j=62 $2.99 9m | | dev/js_eslint_unreachable_loop_crash | PASS j=98 $0.25 1m | PASS j=98 $0.41 2m | PASS j=96 $0.29 1m | PASS j=95 $0.21 1m | | dev/js_fastify_query_method | PASS j=95 $5.71 14m | PASS j=95 $2.76 10m | PASS j=100 $1.06 4m | PASS j=98 $16.62 14m | | dev/php_carbon_period_end_sync | PASS j=95 $15.31 164m | PASS j=88 $11.27 32m | PASS j=78 $0.89 3m | PASS j=95 $43.06 23m | | dev/php_twig_stringable_array_key | PASS j=92 $2.69 6m | PASS j=92 $2.23 4m | PASS j=92 $0.42 2m | PASS j=95 $5.24 10m | | dev/python_click_powershell_completion | PASS j=100 $2.48 7m | PASS j=95 $2.31 5m | PASS j=95 $0.59 2m | PASS j=88 $1.67 3m | | dev/python_werkzeug_float_url_notation | PASS j=95 $0.77 12m | PASS j=90 $0.82 5m | PASS j=95 $0.26 1m | PASS j=93 $1.03 4m | | dev/rust_rayon_par_array_windows | PASS j=95 $1.40 6m | PASS j=95 $1.20 5m | PASS j=95 $0.86 4m | PASS j=96 $6.30 11m | | dev/rust_uuid_parse_panic | PASS j=95 $2.61 16m | PASS j=95 $1.98 10m | PASS j=95 $0.45 2m | PASS j=95 $1.43 7m | | dev2/cpp_catch2_textflow_utf8 | PASS j=95 $7.59 25m | PASS j=90 $1.00 4m | PASS j=82 $1.00 3m | PASS j=85 $0.89 2m | | dev2/cpp_spdlog_srcloc_lifetime | PASS j=55 $2.10 13m | PASS j=60 $1.64 5m | PASS j=90 $0.65 4m | PASS j=88 $1.44 7m | | dev2/cpp_yamlcpp_octal_scalars | PASS j=92 $2.19 8m | PASS j=95 $1.48 13m | FAIL j=40 $0.55 4m | FAIL j=40 $0.42 6m | | dev2/js_pino_single_target_level | PASS j=96 $2.83 12m | PASS j=95 $1.61 11m | PASS j=95 $0.44 2m | PASS j=92 $2.55 11m | | dev2/js_pinopretty_strip_controls | FAIL j=68 $4.21 10m | PASS j=95 $3.19 7m | FAIL j=72 $0.89 3m | FAIL j=72 $5.59 12m | | dev2/js_undici_async_mock_reply | PASS j=95 $3.49 8m | PASS j=95 $2.87 13m | PASS j=95 $0.62 2m | PASS j=92 $6.25 12m | | dev2/php_commonmark_fence_tabs | FAIL j=55 $2.11 6m | PASS j=92 $1.01 2m | FAIL j=25 $0.36 2m | FAIL j=20 $2.54 5m | | dev2/php_guzzle_cookie_prefixes | PASS j=95 $3.52 9m | PASS j=92 $3.43 9m | FAIL j=55 $1.32 4m | FAIL j=55 $5.30 7m | | dev2/php_symfony_jsonpath_singular | PASS j=95 $5.06 12m | PASS j=88 $3.22 21m | PASS j=95 $0.53 2m | PASS j=95 $11.52 14m | | dev2/python_anyio_cancel_spin | PASS j=95 $1.81 9m | PASS j=95 $4.96 7m | PASS j=92 $0.62 2m | PASS j=95 $1.70 5m | | dev2/python_anyio_tls_idna2008 | PASS j=92 $1.32 5m | PASS j=92 $1.32 3m | PASS j=92 $0.57 2m | FAIL j=72 $1.80 5m | | dev2/python_pydantic_pipeline_constraints | PASS j=95 $5.01 18m | PASS j=92 $0.97 4m | PASS j=88 $0.40 2m | PASS j=90 $1.31 4m | | dev2/rust_bytes_truncate_release | PASS j=95 $1.22 5m | PASS j=95 $1.72 4m | PASS j=93 $0.37 1m | PASS j=95 $1.24 6m | | dev2/rust_chrono_iter_reverse | PASS j=92 $2.46 10m | PASS j=88 $3.51 16m | PASS j=95 $0.48 2m | PASS j=95 $6.77 15m | | dev2/rust_serdejson_enum_key_string | PASS j=92 $1.39 5m | PASS j=92 $1.03 3m | PASS j=88 $0.50 2m | PASS j=95 $0.74 2m | - **opus**: **23/25** · judgeΣ 2262 · $81.79 · 6.7h - **glm-octomind**: **24/25** · judgeΣ 2264 · $63.43 · 3.6h - **gpt56-codex**: **21/25** · judgeΣ 2127 · $14.86 · 1.0h - **glm-opencode**: **19/25** · judgeΣ 2093 · $129.54 · 3.3h **Cost interpretation — glm ran WITHOUT prompt caching.** The glm-5.2 columns (octomind and opencode) went through Ollama cloud, which has no prompt caching: every agent turn re-buys its full context at the list input price ($1.40/M). The opus column, by contrast, benefits massively from Anthropic’s 1h caching — in these runs ~97% of its context traffic billed as cache reads at $0.50/M (a tenth of its $5/M input price). glm’s dollar figures are therefore its worst case: on a cache-enabled endpoint its input bill would shrink several fold, making its cost position substantially stronger than even these numbers show. gpt-5.6-sol (codex) also benefits from OpenAI’s implicit caching. Run artifacts live in `results-full-//results.json` with per-case logs (agent trace `provider.raw.jsonl`, setup/quality/validate output, judge verdict) alongside. ## What a case is Each case in `cases/dev/` and `cases/dev2/` reconstructs a real merged PR as a task (see `AGENTS.md` → "Real-Commit Case Harvesting" for the full pipeline and rules): - **`case.yaml`** — the task `instruction` (either a reverse-engineered spec via the `developer:reverse-spec` tap agent, or the original GitHub issue text for `prompt_source: original-issue` cases) plus `meta` (repo, base/gold SHAs, PR, held-out `test_paths`). - **`setup.sh`** — shallow-fetches the pre-fix BASE commit (single reachable commit: the fix is not in the object store), prepares the toolchain (pip/composer/npm/cargo/cmake), removes the git remote. - **`validate.sh`** — after the agent runs, fetches the gold commit and checks out ONLY the held-out test paths (agent edits to tests are overwritten), then runs those tests selectively. Non-zero exit = task failed. - **`quality.sh`** — cheap objective build/lint sanity. Every case is proven **fail-to-pass** before benching (`scripts/verify_case.sh `): tests must fail at BASE and pass with the real merged fix applied. Every held-out assertion was audited to be derivable from the instruction (no grading on undisclosed prose/formatting picks). ## Scoring Per case: hidden-test validation (hard pass/fail, failure costs a 25-point penalty) + LLM judge score 0-100 (judge = octomind `judge` role, model from `OCTOBENCH_JUDGE_MODEL`) weighted 0.85 with an efficiency component weighted 0.15. Costs: claude reports its own `total_cost_usd` (correct 1h-cache-write pricing); other providers are priced from token counts × `configs/models.yaml`. ## Reproduce On a linux host with docker (agents authenticate via env keys + mounted CLI logins — see `runners/executor.py` `AUTH_ENV_KEYS`): ```bash # 1. Agent image (toolchains for all 5 languages + pinned agent CLIs) docker build -f docker/Dockerfile.agent -t octobench-agent:latest docker # 2. Prove every case fail-to-pass (optional but recommended) for c in cases/dev/*/* cases/dev2/*/*; do scripts/verify_case.sh "$c"; done # 3. Run per provider (see run_full_*.sh for the exact wrappers used) export OCTOBENCH_JUDGE_MODEL=ollama:minimax-m3 python -m cli.main run --cases cases/dev --config configs/run-matrix.cases-claude.yaml \ --executor docker --image octobench-agent:latest --out results-full-claude python -m cli.main run --cases cases/dev2 --config configs/run-matrix.cases-claude.yaml \ --executor docker --image octobench-agent:latest --out results-full-claude # same with run-matrix.cases-octomind.yaml / run-matrix.cases-codex.yaml # 4. Retry infra failures (provider 5xx etc.) and repair degenerate judge verdicts python scripts/rerun_failed.py results-full-claude//results.json configs/run-matrix.cases-claude.yaml python scripts/rejudge.py results-full-claude//results.json # 5. Aggregate table python scripts/full_table.py 'results-full-claude/*/results.json' 'results-full-octomind/*/results.json' ``` Provider-specific env used in our runs: octomind ran a staged tap (`OCTOMIND_TAP_CACHE`) and a binary override with the unfinished-handback pre-gate (`OCTOMIND_BIN`); codex needed `CODEX_BIN` pointing at >= 0.145.0 for gpt-5.6-sol. Ollama cloud (`OLLAMA_API_KEY`) has no prompt caching — factor that into cost comparisons (anthropic caching re-reads context at 0.1× input price). ## Case collection (adding more) `scripts/reverse_spec.sh [out.md]` reconstructs the task from a merged commit via the `developer:reverse-spec` agent; curate its Task Prompt (plus the spec requirements whenever hidden tests pin API names, wire formats, or exact output) into `case.yaml`. For issue-driven cases use the original issue text, trimmed of fix-leaking sections. Full criteria and the derivability rule: `AGENTS.md` → "Real-Commit Case Harvesting".