quiet robot

Agent Playground

Recipe: Dependency upgrade bot

Tries three upgrade plans in separate copies, keeps the boldest one whose tests still pass, and asks a person before the pull request. What it does, when to use it, how to make it yours, and what a run costs.

View as Markdown

Tries three upgrade plans at the same time, each in its own copy of the project: patches only, patches and minor versions, and everything to the latest. It keeps the boldest plan whose tests still pass, then asks a person before opening a pull request.

At a glanceNotes
CategoryCoding
ShapeParallel lanes, then a person
PlanPay as you go (runs 4 sandboxes at once)
Needs a Claude keyNo
Limits it comes with1 loop, 900 seconds, $0.05
Dependency upgrade bot, as it is on the canvas.Check out the app (Run command), List what's out of date (Run command), Fork ×3 (Try in parallel), Patches only (Run command), Patches and minors (Run command), Everything to latest (Run command), Most upgrades, tests pass (Keep the best), Open the pull request? (Approval), Draft the pull request (Run code), Not opened (Output). Arrows: Check out the app to List what's out of date; List what's out of date to Fork ×3; Fork ×3 to Patches only; Fork ×3 to Patches and minors; Fork ×3 to Everything to latest; Patches only to Most upgrades, tests pass; Patches and minors to Most upgrades, tests pass; Everything to latest to Most upgrades, tests pass; Most upgrades, tests pass to Open the pull request? on Passed; Open the pull request? to Draft the pull request on Approved; Open the pull request? to Not opened on Denied.PassedApprovedDenied>_ RUN COMMANDCheck out the app>_ RUN COMMANDList what's out of dateno internet⑂ TRY IN PARALLELFork ×3lanes Patch, Minor, Latest>_ RUN COMMANDPatches onlyLane Patch · no internet>_ RUN COMMANDPatches and minorsLane Minor · no internet>_ RUN COMMANDEverything to latestLane Latest · no internet★ KEEP THE BESTMost upgrades, tests passhighest upgraded✋ APPROVALOpen the pull request?{ } RUN CODEDraft the pull request⚑ OUTPUTNot opened
Dependency upgrade bot, as it is on the canvas.
The Dependency upgrade bot 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, waiting at the approval for a person.

When to use it

  • Keeping a project's libraries up to date without breaking it.
  • Any choice between a careful option and a bold one, where you'd rather try both than guess.
  • A weekly schedule that does the upgrade homework, so a person only reviews the result.

Run it

  1. Open Agent Playground in the dashboard and find Dependency upgrade bot 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: List what's out of date finds three upgrades. In the lanes, Everything to latest breaks the tests (a library changed in a major version) and drops out. Patches and minors upgrades more than Patches only, so it wins and becomes the main sandbox. The run then waits at Open the pull request?.

Make it yours

  1. Change Check out the app to clone your project and install it.
  2. In each lane, use your package manager's commands, such as npm update for patches and minors or npm install pkg@latest for the latest, then your test command, then print {"upgraded": N} with the number of libraries it upgraded.
  3. Keep Most upgrades, tests pass as it is: highest upgraded wins, and a lane whose tests failed can't win.
  4. Make Draft the pull request open a real pull request with a token saved under Policies → Secrets, and keep the approval before it.
  5. Add a weekly Schedule trigger so it runs by itself.

Note

Each lane is its own sandbox, so this recipe runs four at once: the main one and three lanes. Free runs up to three, so it needs Pay as you go.

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.0018$0.0025$0.06
How long it takesabout 2 minutesabout 3 minutes900 seconds

A typical run uses $0.0018 of sandbox time, so about 540 runs cost $1, and every plan includes $5 of usage a month. That includes all 4 sandboxes: the main one and each lane. 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.

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