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.
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 glance | Notes |
|---|---|
| Category | Coding |
| Shape | Parallel lanes, then a person |
| Plan | Pay as you go (runs 4 sandboxes at once) |
| Needs a Claude key | No |
| Limits it comes with | 1 loop, 900 seconds, $0.05 |
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
- 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.
- 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.
- 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
- Change Check out the app to clone your project and install it.
- In each lane, use your package manager's commands, such as
npm updatefor patches and minors ornpm install pkg@latestfor the latest, then your test command, then print{"upgraded": N}with the number of libraries it upgraded. - Keep Most upgrades, tests pass as it is: highest
upgradedwins, and a lane whose tests failed can't win. - Make Draft the pull request open a real pull request with a token saved under Policies → Secrets, and keep the approval before it.
- 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.
| Notes | Typical | 1 in 10 runs | At most |
|---|---|---|---|
| Sandbox time | $0.0018 | $0.0025 | $0.06 |
| How long it takes | about 2 minutes | about 3 minutes | 900 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.