Skip to content
Current section: Bench

Run Bench

Bench runs in the cedr CLI. Each run works through every task of one edition, once, with one agent, model and effort.

Terminal window
cedr bench run --harness claude --model claude-sonnet-5-5 --effort high
  • --harness is the agent CLI to run (see Harnesses).
  • --model is the model id, as the agent takes it.
  • --effort is the reasoning effort: low, medium, high, xhigh or max. A level the model does not offer is an error; Bench never substitutes another one. Leave it out to use the agent’s default.

The run takes the newest edition. --edition N picks an older one, and --suite PATH runs a local copy of the suite instead. --task ID (repeatable) runs only the named tasks, which is useful while you set up but never gives a complete result.

The agent and the graders run only in the edition’s pinned container image. For comparisons on your own repo and your own machine, use Compare. See The Clean Environment.

--format json prints the result as JSON instead of text.

Each edition sets a cost goal: $10.00 a run in edition 1, at API list prices. A run that spends more is flagged, never stopped or dropped. See The Goal and the Flag.

There is no spending stop unless you set one. Without one, cedr bench run prints a warning before it starts that names the option:

Terminal window
cedr bench run --harness codex --model gpt-6.1-sol --effort high --stop-at-usd 5

--stop-at-usd N, or bench_stop_usd in the CLI’s settings file ($XDG_CONFIG_HOME/cedr/cli.toml), is checked before each task. A run it ends is incomplete, with stop set to user_stop, and the tasks it never reached score zero.

A task whose cost the agent does not report stops the run as unknown_cost, unless you pass --allow-unpriced.

Terminal window
cedr bench probe --harness claude --model claude-sonnet-5-5

The probe runs on its own with the same --effort option, in the pinned container. It shows whether your agent home is as clean as Bench needs before you spend anything on tasks.

Harness Runs
claude Claude Code, headless
codex Codex CLI, headless
muse Muse Code, muse exec --json
grok Grok Build, grok -p --output-format json
gemini Gemini CLI, headless
antigravity Not available in Bench; use Compare for local comparisons
command Any program, as in Compare; never listed on the public page

Each harness reports tokens split into fresh input, cache reads, cache writes, output and reasoning (where the agent reports them), the agent’s version and the models it resolved. A harness that cannot report tokens leaves its tasks unpriced.

Terminal window
cedr bench history
cedr bench show <ID>

Results are saved to $XDG_STATE_HOME/cedr/bench/<id>.json, with the files each task produced beside them. The local MCP server offers the same as bench_history and bench_show; there is no MCP tool to start a run.

Running Bench and reading local results still need no account. If you want your organization to read the measurements together, save an API key privately in the CLI.

Review flagged runs before their first push. The accepted copy includes the review verdict and cannot be updated by resending. If you review a run after pushing it, remove its saved result from the organization in the app, then push that ID explicitly to send the revised measurements.

Send the saved measurements explicitly:

Terminal window
cedr bench push --org <organization-ID>

Without result IDs, this sends unsent Bench measurements from the machine. Add an ID to resend one result; an accepted result is immutable, so retries do not overwrite it. --dry-run previews the request without sending or marking anything. A failed push leaves the result available to retry. Results outside the organization’s history allowance are reported separately as not retained; the CLI preserves the local file and records the acknowledgement. Send the ID explicitly to recheck it after an allowance change.

The Bench page shows a configuration overview, Runs, per-task details and Setup. It separates suite digests and agent versions so unrelated task sets are not compared. Organization results remain private; pushing does not submit them to public Benchmarks. The Data tab explains retention and lets you remove measurements you are permitted to delete.

Overview counts the retained runs for the selected suite and links to the runs it leaves out. A run appears under the first condition it misses: it must be complete, its probe fingerprint must match a published reference and pass tool readiness, and it must use the pinned container with a clean agent home and an allowlisted network. Recorded review flags require a clean verdict, and evidence mismatches always keep a run out. Eligible runs can also belong to a configuration beyond the first 200 shown. Open any excluded run to see its reason.

Only measurements, agent configuration, suite identity, environment reports and machine identity are uploaded. Prompts, output, errors, patches, screenshots, artifact paths, gate details and review notes stay on the machine. Runs, probes and reviews never upload automatically. Every member can read the organization’s retained results, including through the API and hosted MCP’s bench_history and bench_show.

Terminal window
cedr bench export <ID>... --out DIR

Writes results.json and screenshots under DIR/shots/, ready to publish. Tamper flags include their kind only; paths and line numbers stay in your local result.

Code Meaning
0 The run is complete
3 The run is incomplete: stopped, interrupted or out of tasks it could reach
2 A usage or I/O error

Bench reports and never gates, so there is no --fail-on. To gate a change in CI, use Compare.