CLI

Evals

List the team's evals, explain one step by step with its options and outcomes, read verdicts by eval or by run, see every step a verdict took, mark verdicts right or wrong, and work through the review queue.

An EVAL argument is the eval's name (exact, then case-insensitive) or its id.

The evals

trodo evals list --table
trodo evals list --json     # each eval with its steps: [{id, name, fields: [{name, type, values?}]}]
trodo evals get "Refund policy"     # its versions, the production graph and 30-day stats
trodo evals steps "Refund policy" --since 30d --table

evals steps shows the paths verdicts took through the eval's steps, each with how many units took it and how they came out, so you see which step decides most failures. evals verdict shows one verdict's walk.

The names and STEP.FIELD pairs evals list shows are what --eval takes.

Understand one

trodo evals explain "Conversation went well" --table
trodo evals explain "Conversation went well"          # the same as JSON, with each Python step's code

explain lays the eval out as a coding agent needs it before it writes a filter:

  • What it checks, its target, agent and production version, and the last 30 days: verdicts, passed, failed, pass rate, average score.
  • Each step in order: what it runs (Python, a decision model, an LLM judge), what it reads, the question it asks with its levels or options (or its prompt, or its code), the answers it gives with their options and ranges, and where each answer leads.
  • The outcomes: pass or fail, and their reason codes.
  • Filters that work as written, ready to paste.

A decision-model question with levels (no / partly / yes) answers a weighted score: each level times its probability, so 1.8 is mostly "yes". Filter it with a threshold such as How it went.goal_met<1.5, not <2.

evals get returns the raw definition: every node with its full config, the versions, and the stats by day.

Verdicts

trodo evals verdicts "Refund policy" --failed --since 7d --table
trodo evals verdicts --run RUN_ID --table          # every eval's verdict on one run
trodo evals verdicts --span SPAN_ID
trodo evals verdicts --conversation CONVERSATION_ID
trodo evals verdict VERDICT_ID                     # every step it took, with each step's answer and why

verdicts EVAL takes --failed or --passed, --since in days or hours (7d, 48h), --version N, --limit and --offset.

Mark a verdict right or wrong

trodo evals mark VERDICT_ID --right
trodo evals mark VERDICT_ID --wrong --should pass --reason "the refund was inside the 30-day window"

A thumbs-down says what the verdict should have been and why. It is the same correction as the thumbs on the verdict page: it counts in --eval "NAME:marked-wrong", flips that verdict in "passed" exports, becomes the Expected of a verdict row, and feeds the eval's improvement.

Review queue

An eval with a human step stops there until a person answers it.

trodo evals queue --table                  # waiting items, oldest first (--eval EVAL for one eval, --graded for answered ones)
trodo evals review ITEM_ID                 # the item, the path the eval took to it, and the answers it takes
trodo evals grade ITEM_ID 4                # answer it; the eval carries on from there

An answer the step does not take is refused with what it does take.

Edit an eval as files

trodo evals pull "Escalation is justified"               # → evals/escalation-is-justified/ (--dir DIR, --version N)
#   eval.json            the steps, routes and settings
#   steps/screen.py      each Python step
#   prompts/judge.md     each judge prompt (judge.system.md, jev.state.md)
trodo evals test evals/escalation-is-justified --sample 3 # validate, then run it on 3 recent runs
trodo evals push evals/escalation-is-justified --note "judge reads the last 3 tool calls"
trodo evals promote "Escalation is justified" 2           # version 2 scores live traffic from now on

Edit the files with your own tools. In eval.json a moved text is {"$file": "steps/screen.py"}.

  • test checks the files on the server with the same validator as the editor, then runs them on real units without recording anything, like the editor's Test. --run, --span or --conversation picks the unit; --validate-only stops after the check. A judge or decision model step calls its model and costs what that call costs. Exit 1 when it does not validate or a step errors.
  • push needs --note saying what changed and why. It writes the next version, or a new eval when eval.json has no lineage_id: switched off, unless you add --enable. It refuses anything that does not validate. When a pre-write check fails it stops and names the check; push again with --acknowledge CHECK once you have read why. A pushed version does not run until it is promoted.
  • promote moves the production label. Every version stays, so promoting an older one goes back.

Evals always run on Trodo, never on your machine.

On this page