Benchmark keys
An Unsnag Benchmark: unsnag/benchmark.yaml. It needs cli, and exactly one of install and dockerfile.
unsnag schema benchmark prints the same definition as a JSON Schema, and unsnag validate checks a Benchmark against it.
| Key | Type | Default | Description |
|---|---|---|---|
cli | string | The Target CLI's command, as its users type it. | |
version | string | A command whose output is the Target CLI's version. | |
install | string or list of string (at least 1) | Shell steps that install the Target CLI into the image. | |
dockerfile | string | A Dockerfile used instead of install, for a build its steps can't express. | |
build_root | string | The folder used as the build context of install (mounted at /src), dockerfile and services: the project root (the default) or a folder above it, such as .. for a CLI inside a monorepo whose build or Mock needs the rest of the repository. | |
scenarios | string | The folder of Scenario files, relative to the project root. | |
source | string or list of string (at least 1) | The Target CLI's source, read only by the drafter and the explainer, never by Agents. | |
runs | integer (≥ 1) | 5 | Runs per Cell: how many Runs each Cell gets. |
agents | list of string or mapping (at least 1) | ["claude-code:anthropic/claude-opus-5.5","codex:openai/gpt-6.1-sol","opencode:google/gemini-4-argon"] | The Agents that attempt every Scenario. |
jury | list of string (exactly 3) | ["anthropic/claude-haiku-5.5","openai/gpt-6-luna","google/gemini-3.8-flash"] | Three OpenRouter models from different vendors that decide judge Checks. |
explainer | string | claude-code:anthropic/claude-opus-5.5 | The Agent that explains Findings and drafts Scenarios. |
context | mapping of <context-condition> → mapping or null | {"name-only":{}} | The Context Conditions to run, by name. |
services | mapping of <service> → mapping | Sidecars started for every Run, by name. | |
env | mapping of <variable> → string or number or boolean | Environment variables for every Run (its setup, Agent, Checks, teardown and services) and for reading the Target CLI's version and help. | |
secrets | mapping | Names of environment variables whose values come from the host (or CI), redacted from everything Unsnag stores or prints. | |
budget | mapping | Spending limits in US dollars. | |
timeout | string or number (> 0) | 15m | The time limit for one Run. |
gate | mapping | What makes unsnag run exit 1. | |
signals | mapping | Built-in Signals to turn off, as <name>: false. | |
draft | mapping | Inputs for unsnag draft. | |
external | boolean | false | The Runs use a real backend: run one at a time (unless concurrency is set; each Run gets $RUN_WORKER, 1 to concurrency, to partition the backend by) and label the environment external. |
concurrency | integer (≥ 1) | How many Runs execute at once: by default the machine's cores, capped by its available memory at about 1 GB per Run, and 1 with external: true. | |
relay | mapping | Model relay settings. |