quiet robot

Agent Playground

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.

View as Markdown

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 glanceNotes
CategoryEvals
ShapeParallel lanes, best score wins
PlanPay as you go (runs 4 sandboxes at once)
Needs a Claude keyNo
Limits it comes with1 loop, 180 seconds, $0.05
Eval harness, as it is on the canvas.Load test set (Run command), Fork ×3 (Try in parallel), Terse prompt (Run command), Step by step (Run command), With examples (Run command), Best score (Keep the best), Report (Run command). Arrows: Load test set to Fork ×3; Fork ×3 to Terse prompt; Fork ×3 to Step by step; Fork ×3 to With examples; Terse prompt to Best score; Step by step to Best score; With examples to Best score; Best score to Report on Passed.Passed>_ RUN COMMANDLoad test set⑂ TRY IN PARALLELFork ×3lanes T, S, E>_ RUN COMMANDTerse promptLane T>_ RUN COMMANDStep by stepLane S>_ RUN COMMANDWith examplesLane E★ KEEP THE BESTBest scorehighest score>_ RUN COMMANDReport
Eval harness, as it is on the canvas.
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.
A real run of the recipe. The panel on the right lists every step with what it printed.

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

NotesTypical1 in 10 runsAt most
Sandbox time$0.0003$0.0004$0.0091
How long it takes12 seconds13 seconds180 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.

  • Agent PlaygroundQuickstart: build and run your first flow
  • Agent PlaygroundBlocks
  • Agent PlaygroundRecipes
  • SandboxesQuickstart: your first sandbox
  • SandboxesMCP server
  • SandboxesAPI reference