---
title: Recipe: Eval harness · Agent Playground docs
description: Scores three prompt variants against a fixed test set in parallel copies, and keeps the one that scores best. What it does, when to use it, how to make it yours, and what a run costs.
url: https://www.quietrobot.ai/docs/playground/recipes/eval-harness
---

# Recipe: Eval harness

Scores three prompt variants against a fixed test set in parallel copies, and keeps the one that scores best. What it does, when to use it, how to make it yours, and what a run costs.

Scores three versions of a prompt against the same test questions, side by side, and keeps the one that scores best. Use it to choose between prompts by their results, not by feel.

| At a glance | |
|---|---|
| **Category** | Evals |
| **Shape** | Parallel lanes, best score wins |
| **Plan** | Pay as you go (runs 4 sandboxes at once) |
| **Needs a Claude key** | No |
| **Limits it comes with** | 1 loop, 180 seconds, $0.05 |

```flow
{"title": "Eval harness, as it is on the canvas.", "nodes": [["setup", "run", "Load test set"], ["fork", "fork", "Fork ×3", "lanes T, S, E"], ["terse", "run", "Terse prompt", "Lane T"], ["stepwise", "run", "Step by step", "Lane S"], ["examples", "run", "With examples", "Lane E"], ["judge", "judge", "Best score", "highest score"], ["report", "run", "Report"]], "edges": [["setup", "fork"], ["fork", "terse"], ["fork", "stepwise"], ["fork", "examples"], ["terse", "judge"], ["stepwise", "judge"], ["examples", "judge"], ["judge", "report", "Passed"]]}
```

<figure class="shot">
  <img class="art-light" src="/docs/playground/recipes/eval-harness-light.webp" alt="The Eval harness recipe in the builder after a run, with each step's result on the canvas and the run's steps listed on the right." width="1440" height="900" loading="lazy">
  <img class="art-dark" src="/docs/playground/recipes/eval-harness-dark.webp" alt="" width="1440" height="900" loading="lazy">
  <figcaption>A real run of the recipe. The panel on the right lists every step with what it printed.</figcaption>
</figure>

## When to use it

* You're writing prompts for an AI step and want to know which one really answers best.
* Checking that a prompt change didn't make answers worse.
* Any comparison by score: accuracy, quality ratings, percentage of right answers.

## Run it

1. Open **Agent Playground** in the dashboard and find **Eval harness** under **Start from a recipe**. In the builder, **Recipes** in the toolbar lists them too.
2. Choose **Use this recipe**. It becomes a flow of your own, so changing it never changes the recipe.
3. Choose **Simulate** to see the forecast, then **Run**.

**What you'll see:** "With examples" gets all six questions right and wins. The other two each miss at least one, and **Report** names the winning prompt.

## Make it yours

1. Put your own questions and known answers in **Load test set**.
2. Replace each lane with an **Ask AI** step that answers the questions with one prompt, then a **Run code** step that scores the answers and prints `{"score": ...}`.
3. Run it again after every prompt change, and use [Compare](https://www.quietrobot.ai/docs/playground/runs#compare-two-runs) to see which answers changed.

> [!NOTE]
> This recipe runs four sandboxes at once (the main one and three lanes), so it needs **Pay as you go**. Free runs up to three. With AI steps in the lanes, each run also uses your Claude key three times over.

## What a run costs

These are the builder's own forecast for the recipe as it comes, with its limits, rounded. **Simulate** shows the same numbers for your version, and they change as you change the flow.

| | Typical | 1 in 10 runs | At most |
|---|---|---|---|
| **Sandbox time** | $0.0003 | $0.0004 | $0.0091 |
| **How long it takes** | 12 seconds | 13 seconds | 180 seconds |

A typical run uses $0.0003 of sandbox time, so about 3,000 runs cost $1, and every plan includes $5 of usage a month. That includes all 4 sandboxes: the main one and each lane. **At most** is the most a run could cost with these limits: it stops at $0.05 or 180 seconds, whichever comes first.

## Related

* [Tutorial 4: Try several ideas at once](https://www.quietrobot.ai/docs/playground/tutorials/lanes)
* [Try 3, keep the best](https://www.quietrobot.ai/docs/playground/recipes/try-three)
* [Data and evals recipes](https://www.quietrobot.ai/docs/playground/recipes/data-and-evals)
* [All recipes](https://www.quietrobot.ai/docs/playground/recipes)
