Skip to main content
Skip to Content

Replay the decisions recorded runs made against the current model and score its answers, without changing knowledge or verdicts.

Advanced

Most projects never need this page. agent-qa eval replays the decisions your recorded runs made against the model you use now, and scores the answers. Use it to compare models or settings on your own app before you switch.

It measures and never gates. It never changes knowledge, promotion or a run's verdict, and no run starts it. Everything it writes stays in .agent-qa/eval/, which git ignores.

Commands

CommandWhat it doesCalls the model
agent-qa eval extractTurns recorded runs into staged recordings of their decisions. --run <slug> or --product <slug> narrows it.No
agent-qa eval replayAsks the current model again on the staged recordings and scores the answers. --run, --cassette <id> and --product narrow it; --k <n> sets the samples per recording and --seed <n> the sampling seed.Yes
agent-qa eval reportBuilds one report from the staged replays, with the same filters.No

A typical order is to run your tests, then extract, replay and report. Each command takes --json.

npx agent-qa eval extract --product shop
npx agent-qa eval replay --product shop --k 3
npx agent-qa eval report --product shop

Judges

Some comparisons need a second model to decide whether two answers mean the same thing. Name a judge from registry.llms with --judge <name>, or repeat it for a panel of up to three:

npx agent-qa eval replay --judge judge-a --judge judge-b --judge judge-c

Each judge must come from a different model family than the model under test and than each other. --judge-allow-same-family allows a judge from the planner's family, and every score says so. agent-qa never picks a judge for you. A panel decides by strict majority.

What changed

Early v0.2 releases kept an eval corpus in a committed agent-qa-eval/ folder, screened new knowledge with replay checks before promoting it, and read an eval block in the config. These are gone. Knowledge is promoted by the verdict floor or your mark, and a config that still has an eval block is refused with a message saying to pass the flags above instead.