Running Evals
eve eval runs every .eval.ts file under evals/ concurrently and prints a per-eval summary. It boots a local dev server, or targets a remote one with --url.
Positional ids match exactly or by directory prefix: eve eval weather runs evals/weather.eval.ts, every eval under evals/weather/, and every entry of an array-exported weather.eval.ts.
Tag filters compose: --tag keeps evals carrying at least one listed tag, then --exclude-tag drops any eval carrying an excluded tag. A --tag filter that matches nothing is a configuration error (exit 2). A run where --exclude-tag removes every match succeeds with nothing executed.
Exit codes
| Code | Means |
|---|---|
0 | Every non-skipped eval passed its gates (and soft thresholds, under --strict) |
1 | Any eval failed (a failed gate, an execution error, or a strict threshold miss) |
2 | Configuration error |
An eval that calls t.skip(reason) is reported as skipped, does not count as passed or failed, and never changes the exit code.
eve eval --json writes the complete report before exiting, including when stdout is piped to another process or redirected to a file.
With --verbose, eve prefixes each line with its eval ID and prints t.log() lines as they happen. It then prints the wrun_... workflow run ID for every session the eval read, so you can find the runs in your workflow provider.
Repeat evals
Evals that call a real model can pass on one run and fail on the next. To measure how often an eval passes, pass --repeat <n> or set repeat in evals.config.ts. eve then runs every selected eval n times. The CLI flag overrides the config value. The default is 1.
With n greater than 1, each attempt is a separate result with a 1-based attempt field:
- The console and
--verboselines label each attempt<id>#<attempt>, and the summary adds a per-eval pass rate such as3/5 passed. The pass rate counts attempts that passed or failed their gates; scored and skipped attempts are left out. --jsonresults, JUnit test cases (named<id>#<attempt>), and reporters receive one result per attempt.- Every attempt counts toward the run totals and the exit code, so one failed attempt fails the run.
Attempts share the --max-concurrency limit with every other eval, so attempts of one eval can run at the same time. If an eval depends on shared state or a rate-limited provider, lower --max-concurrency so contention doesn't look like flakiness.
Artifacts
Each run writes artifacts under .eve/evals/<timestamp>/:
summary.jsonsummarizes the run.results.jsonlindexes the results, one line per eval.evals/holds each eval's assertion results, verdict, start and completion times, andt.loglines.evals/also holds each session's events, with when the client sent each request and received each event.
In a repeated run, each attempt's detail and event files get an .attempt-<n> suffix, such as evals/weather.attempt-2.json. When an eval fails, check its artifact for details the console omits.
CI
In CI, run evals strict and machine-reportable:
--strictturns soft threshold misses into failures, so score regressions block the merge.--junitgives the CI provider per-eval annotations; upload the.eve/evals/directory as a failure artifact for the full event streams.
Evals run against a live model, so the CI environment must provide the model-provider credentials. Against a deployed app, add --url:
What to read next
- Targets: what
--urlinteracts with - Reporters: Braintrust and JUnit output
- CLI reference: the rest of the
eveCLI