quiet robot

Agent Playground

Recipe: Reproduce a bug from an issue

Reads a bug report, writes one small test after another until one fails the way the report says, then drafts the reply. What it does, when to use it, how to make it yours, and what a run costs.

View as Markdown

Reads a bug report, then writes one small test after another until one fails exactly the way the report describes. It drafts a reply with the test that shows the bug, or a question for the reporter if nothing reproduced it.

At a glanceNotes
CategoryCoding
ShapeA loop with two ways out
PlanFree and up
Needs a Claude keyNo
Limits it comes with4 loops, 180 seconds, $0.05
Reproduce a bug from an issue, as it is on the canvas.Check out the code (Run command), Write the next test (Run code), Does the test pass? (Decide), Fails as described? (Decide), Draft the repro comment (Run command), Ask for more detail (Run command). Arrows: Check out the code to Write the next test; Write the next test to Does the test pass?; Write the next test to Ask for more detail on Failed; Does the test pass? to Write the next test on Yes; Does the test pass? to Fails as described? on No; Fails as described? to Draft the repro comment on Yes; Fails as described? to Write the next test on No.FailedYesNoYesNo>_ RUN COMMANDCheck out the code{ } RUN CODEWrite the next test◆ DECIDEDoes the test pass?no internet◆ DECIDEFails as described?>_ RUN COMMANDDraft the repro comment>_ RUN COMMANDAsk for more detail
Reproduce a bug from an issue, as it is on the canvas.
The Reproduce a bug from an issue 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

  • A bug report comes in and someone has to confirm it before anyone fixes it.
  • You want proof of a bug (a failing test) rather than a guess.
  • An agent should try ideas, but only count it as success on the right failure.

Run it

  1. Open Agent Playground in the dashboard and find Reproduce a bug from an issue 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: A couple of tests pass, so the bug didn't show, and the loop tries again. Then one fails with the same wrong total the report describes (19.00 instead of 18.00), Fails as described? says Yes, and the comment is drafted. Nothing is posted.

Make it yours

  1. Feed in a real issue: save it as a file in the first step, or start the flow from a webhook and read it from .qr/trigger.json.
  2. Replace Write the next test with an Agent whose goal is Write one failing test that shows this bug, with the issue added through Insert….
  3. Keep both Decide checks: they stop the agent from claiming success on a different failure.
  4. Have Draft the repro comment post to your issue tracker with a saved token, after an approval if you like.

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.0002$0.0002$0.0023
How long it takes12 seconds17 seconds180 seconds

A typical run uses $0.0002 of sandbox time, so about 6,400 runs cost $1, and every plan includes $5 of usage a month. 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