Skip to content
Unsnag

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.

KeyTypeDefaultDescription
clistringThe Target CLI's command, as its users type it.
versionstringA command whose output is the Target CLI's version.
installstring or list of string (at least 1)Shell steps that install the Target CLI into the image.
dockerfilestringA Dockerfile used instead of install, for a build its steps can't express.
build_rootstringThe 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.
scenariosstringThe folder of Scenario files, relative to the project root.
sourcestring or list of string (at least 1)The Target CLI's source, read only by the drafter and the explainer, never by Agents.
runsinteger (≥ 1)5Runs per Cell: how many Runs each Cell gets.
agentslist 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.
jurylist 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.
explainerstringclaude-code:anthropic/claude-opus-5.5The Agent that explains Findings and drafts Scenarios.
contextmapping of <context-condition> → mapping or null{"name-only":{}}The Context Conditions to run, by name.
servicesmapping of <service> → mappingSidecars started for every Run, by name.
envmapping of <variable> → string or number or booleanEnvironment variables for every Run (its setup, Agent, Checks, teardown and services) and for reading the Target CLI's version and help.
secretsmappingNames of environment variables whose values come from the host (or CI), redacted from everything Unsnag stores or prints.
budgetmappingSpending limits in US dollars.
timeoutstring or number (> 0)15mThe time limit for one Run.
gatemappingWhat makes unsnag run exit 1.
signalsmappingBuilt-in Signals to turn off, as <name>: false.
draftmappingInputs for unsnag draft.
externalbooleanfalseThe 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.
concurrencyinteger (≥ 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.
relaymappingModel relay settings.