OpenCode Bench
Open-source harness that grades AI coding agents on real production commits with three LLM judges and variance-penalized scoring.

Dhanji Bhagat
Founder, Emiote
Fully hosted platform. Automated backups and SLA.
Not publicly disclosed (GitHub Actions minutes plus model spend; no managed service)
Private compute. Zero seat taxes; team runs ops.
Rough operating estimate: $20 to $40/mo runner plus heavy pay-as-you-go judge and agent tokens per evaluation
OpenCode Bench is an open-source benchmarking harness from the anomalyco organization that grades AI coding agents on real production commits. It checks out a repo at a baseline commit, runs an agent with a 30-minute timeout, and scores the diff with three language-model judges across five weighted dimensions. Each evaluation repeats three isolated episodes for statistical reliability.
Scope and Currency
This review is based on the public repository (anomalyco/opencode-bench, branch main, reviewed 2026-09-29): README.md, package.json (binary orvl, Bun 1.2.21), cli.ts, the run-benchmark GitHub workflow, benchmark-observations.md, and repository metadata (TypeScript, 85 stars, 15 forks, 6 open issues, created October 2025). I did not run an evaluation. Counts move and are observed values, not endorsements.
1. What It Replaces and Why It Matters
Teams pick coding agents from demos, anecdotes, and single-score leaderboards. Those signals collapse quality into one number produced by one judge on one attempt. Nearby alternatives: academic harnesses such as SWE-bench with fixed tasks and deterministic tests, vendor-published evals that grade their own models, and hand-rolled scripts that run an agent once and eyeball the diff. OpenCode Bench takes the practitioner position: grade agents on real production commits from real repositories, with three independent judges, five weighted dimensions, and three isolated episodes per evaluation. Good fit: teams choosing between OpenCode, Codex, and Claude Code on their own stack. Bad fit: anyone wanting a stable industry leaderboard or a managed eval service.
2. Architecture and Tech Stack Review
| Component | Source Evidence | Evidence Type |
| Orchestrator | cli.ts, binary orvl in package.json | Manifest (fact) |
| Runtime | Bun 1.2.21 (packageManager field, bun.lock) | Manifest (fact) |
| Agent integrations | @opencode-ai/sdk, @openai/codex-sdk, @anthropic-ai/claude-agent-sdk | Manifest (fact) |
| Judge layer | @ai-sdk/anthropic, @ai-sdk/openai, @ai-sdk/openai-compatible | Manifest (fact) |
| Repo access | @octokit/request | Manifest (fact) |
| CI runner | .github/workflows/run-benchmark.yml (matrix tasks, 3 runs, artifact upload) | Workflow (fact) |
| Results | results.json committed (29KB), zen.html visualization | Repo tree (fact) |
| Self-critique | benchmark-observations.md, notes.md | Primary source (fact) |
The pipeline selects a baseline commit, generates a task from a later production commit, runs the agent with a 30-minute timeout, diffs the output against the real fix, and scores it with three judges (Claude Sonnet 4.5, GPT-5 Codex, Kimi-k2, per README) across five dimensions: API signature 20 percent, logic equivalence 30 percent, integration points 20 percent, test coverage 20 percent, checks 10 percent. Final scores apply a variance penalty (lambda 0.5) so judge disagreement lowers the result.
Evaluation Pipeline
sequenceDiagram
autonumber
participant Op as Operator
participant CLI as orvl CLI (Bun)
participant Agent as Coding agent (OpenCode, Codex, Claude Code)
participant Judges as Three LLM judges
participant Agg as Score aggregation
Op->>CLI: orvl opencode --model ... --eval owner/repo
CLI->>CLI: Checkout baseline commit (fresh clone per episode)
CLI->>Agent: Task prompt from production commit (30-minute timeout)
Agent->>CLI: Proposed diff
CLI->>Judges: Diff plus production fix, five dimensions
Judges->>Agg: Three independent score vectors
Agg->>Op: Variance-penalized weighted score plus results.json
3. Visual Tour and Interface Proof

The screenshot shows the upstream repository surface. No official mark exists anywhere in the repo (no assets/ directory, no docs images, no package icon), so no logo was invented; the frontmatter logo points at this authentic capture, documented in logo-source.md.
4. Total Cost of Ownership
| Dimension | Running OpenCode Bench | Notes |
| License | $0 to read, but no license file (see Licensing) | All rights reserved by default |
| Compute | Rough estimate: $20 to $40/mo runner or GitHub Actions minutes | Matrix of tasks times 3 runs per the workflow |
| Model usage | Heavy: agent run plus 3 judges times 3 episodes per evaluation | Pay-as-you-go to three providers; the dominant cost |
| Storage | Small (results.json, trajectories, clones are fresh each episode) | Verified from workflow artifacts |
| Maintenance | Your responsibility (dataset curation, judge calibration) | Plus tracking upstream agent SDK changes |
| Operational burden | Medium to high | Eval design is the real cost, not hosting |
All infrastructure figures are labeled estimates. The honest TCO line is tokens: one evaluation multiplies an agent run by nine judge assessments. Never assume benchmarking costs $0 because the harness is open source.
The Bad: What to Know Before Adopting
- There is no license file in the repository. With
license: nullin the metadata, the code is all rights reserved by default, which means running it privately is fine but forking, redistributing, or building a service on it has no granted rights. Confirm with the maintainer before commercial use. - LLM judges grade code they did not execute. Stylistic fluency can outscore behavioral correctness, and the maintainers acknowledge stability concerns in
benchmark-observations.md, including a call for deterministic analysis to complement the judges. - The README project structure lists
agents/,scores/,prompts/, andlib/directories that are absent from the repository root listing. Either the layout moved undersrc/or the docs drifted; verify paths before scripting against the tree. - Three judges times three episodes times a 30-minute agent timeout makes one evaluation slow and expensive. This is a deliberate rigor trade, not a quick gate for pull requests.
- Results depend on judge model versions that vendors change under you. A score from September is not directly comparable to a score from December unless judge pins are recorded alongside.
- At 85 stars and 6 open issues, this is a young niche tool. Datasets, judge prompts, and scoring weights reflect one organization’s judgment about what good code looks like.
Security Note
Secrets are the operational surface: OPENCODE_API_KEY, OPENAI_API_KEY, and ANTHROPIC_API_KEY for the agents and judges, plus workflow secrets for CI runs. Three keys across three providers means three revocation paths to maintain; a leaked judge key lets an attacker bill inference to your account without touching your code. The evaluation itself clones third-party repositories and executes agent-produced diffs, so run evaluations on disposable runners, never on machines holding production credentials. Agent SDK dependencies (@opencode-ai/sdk, @openai/codex-sdk, @anthropic-ai/claude-agent-sdk) are supply-chain surface: pin versions and review upgrades, since the harness grants these libraries network and filesystem reach during runs.
Licensing
No license file was found in the repository root listing, and the API reports license: null. That is the finding, not an oversight to wave away: without a license grant, the code remains the exclusive property of its authors regardless of public visibility. Do not assume MIT or Apache terms from the open-source aesthetic. Contact the maintainer for written permission before forking, redistributing, or offering evaluations as a service. Reverify before any commercial use, since a license file may be added later.
Quickstart and Deployment
Verified against the official README (prerequisites, install, usage, dev mode):
bun install
bun run build
orvl opencode --model opencode/claude-sonnet-4-5 --eval DataDog/datadog-lambda-python
orvl opencode --model opencode/gpt-5-codex --eval DataDog/datadog-lambda-python --output results.json
bun run dev -- opencode --model opencode/claude-sonnet-4-5 --eval <owner/repo>
bun test
Prerequisites are Bun v1.2.21 or newer plus API keys for whichever agents under test. No ports or extra environment variables were used. For CI execution, follow the run-benchmark workflow in the repository.
Who Should Use This
Good fit: teams already committed to OpenCode, Codex, or Claude Code that want head-to-head evidence on production-shaped tasks; eval-minded engineers comfortable curating datasets and calibrating judges; researchers studying judge agreement. Bad fit: teams wanting a plug-and-play leaderboard; anyone needing deterministic pass or fail gates in CI; commercial users requiring clear redistribution rights today; shops unwilling to fund nine model assessments per evaluation.
Deeper Insight
The variance penalty is the idea worth stealing. Most multi-judge setups average scores and hide disagreement; penalizing it turns judge consensus into part of the measurement. That single formula choice acknowledges what practitioners know: an evaluation you cannot trust is worse than no evaluation, because it launders opinion into numbers. When building any LLM-graded pipeline, ask how disagreement surfaces; if the answer is averaging, the sharp edges of your data are being sanded off before you see them.
What I Would Change
If I operated this system, I would add a LICENSE file conversation first (nothing else matters commercially until that resolves), then pin judge model versions into every results file so scores stay comparable across months, and add one deterministic dimension (tests pass in a container) alongside the five judge dimensions to anchor the subjective scores. These are engineering opinion, not project fact.
Grade coding agents before trusting them
Evidence-led review: multi-judge scoring design, episode isolation, token cost per evaluation, and the missing license.
Fixed $199 fee · 100% vendor-neutral review · 3-day delivery guarantee
