Skip to main content
An agent pins one model per node. Evals answer the question that follows: would this agent be better, cheaper, or faster on a different model? You write a suite of test cases once, then run an experiment that executes every case against every model you want to compare. The result is a leaderboard ranked on quality, latency, and cost.

How it fits together

  • Suite - a named set of test cases. Belongs to one agent, or to the whole workspace so several agents can share it.
  • Case - a prompt plus one or more scorers that decide whether the answer was good.
  • Variant - one model under test, written as a fully-qualified provider/model and given a short label.
  • Experiment - a suite x variants fan-out. Every (case, variant) pair is one real agent run.
Swapping the model is a rewrite of the agent’s graph before it executes, so a comparison exercises the same prompt, the same tools, and the same retrieval as production. Nothing is stubbed.
An experiment pins the agent version at launch. Editing the agent while it runs does not change results already in flight, so a leaderboard always describes the graph that actually executed.

Scorers

Every scorer returns 0.0-1.0. Deterministic ones return exactly 0 or 1, and a case’s score is the weighted mean across its scorers.
decision sends the rubric, the case input and the reply to the decision model (Jev) as a score question over the levels. The case gets the probability-weighted level scaled to 0-1, and the rationale column shows the level and confidence. It needs a TypeSafe or OpenRouter connection, not a judge model, and costs a fraction of a cent per case, so it is cheap enough to run on every case in every experiment. Its spend is recorded with judge spend, apart from the run’s cost. tool_call matches against the run’s persisted trace, and args is a subset match - you can assert that a tool was called without pinning every argument. An unknown scorer type records no verdict rather than zero. A scorer written by a newer dashboard than the deployed worker will not quietly mark every model as failing.

Choosing a judge

llm_judge needs a judge_model, and it should be a strong model that is not one of the variants. A model grading its own output is the most common way an eval harness quietly flatters one model, so launching with the judge also under test is rejected outright. Judge spend is recorded separately from run cost. The cost column exists to compare what each model costs to serve, and folding grading into it would corrupt exactly that comparison.

Rubrics with dimensions

One overall score hides why an answer lost points. Give llm_judge up to six dimensions and the judge scores each one separately. The scorer’s score is their mean, and the breakdown is kept on the result as llm_judge:<name>.
levels says what each score means, worst to best, and sets that dimension’s scale. Written levels make a judge more consistent: “3 = right status and date” leaves less room for interpretation than “3 out of 3”. A dimension without levels uses the scorer’s scale. If the judge skips a dimension, that dimension gets no verdict rather than zero.

Checking the judge

A judge score is only as good as the judge’s reading of your rubric. Before you rely on one, score a few results yourself and see whether it agrees. On a comparison’s page, Check the judge shows the results the judge scored, with the agent’s answer. Give each a score from 1 to 5, the same scale the judge uses. The judge’s own score appears after you give yours, so it doesn’t sway you. After five or more, the page says how close the judge is to you:
  • Off by: the average gap between its score and yours, in points on the 1-5 scale. Within 0.6 points reads as close, within 1.2 as rough, beyond that as far.
  • More generous or harsher: whether the gap leans one way.
  • Rank correlation: whether it puts results in the same order you do, from -1 to 1. A judge can be harsh across the board and still rank well, which is fine for comparing models.
  • Biggest gaps: the results to read first.
If the judge is far from you, make the rubric more specific or add dimensions with written levels, then run the comparison again. Labels from everyone in the workspace count; each person has one score per result. From the CLI, cruqai evals review <experiment-id> walks you through the results one at a time, and cruqai evals results prints the agreement line. Over the API:

Running one

Models must be fully qualified - openrouter/openai/gpt-4o-mini, not gpt-4o-mini - because the first segment selects the provider connection. See Models & providers.

Cases from real runs

Writing cases by hand tends to test the requests you thought of. Once an agent has traffic, Cruq AI can suggest cases from what people actually asked it. It reads the first message of each conversation from the last 30 days (a later message like “yes, go ahead” means nothing on its own) and skips requests the suite already has. Then it picks:
  • Typical requests. Similar requests are grouped, and one real request stands for each group. The biggest groups come first, and each suggestion says how many runs it stands for.
  • The cases a suite most needs. Up to 40% of the list goes to a run that failed, one where a guardrail tripped, one where the agent stopped to ask a person, one that used a tool few other runs used, and one that made far more tool calls than usual.
Each suggestion comes with starting scorers: a tool_call check for the tools the run used, and an llm_judge rubric that quotes the answer the run gave. They are a starting point. A run that went wrong would teach the suite the wrong answer, so read each one and fix its scorers before you add it. In the dashboard, open a suite and click Suggest from runs, then Review on a suggestion to edit and add it. From the CLI:
Over the API, GET /v1/evals/suites/{ref}/suggestions (?limit=, ?days=, and ?agent= for a workspace-wide suite). Nothing is saved until you add a case with POST /v1/evals/suites/{ref}/cases.

Reading the leaderboard

  • score - mean case score, 0.0-1.0. - means nothing has been scored yet, which is not the same as scoring zero.
  • n / failed - cells completed, and cells that errored.
  • latency / cost - from the same run metering the rest of the platform uses, so they are directly comparable with production traffic.
Aggregates are computed on read, so a half-finished experiment reports on the cells that have landed. You can watch the ranking form. Every cell links to its run trace, so a bad score drills straight into the tool calls that produced it.

Cost control

A 5-model x 20-case comparison is 100 real agent runs. Three things bound it:
  • budget_usd - once spend on the experiment passes it, the remaining cells are skipped, the experiment completes, and the reason is recorded on it.
  • Run quota - eval runs are billable runs and are checked against your plan before any cell is created.
  • Cancel - drops pending cells. Cells already mid-run are allowed to finish rather than being orphaned, so cancelling is not an instant stop.
Transient provider failures (429s, timeouts) are retried with backoff up to three attempts. A cell that keeps failing is recorded as an error rather than retried forever.

Where eval runs go

Eval runs are written to runs with source = "eval" so they reuse the normal trace viewer, and they are excluded from AI Monitoring and cruqai runs by default. One comparison can add hundreds of rows, and burying real traffic under them would make monitoring useless.

CLI reference

With --watch, cruqai evals run polls until the comparison finishes and exits non-zero if any cell errored - enough to gate a CI step on a comparison that broke.