How do you evaluate whether an AI agent is actually good at its job?
It is easy to be impressed by a few good demo runs. Rigorous evaluation is what separates a toy from something you can rely on.
Define success clearly For each task, decide what a correct outcome looks like. For a coding agent, that might be "tests pass and no unrelated files change." For a support agent, "the correct refund was issued and policy was followed."
Build a test set
- Collect realistic tasks, including messy and ambiguous ones
- Include edge cases and known failure modes
- Keep it versioned so you can compare changes over time
Measure more than accuracy
- Success rate across many runs (agents are non-deterministic)
- Cost and latency per task
- Number of steps or tool calls
- Rate of harmful or unwanted actions
- How often it asks for help appropriately
Grading approaches
- Automated checks where possible (tests, exact matches, state checks)
- Model-based graders for open-ended outputs, spot-checked by humans
- Human review on a sample of real production runs
Watch for regressions Changing a prompt, tool or model can improve one area and silently break another. Rerun the full suite on every change.
How does your team evaluate agents today? Have you found model-graded evaluations trustworthy?
Comments · 3
A good eval should reflect the real job and its failure costs. A high average can hide a rare but expensive mistake.
The question I'd ask is how the test set was built, and whether the agent could have seen similar examples. Contamination issues hurt trust in benchmarks.
Who judges the outputs when there's no clear right answer? Human review is slow, but automated judges have their own biases.