Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Vercel 19 min read How-to mediumAdept

Agents are users, so your software needs evals

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.

Related posts

  • Demystifying evals for AI agents

    Anthropic Engineering mediumAdept

    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 post lays out a practical structure—tasks, trials, graders, harnesses and suites—with code-based graders for deterministic checks, model-based graders for nuanced rubrics and human graders for calibration. It recommends capability evals that start at low pass rates and regression evals that stay near 100%, and shows coding and conversational agent examples that combine unit tests, state checks, LLM rubrics and tool-call assertions. The takeaway is to build an eval suite early: it clarifies success criteria, enables fast model upgrades and provides baselines for latency, token usage, cost and error rates.

  • The Most Common Questions About Agent Evals, Answered

    LangChain mediumAdept

    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. Offline evals compare versions against datasets before shipping, while online evals score sampled production traces without reference outputs. Use code evaluators where possible, LLM judges with narrow binary questions calibrated against human review, and pairwise comparison for choosing variants. Container-based benchmarks like Terminal-Bench (run via the open-source Harbor harness) score the end state of an environment for long multi-step tasks, and online costs can be controlled through sampling, filters, code checks and cheaper judge models.

  • How to build and maintain an agentic evaluation

    Hugging Face mediumAdept

    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. A worked example adapts Terminal-Bench's raman-fitting task into an eight-task physics benchmark using Harbor. Testing the grader with a do-nothing agent and a shortcut showed a ratio-only verifier could be fooled, and reading traces showed gpt-oss-120b mostly failed by declaring completion early rather than by fitting badly. The authors recommend reporting pass^k alongside pass@k, pinning inference providers, validating graders against shortcuts, and publishing tasks, graders and traces so outside reviewers can find and correct benchmark errors.

  • What Is Eval-Driven Development? How to Improve AI Agents

    LangChain mediumAdept

    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. A worked example adds a create_ticket tool to an internal docs agent. The average score improves, but a how-to VPN question regresses, and a trace shows the cause is an overly broad tool description. Practical advice includes using code evals for deterministic checks and LLM judges otherwise, keeping a held-out set to detect overfitting, running fast checks in CI and slower judges nightly, and turning production failures into new dataset examples.

  • Inside DigitalOcean Simulations: how user simulation, execution, and validation work

    DigitalOcean mediumAdept

    DigitalOcean Simulations evaluates agents over whole multi-turn conversations instead of single responses. A model-driven user simulator acts out a JSONL scenario (description, persona, stopping criteria, max turns) against the agent running in a real Harness Runtime sandbox with live tool calls, and an LLM judge then scores the full trajectory of messages and tool calls. A worked Python 3.11 upgrade example shows how multiple episodes per scenario, stopping criteria, and metrics like Knowledge Retention and Tool Use Accuracy tell instruction, tool-use, reasoning and retention failures apart. The post closes with a doctl walkthrough comparing a baseline agent against an improved candidate.

The quest for software engineering knowledge.

Look:
Layout: