Hugging Face guide shows how to build an agentic eval step by step

Hugging Face has published a guide to building and maintaining agentic evaluations. Its argument is that open source can produce stronger, more frequently updated and more comparable evaluations, because existing tasks, environments and tools let builders spend their effort on domain expertise and validation. Sharing how an evaluation was built, including what went wrong, lets others find errors, improve it and reuse it. Hugging Face says it hosts around 3500 eval leaderboards and has seen about 16X growth in eval datasets on the hub over the past year, to about 17000 datasets. It has also added support for traces, benchmarks and environments as agentic abstractions.
The guide has four parts: three eras of evaluation, the steps of an agentic evaluation, what to do when a benchmark is wrong, and what to open strategically. The first era is question answering (MMLU from 2020, GPQA from 2023). The second is agentic benchmarks such as SWE-bench and WebArena, which check what an agent changed in an environment. The third is teams or swarms of agents, which the guide leaves out of scope. It focuses on agentic evaluations because they are increasingly prominent in model release announcements, and because once an agent uses tools, every part of the surrounding software can move the score. As an example, in an audit of Terminal-Bench, researchers kept the model fixed and changed the agent harness, and accuracy varied by up to 29.9 percentage points.
The guide breaks an agentic evaluation into parts. A task gives the instruction. The agent harness wraps the model and its tools in a pinned environment. In one rollout the agent attempts the task from start to finish. The evaluation harness runs several rollouts per task, a verifier grades the final state of the environment, and each rollout leaves a trace. Traces and scores together form the published evidence.
On why release decisions matter, the guide says demand for independent evaluation is growing, yet 98.2% of model-benchmark scores are reported by only one party. More benchmarks hold back test items to reduce contamination. Artificial Analysis says 60% of its Intelligence Index v5, announced in October 2026, rests on evaluations with private test sets or held-out answers. Google DeepMind recently piloted double-blind evaluations, where a secure enclave hides an outside evaluator's test prompts from the model provider and the model's weights from the evaluator. The authors accept that this can reduce contamination, but say privacy alone does not guarantee quality and withholding supporting materials can make expert review harder. They argue builders can and should still share infrastructure, grading methods and evidence about task design, including through controlled review where public release is unsuitable.
The core of the piece is a worked example: an agent that fits peaks in a Raman spectrum of graphene for a physics lab. The eight steps are: define the claim, find a task, run it unchanged, adapt it, check the evaluation, read the traces, report the score, and compare models. The claim is deliberately narrow: fit the specified peaks, calculate the requested D-to-G ratio (the defect ratio) and save accurate results consistently.
The team reused the Harbor task format (an open source evaluation harness) and the raman-fitting task from Terminal-Bench. The reference solution passed. They then ran the original task three times with Terminus-2, a terminal agent harness, and gpt-oss-120b, an open-weight model from OpenAI. Harbor ran inside an HF Job, each rollout had its own HF Sandbox, and Inference Providers supplied the model responses.
They then built raman-lab: eight synthetic spectra with known parameters and varied noise and defect levels. It fits three peaks instead of two and reports a defect ratio. An agent helped generate the spectra, which were reviewed by hand, and the team wrote new instructions, reference fits and output checks. The new instructions state the units and parameter definitions the original left implicit. The eight tasks are a development set, and broader coverage should follow the variation in real measurements.
Before running more models, they tested the evaluation itself with the reference solution, an agent that does nothing, and a shortcut. The reference should pass every task and the other two should fail. The shortcut read the tallest point of each peak straight from the data, guessed the widths and divided the D height by the G height. It returned the expected defect ratio on all eight tasks without fitting anything, so a grader that checked only the ratio would have given it full marks. The authors added checks on each fitted peak, and the final verifier rejects the shortcut.
Results for gpt-oss-120b: on the original task it passed 0 of 3 rollouts. In two it declared completion before observing relevant output. In the third it could not read the data file, which uses decimal commas that the reference solution converts before loading. The score alone could not tell these failures from an incorrect fit; the traces could. On the eight adapted tasks, with three rollouts each, it passed 11 of 24 rollouts. In 19 rollouts the model called mark_task_complete in its first response, and 11 of those attempts produced no results file. Several began with a script failing because NumPy or SciPy was missing, which the task expects the agent to install. Most of the 13 failures therefore came from stopping early or a missing package, and only two failed the fit check. Pass@3 was 7/8 (seven tasks succeeded at least once) and pass^3 was 1/8 (one task succeeded every time). The authors note that retries may be acceptable when a person reviews the output, while unattended processing needs consistency, so pass^3 matters more. The text of the guide available here breaks off while introducing the mean pass rate.
Key facts
- Hugging Face's guide follows one task through eight steps, from defining the claim to comparing models, by adapting Terminal-Bench's raman-fitting task into raman-lab: eight synthetic Raman spectra, fitting three peaks instead of two.
- A shortcut script that read peak heights and guessed widths returned the expected defect ratio on all eight tasks, so a ratio-only grader would have passed it; the authors added per-peak checks and the final verifier rejects it.
- With Terminus-2 and gpt-oss-120b, the original task passed 0 of 3 rollouts and the adapted setup passed 11 of 24. In 19 rollouts the model called mark_task_complete in its first response, and 11 of those produced no results file.
- Of the 13 failed adapted rollouts, only two failed the fit check; most came from stopping early or a missing package. Pass@3 was 7/8 and pass^3 was 1/8.
- The guide cites an audit of Terminal-Bench where changing only the agent harness moved accuracy by up to 29.9 percentage points, and says 98.2% of model-benchmark scores are reported by only one party.
Why it matters
Agentic benchmarks increasingly headline model release announcements, and the guide shows how many moving parts sit between a model and its score. In an audit of Terminal-Bench, keeping the model fixed and changing the agent harness moved accuracy by up to 29.9 percentage points. The guide also frames a policy-level gap: it says 98.2% of model-benchmark scores are reported by only one party, while more benchmarks keep test items private to limit contamination. Its answer is that builders should still share infrastructure, grading methods and evidence about task design.
Who it affects
Teams that build evaluations for a specific domain, such as the physics-lab example here, and anyone who relies on agentic benchmark scores to choose or trust a system. It also bears on benchmark maintainers deciding what to open and what to keep private, and on the independent evaluators, enterprises, policymakers and researchers the guide says want evaluations they can verify.
How to use it
The guide's recipe is reusable. Start from an open task and task format (here Harbor and Terminal-Bench) instead of building from scratch. Write a narrow claim. Run the reference solution first, then run the original task unchanged to get a baseline. Before running any models, test the evaluation with the reference solution, an agent that does nothing, and a cheating shortcut; the reference should pass every task and the other two should fail. Read the traces, not just the scores. Report both pass@3 and pass^3, and treat pass^3 as the one that matters for unattended use. The runs in the guide used Terminus-2 with gpt-oss-120b, Harbor in an HF Job, one HF Sandbox per rollout and Inference Providers for model responses. The visible text does not say that the raman-lab tasks are released or where they can be downloaded.
How solid is it
This is a methodology guide from Hugging Face, backed by one worked example rather than a new benchmark result. The numbers come from a small development set: eight tasks, three rollouts each, a single model (gpt-oss-120b) in the figures covered here. The guide says the eight tasks are a development set and broader coverage should follow the variation in real measurements. The 29.9-point and 98.2% figures are cited as context, and the visible text does not say which Terminal-Bench audit produced the first or where the second comes from. The text is truncated mid-sentence ('The mean pass rate'), so results for the other five models, the later sections and the appendix are not covered here.
Risks and caveats
The authors themselves caution that privacy alone does not guarantee quality, and that withholding materials makes expert review harder; they also grant that private test sets can reduce contamination. Their strongest recommendation is an argument, not a measured result. In the worked example, a ratio-only grader was fooled by a simple script, and a bare pass or fail score could not distinguish an incorrect fit from early stopping or a missing package. Pass@3 of 7/8 against pass^3 of 1/8 shows how far a lenient reading of the same runs can sit from a strict one. Team and swarm evaluations are explicitly left outside the guide's scope.
“The score alone could not tell these failures from an incorrect fit. The traces could.”
— Hugging Face, How to build and maintain an agentic evaluation