---
title: Recipe: Keep the README honest · Agent Playground docs
description: Runs every example in a README with the network off, fixes the ones that no longer work, and runs them all again. 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/readme-check
---

# Recipe: Keep the README honest

Runs every example in a README with the network off, fixes the ones that no longer work, and runs them all again. What it does, when to use it, how to make it yours, and what a run costs.

Runs every example in a README with the internet off, fixes the ones that no longer work, and runs them all again until every example works. Then it writes the changes as a patch.

| At a glance | |
|---|---|
| **Category** | Coding |
| **Shape** | A loop with the internet off |
| **Plan** | Free and up |
| **Needs a Claude key** | No |
| **Limits it comes with** | 4 loops, 180 seconds, $0.05 |

```flow
{"title": "Keep the README honest, as it is on the canvas.", "nodes": [["setup", "run", "Check out the project", "go back here"], ["extract", "code", "Pull out the examples"], ["run", "run", "Run every example", "no internet"], ["fix", "code", "Fix the stale example"], ["patch", "code", "Write the patch"]], "edges": [["setup", "extract"], ["extract", "run"], ["run", "fix", "Failed"], ["fix", "extract"], ["run", "patch", "Passed"]]}
```

<figure class="shot">
  <img class="art-light" src="/docs/playground/recipes/readme-check-light.webp" alt="The Keep the README honest 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/readme-check-dark.webp" alt="" width="1440" height="900" loading="lazy">
  <figcaption>A real run of the recipe. The panel on the right lists every step with what it printed.</figcaption>
</figure>

## When to use it

* Your docs or README have code examples that quietly go stale as the code changes.
* Any file of instructions where each item can be checked by running it.
* A nightly or weekly check that keeps documentation honest.

## Run it

1. Open **Agent Playground** in the dashboard and find **Keep the README honest** 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:** The first pass finds two examples that use option names the changelog says were renamed in version 2.0. Each loop fixes one and runs every example again, and the run ends with a patch for the README. Nothing is pushed.

## Make it yours

1. Change **Check out the project** to clone your project and install it.
2. Keep **Pull out the examples** if your README uses fenced code blocks; adjust the language it looks for.
3. Replace **Fix the stale example** with an **Agent** whose goal is `Fix the README example that fails, using the changelog to see what changed`.
4. Keep **No internet for this step** on **Run every example**, so a doc example can't reach anything it shouldn't.
5. Add an approval and a step that opens a pull request with the patch.

## 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.0002 | $0.0003 | $0.0023 |
| **How long it takes** | 16 seconds | 24 seconds | 180 seconds |

A typical run uses $0.0002 of sandbox time, so about 5,100 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.

## Related

* [Tutorial 3: Keep trying until it works](https://www.quietrobot.ai/docs/playground/tutorials/loops)
* [Fix until tests pass](https://www.quietrobot.ai/docs/playground/recipes/fix-until-pass)
* [Coding recipes](https://www.quietrobot.ai/docs/playground/recipes/coding)
* [All recipes](https://www.quietrobot.ai/docs/playground/recipes)
