quiet robot

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.

View as Markdown

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 glanceNotes
CategoryCoding
ShapeA loop with the internet off
PlanFree and up
Needs a Claude keyNo
Limits it comes with4 loops, 180 seconds, $0.05
Keep the README honest, as it is on the canvas.Check out the project (Run command), Pull out the examples (Run code), Run every example (Run command), Fix the stale example (Run code), Write the patch (Run code). Arrows: Check out the project to Pull out the examples; Pull out the examples to Run every example; Run every example to Fix the stale example on Failed; Fix the stale example to Pull out the examples; Run every example to Write the patch on Passed.FailedPassed>_ RUN COMMANDCheck out the projectgo back here{ } RUN CODEPull out the examples>_ RUN COMMANDRun every exampleno internet{ } RUN CODEFix the stale example{ } RUN CODEWrite the patch
Keep the README honest, as it is on the canvas.
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.
A real run of the recipe. The panel on the right lists every step with what it printed.

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.

NotesTypical1 in 10 runsAt most
Sandbox time$0.0002$0.0003$0.0023
How long it takes16 seconds24 seconds180 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.

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