quiet robot

Agent Playground

Recipe: Fix, review, ship

A code step fixes failing tests until they pass, then a person approves before the result is packaged. What it does, when to use it, how to make it yours, and what a run costs.

View as Markdown

Fixes failing tests in a loop, then stops and asks a person before the fix is packaged. The work is automatic; the decision to ship stays with you.

At a glanceNotes
CategorySafety
ShapeA loop, then a person
PlanFree and up
Needs a Claude keyNo
Limits it comes with4 loops, 900 seconds, $0.05
Fix, review, ship, as it is on the canvas.Set up project (Run command), Run tests (Run command), Write a fix (Run code), Ship it? (Approval), Package (Run command), Not shipped (Output). Arrows: Set up project to Run tests; Run tests to Write a fix on Failed; Write a fix to Run tests; Run tests to Ship it? on Passed; Ship it? to Package on Approved; Ship it? to Not shipped on Denied.FailedPassedApprovedDenied>_ RUN COMMANDSet up projectgo back here>_ RUN COMMANDRun tests{ } RUN CODEWrite a fix✋ APPROVALShip it?>_ RUN COMMANDPackage⚑ OUTPUTNot shipped
Fix, review, ship, as it is on the canvas.
The Fix, review, ship 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, waiting at the approval for a person.

When to use it

  • Automatic fixes are fine, but shipping needs a person's OK.
  • Any job that should prepare something on its own and wait for sign-off before it's used: a report before it's sent, a change before it's published.

Run it

  1. Open Agent Playground in the dashboard and find Fix, review, ship 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.
  4. When the run waits for a person, approve or deny it from the banner, from Approvals, or from the approval email.

What you'll see: Two fixes, then the tests pass and the run shows waiting. The Waiting for your OK banner appears, the approval shows under Approvals, and your team gets the approval email. Approve, and the fix is packaged as dist/slugify-fix.tgz. Deny, and the run ends at Not shipped.

Make it yours

  1. Change Set up project and Run tests to your own code and test command.
  2. Replace Write a fix with an Agent that fixes the failing tests.
  3. Replace Package with your real release or deploy command.
  4. Add that command to the flow's Policy under Also hold these commands for a person, so even an agent that tries to deploy early has to wait.
  5. Keep Time long (the recipe uses 900 seconds), because the clock keeps running while the run waits for a person.

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.0017$0.0024$0.01
How long it takesabout 2 minutesabout 3 minutes900 seconds

A typical run uses $0.0017 of sandbox time, so about 600 runs cost $1, and every plan includes $5 of usage a month. The time includes a person taking a minute or two to answer the approval. The clock, and the sandbox, keep running while the run waits. At most is the most a run could cost with these limits: it stops at $0.05 or 900 seconds, whichever comes first.

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