OneLongTail

Courses · Course 2 of 7

Evals-Driven Development for Agents

Build an eval suite from real failures: error analysis, binary graders, a judge aligned with humans, capability and regression sets, and a CI gate.

10 traces, one binary graderpass rate 7 of 10 pass3 failures to read
An illustration of the course’s subject, not a recording.
22lessons
5modules
22open now

Who it is for

Builders and PMs shipping an agent or LLM feature who cannot say whether a change made it better or worse.

Each lesson is a short simulation: you read what an agent did, a config or a tool output, make one decision and see at once whether it holds. Real terms, real commands, sourced from primary documentation.

5 modules

  1. Error analysis first3 lessons
  2. Graders4 lessons
  3. Datasets4 lessons
  4. Evaluating agents6 lessons
  5. Evals in the workflow5 lessons

Modules · 22 of 22 lessons open, the rest are being built

01Error analysis first3 lessons · 3 open
  1. 01Read traces before you write metricsOpenSample about 100 traces, annotate the first 30 yourself, write free-text notes, and stop at saturation.
  2. 02From notes to a failure taxonomyOpenGroup notes into a few failure modes and count them to pick what to fix first.
  3. 03Success criteria before you lookOpenWrite the outcome, hard rules and pass bar before reading outputs; let the detailed rubric come from error analysis.
02Graders4 lessons · 4 open
  1. 04Code, model or human graderOpenPick the cheapest grader that can actually tell pass from fail for each criterion.
  2. 05Binary pass/fail beats 1-5 scoresOpenTurn a vague Likert score into a binary judgment people agree on.
  3. 06Aligning an LLM judge with humansOpenMeasure judge-human agreement on labelled cases and fix the judge prompt until it matches.
  4. 07Read the transcripts behind the gradesOpenCatch unfair or broken graders by reading transcripts of many trials.
03Datasets4 lessons · 4 open
  1. 0820-50 tasks from real failuresOpenStart the suite small from real failures instead of waiting for a big benchmark.
  2. 09Synthetic data without fooling yourselfOpenGenerate varied cases along explicit dimensions and check they look like real traffic.
  3. 10Held-out setsOpenKeep cases the prompt was never tuned on.
  4. 11Benchmarks vs your own evalOpenExplain why a public leaderboard does not predict your task.
04Evaluating agents6 lessons · 6 open
  1. 12Capability evals vs regression evalsOpenKeep a hard set that starts low and a regression set that must stay near 100%.
  2. 13Same job, different endingOpenMeasure a loop over k runs, then choose pass@k or pass^k by what the job needs: pass@k when one good run out of k is enough, pass^k when every run acts on its own. Also in Loop Engineering.
  3. 14Right answer, wrong pathOpenRead and grade the trajectory, not just the final state: right tools, right order, no forbidden or wasteful actions on the way to a correct result. Also in Loop Engineering.
  4. 15Evaluating tools with agentsOpenRun realistic tasks against a toolset and let an agent read the transcripts and propose fixes.
  5. 16Evaluating retrievalOpenSeparate retrieval failures from generation failures in a RAG system.
  6. 17Eval saturationOpenRecognise when a suite is maxed out and add harder tasks.
05Evals in the workflow5 lessons · 5 open
  1. 18Evals in CIOpenGate merges on the regression suite and keep it fast enough to run every change.
  2. 19Online evals and production monitoringOpenSample live traffic for grading and alert on drops.
  3. 20Guardrails are not evaluatorsOpenSeparate a runtime block from an offline quality measure.
  4. 21Safety and adversarial evalsOpenAdd prompt-injection and misuse cases to the suite.
  5. 22Capstone: an eval suite for a real agentOpenFrom 50 traces to a CI-gated suite with an aligned judge.

Built on primary sources