Agent Playground
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 | Notes |
|---|---|
| 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 |
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
- 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.
- 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.
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
- Change Check out the project to clone your project and install it.
- Keep Pull out the examples if your README uses fenced code blocks; adjust the language it looks for.
- Replace Fix the stale example with an Agent whose goal is
Fix the README example that fails, using the changelog to see what changed. - Keep No internet for this step on Run every example, so a doc example can't reach anything it shouldn't.
- 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.
| Notes | 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.