---
title: "Agents are users, so your software needs evals"
description: "Agents act as users of APIs, CLIs, MCP servers and SDKs, so measuring whether they complete tasks correctly requires evals: tests run many times and scored."
url: "https://swe.quest/articles/agents-are-users-so-your-software-needs-evals-ae7971006fec5a38"
canonical: "https://vercel.com/blog/agent-evals"
source: "Vercel"
published: "2026-11-16"
difficulty: "medium"
kind: "How-to"
reading_minutes: 19
tags: ["evals","ai-agents","testing","llms"]
---

# Agents are users, so your software needs evals

A post on [Vercel](https://swe.quest/sources/vercel.md), published 2026-11-16, 19 min read, How-to. Original: [https://vercel.com/blog/agent-evals](https://vercel.com/blog/agent-evals)

## Summary

Agents act as users of APIs, CLIs, MCP servers and SDKs, so measuring whether they complete tasks correctly requires evals: tests run many times and scored. An agentic testing pyramid groups checks by LLM call count (deterministic tests, one-turn evals, E2E evals), and a worked example builds an end-to-end eval for a hypothetical coffee-ordering CLI using Harbor, covering goal setting, task design with seeded environments, frozen clocks and per-constraint verifiers, and guarding against reward hacking. Metric choice should follow failure cost: a 60% success rate yields 99% pass@5 but only 8% pass^5, so products where users get no retry should optimize for pass^k, while coding agents with test feedback can lead with pass@k.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- LLM agents and tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- Docker containers ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- software testing basics ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))

## Keywords

Harbor, Terminal-Bench, SWE-bench, pass@k, pass^k, Claude Code, Codex, AI Gateway

## Related posts

- [Demystifying evals for AI agents](https://swe.quest/articles/demystifying-evals-for-ai-agents-fa56ac3233812721.md): Anthropic Engineering · 2026-01-09 · Medium · 26 min read · Evaluation, AI agents, LLMs, Testing
  Agent evaluations should grade both the final environment outcome and the full transcript of tool calls, turns and reasoning, because multi-turn agents modify state and compound mistakes.
- [The Most Common Questions About Agent Evals, Answered](https://swe.quest/articles/the-most-common-questions-about-agent-evals-answered-40ebbb294f8cf253.md): LangChain · 2026-10-15 · Medium · 15 min read · Evaluation, AI agents, Observability, LLMs
  Agent evals score agent runs to handle nondeterminism, multiple valid answers and variable execution paths: start by reading traces, pick one behavior, build a 10-20 example dataset from real traces, run a baseline experiment, and fold new failures back in.
- [How to build and maintain an agentic evaluation](https://swe.quest/articles/how-to-build-and-maintain-an-agentic-evaluation-c4d1ca50835658f2.md): Hugging Face · 2026-11-23 · Medium · 35 min read · Evaluation, AI agents, LLMs, Open source
  Agentic evaluations depend on far more than the model: task instructions, agent harness, environment, verifier and traces can each move a score, with harness changes alone shifting Terminal-Bench accuracy by up to 29.9 points.
- [What Is Eval-Driven Development? How to Improve AI Agents](https://swe.quest/articles/what-is-eval-driven-development-how-to-improve-ai-agents-b74ea0bdd23f7298.md): LangChain · 2026-11-12 · Medium · 11 min read · Evaluation, AI agents, Testing, LLMs
  Eval-driven development adapts test-driven development to non-deterministic agents: write a pass/fail spec for one behavior, build a dataset and evaluator before implementing, run a baseline, then hill-climb by comparing experiments per example.
- [Inside DigitalOcean Simulations: how user simulation, execution, and validation work](https://swe.quest/articles/inside-digitalocean-simulations-how-user-simulation-execution-and-validation-f1c7f6f7ce54de3d.md): DigitalOcean · 2026-10-29 · Medium · 16 min read · Evaluation, AI agents, LLMs
  DigitalOcean Simulations evaluates agents over whole multi-turn conversations instead of single responses.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
