---
title: Recipe: Try 3, keep the best · Agent Playground docs
description: Copies one sandbox into three, tries a different approach in each, and keeps the fastest one that's right. 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/try-three
---

# Recipe: Try 3, keep the best

Copies one sandbox into three, tries a different approach in each, and keeps the fastest one that's right. What it does, when to use it, how to make it yours, and what a run costs.

Copies one sandbox into three lanes, tries a different way of doing the same job in each, and keeps the fastest one that got the right answer. A wrong answer can never win, however fast it is.

| At a glance | |
|---|---|
| **Category** | Evals |
| **Shape** | Parallel lanes, fastest 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": "Try 3, keep the best, as it is on the canvas.", "nodes": [["setup", "run", "Set up"], ["fork", "fork", "Fork ×3", "lanes A, B, C"], ["a", "run", "Insertion sort", "Lane A"], ["b", "run", "Built-in sort", "Lane B"], ["c", "run", "Dedupe + sort", "Lane C"], ["judge", "judge", "Judge", "lowest ms"], ["keep", "run", "Keep winner"]], "edges": [["setup", "fork"], ["fork", "a"], ["fork", "b"], ["fork", "c"], ["a", "judge"], ["b", "judge"], ["c", "judge"], ["judge", "keep", "Passed"]]}
```

<figure class="shot">
  <img class="art-light" src="/docs/playground/recipes/try-three-light.webp" alt="The Try 3, keep the best 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/try-three-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

* Choosing between approaches, tools or settings by measuring them, not guessing.
* Any comparison where speed matters, but only for correct results.
* Learning how lanes and **Keep the best** work.

## Run it

1. Open **Agent Playground** in the dashboard and find **Try 3, keep the best** 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:** Lane C is fast but wrong (it drops the repeated numbers), so it fails and drops out. Lanes A and B are both right, and B is far faster, so **Judge** keeps it and **Keep winner** runs in its sandbox.

## Make it yours

1. Put three approaches in the lanes: three tools, three settings, three prompts to an agent.
2. End each lane by printing a JSON line with the number to compare, like `{"ms": 182}`, and make the lane fail if its answer is wrong.
3. In **Judge**, set **Number to compare** to your number and **Best is** to **Lowest** (for time or cost) or **Highest** (for a score).

> [!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.

## 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.0004 | $0.0004 | $0.0092 |
| **How long it takes** | 13 seconds | 14 seconds | 180 seconds |

A typical run uses $0.0004 of sandbox time, so about 2,700 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)
* [Eval harness](https://www.quietrobot.ai/docs/playground/recipes/eval-harness)
* [Data and evals recipes](https://www.quietrobot.ai/docs/playground/recipes/data-and-evals)
* [All recipes](https://www.quietrobot.ai/docs/playground/recipes)
