Complete AI Training
Sign inGet my AI kit

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

AI agent for software engineers

Dependency Upgrade Rehearsal Agent

Dependencies stay current through tested, reviewable upgrade patches.

Dependency Upgrade Rehearsal Agent: what goes in, what the agent does and what you get

What it does

Dependency updates pile up because testing each one is tedious, and old versions become a security risk. When a new version is released, or once a week, this agent first runs the test suite on the unchanged code to record a baseline. It then creates an isolated branch, upgrades one permitted dependency and runs the tests again. It compares results with the baseline, so tests that were already failing do not count against the upgrade. If something new breaks and the cause is clear, it tries a permitted compatibility patch, up to two times. Otherwise it reverts and reports the blocker. An engineer reviews and merges. Edge case: an upgrade renames a function used in one module, so the agent patches the call and reruns.

How it works

Follow the arrows from top to bottom. The orange dashed arrow is the loop: when a check fails, the agent goes back and tries again.

Start and resultWhat it doesA check on its own workWaits for your OKGoes back and retries
Yes, continueApprovedNo 1 STARTS WHEN New dependency version or weekly run 2 USES A TOOL Run tests on the unchanged baseline 3 USES A TOOL Create a branch and upgrade the dependency 4 USES A TOOL Run tests in the sandbox 5 CHECKS THE RESULT Do all tests that passed on the baseline still pass? If not: apply a permitted compatibility patch (max 2tries), or revert and report the blocker. Back to step4. 6 DOES Prepare the patch and test report 7 YOU APPROVE Engineer reviews and merges 8 RESULT Upgrade patch and test report
Read the steps as a list
  1. New dependency version or weekly run
  2. Run tests on the unchanged baseline
  3. Create a branch and upgrade the dependency
  4. Run tests in the sandbox
  5. Do all tests that passed on the baseline still pass?If not: apply a permitted compatibility patch (max 2 tries), or revert and report the blocker. Back to step 4.
  6. Prepare the patch and test report
  7. Engineer reviews and mergesThe agent waits here for your OK.
  8. Upgrade patch and test report

How it decides

It upgrades within policy, attributes test failures by comparing with the baseline, and only patches when the failure is clearly caused by the upgrade.

  • Baseline comparison decides what the upgrade broke.
  • Patch vs revert: patch only when the cause is clear and within policy.
  • Budget: stop after the allotted test runs.

Make it yours

Every agent is a starting point. You choose these settings for your own situation.

  • Dependencies the agent may upgrade (default allowlist)
  • Maximum patch attempts per upgrade (default 2)
  • Schedule of the weekly run
  • Test runs budget per upgrade (default 5)

What keeps you in control

It always asks you first

  • Merging
  • Deployment
  • Unapproved dependencies

Hard limits

  • Never merges or deploys.

It stops when

  • Done: patch ready.
  • Blocked: breaking change needs an engineer.

Set it up

We guide you through the set-up, step by step

Members get the full set-up guide for this agent. No technical skills needed: you copy, paste and upload.

10 minto set it up in your AI
5 AIsChatGPT, Claude, Copilot, Gemini, Grok
  • One set of instructions to paste into your AI, with the clicks for ChatGPT, Claude, Microsoft 365 Copilot, Gemini and Grok
  • The agent then walks you through connecting your own data, one source at a time
  • A downloadable copy with the flow chart, the rules and the full guide
Get access to this agent

An example run

What happensOn Monday the agent upgraded a date library from 3.2 to 4.0. The baseline had 2 failing tests out of 1,410. After the upgrade 9 failed, so the check failed. The logs showed a renamed parsing function. The agent patched three calls and reran: 2 failures, matching the baseline. It prepared the patch and test report, and an engineer merged it on Tuesday.

More agents for software engineers