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.
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 glance | Notes |
|---|---|
| Category | Safety |
| Shape | A loop, then a person |
| Plan | Free and up |
| Needs a Claude key | No |
| Limits it comes with | 4 loops, 900 seconds, $0.05 |
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
- 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.
- Choose Use this recipe. It becomes a flow of your own, so changing it never changes the recipe.
- Choose Simulate to see the forecast, then Run.
- 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
- Change Set up project and Run tests to your own code and test command.
- Replace Write a fix with an Agent that fixes the failing tests.
- Replace Package with your real release or deploy command.
- 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.
- 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.
| Notes | Typical | 1 in 10 runs | At most |
|---|---|---|---|
| Sandbox time | $0.0017 | $0.0024 | $0.01 |
| How long it takes | about 2 minutes | about 3 minutes | 900 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.