---
title: Recipe: Fix, review, ship · Agent Playground docs
description: 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.
url: https://www.quietrobot.ai/docs/playground/recipes/fix-review-ship
---

# 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 | |
|---|---|
| **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 |

```flow
{"title": "Fix, review, ship, as it is on the canvas.", "nodes": [["setup", "run", "Set up project", "go back here"], ["test", "run", "Run tests"], ["fix", "code", "Write a fix"], ["approve", "approval", "Ship it?"], ["ship", "run", "Package"], ["held", "end", "Not shipped"]], "edges": [["setup", "test"], ["test", "fix", "Failed"], ["fix", "test"], ["test", "approve", "Passed"], ["approve", "ship", "Approved"], ["approve", "held", "Denied"]]}
```

<figure class="shot">
  <img class="art-light" src="/docs/playground/recipes/fix-review-ship-light.webp" alt="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." width="1440" height="900" loading="lazy">
  <img class="art-dark" src="/docs/playground/recipes/fix-review-ship-dark.webp" alt="" width="1440" height="900" loading="lazy">
  <figcaption>A real run of the recipe, waiting at the approval for a person.</figcaption>
</figure>

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

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

## Related

* [Tutorial 2: Ask a person before anything real happens](https://www.quietrobot.ai/docs/playground/tutorials/approvals-and-limits)
* [Fix until tests pass](https://www.quietrobot.ai/docs/playground/recipes/fix-until-pass)
* [Safety recipes](https://www.quietrobot.ai/docs/playground/recipes/safety)
* [All recipes](https://www.quietrobot.ai/docs/playground/recipes)
