Upgrading a Major Dependency With an AI Agent in 2026: My 10-Step Mac Workflow, From Changelog to Green CI (9 Tools)
A bot opens a PR that bumps your framework a full major version, and CI turns red before you've finished reading the title. The migration guide is long, the changelog is longer, and "just let the agent fix it" sounds gre
A bot opens a PR that bumps your framework a full major version, and CI turns red before you've finished reading the title. The migration guide is long, the changelog is longer, and "just let the agent fix it" sounds great until it rewrites half the repo.
Here's the stack I'd use for that one job on a Mac: one tool per step, from "what's out of date" to a PR with green checks. Everything below was checked against the official docs in November 2026.
Step 1: Find out what's behind, and what breaks
npm-check-updates (free, open source). Plain ncu lists every dependency with a newer version, and ncu -i lets you pick which ones to take. The part I'd lean on is ncu --doctor -u: it upgrades, runs your tests, and if they fail it retries each dependency one at a time, then prints which upgrades broke and saves only the ones that pass.
That turns "everything is red" into a short list of the upgrades that actually need work.
Step 2: Read the release notes without leaving the terminal
GitHub CLI (free). gh release view <tag> -R owner/repo prints a release's notes, and --json body gives you the raw text. Saving that to a file means the agent works from the real changelog instead of what it remembers about the library.
Step 3: Split the terminal into agent and tests
Ghostty (free). Native macOS tabs and splits mean one pane runs the agent and the other runs your test watcher, so you see a test go red the moment an edit lands. Quick Terminal drops down from the menu bar when you just need to run one command.
Step 4: Put the docs next to the terminal
Rectangle (free and open source, macOS 14+). Keyboard shortcuts or snap areas put the migration guide on one half of the screen and Ghostty on the other. Repeating a shortcut cycles through sizes, which helps when the diff needs more room than the docs.
Step 5: Make the agent plan before it touches anything
Claude Code. Start it with claude --permission-mode plan (or press Shift+Tab until the status bar shows plan mode), hand it the saved release notes, and ask for a migration plan. In plan mode it reads files and proposes changes but makes no edits until you approve.
Step 6: Send a subagent to find the deprecated calls
Still in Claude Code, something like "use a subagent to find every usage of the APIs this release deprecates" keeps the search out of your main conversation. The subagent reads files in its own context and only the findings come back, which leaves room for the actual edits.
Step 7: Review and commit one breaking change at a time
lazygit (free, open source). Focus a file's diff, stage hunk by hunk with space, or press a to stage single lines. One commit per breaking change makes the PR readable, and if something regresses later, b in the commits view starts a git bisect.
Step 8: Get a second opinion from a different agent
Codex CLI. /review starts a review of your uncommitted changes or compares the branch against a base branch. A model that didn't write the migration is more likely to question it, like a renamed option that was silently dropped instead of carried over.
Step 9: Keep an eye on both agents' limits
A major upgrade is exactly the kind of long session where Claude Code runs for an hour and then you bring in Codex for review. Each one reports its usage in its own place, and hitting a limit halfway through step 7 leaves the branch in a messy state.
TokenBar is a Mac menu bar app that shows usage and reset times for Claude, Codex, Cursor, Gemini and Copilot in one place. It's built on Peter Steinberger's MIT-licensed CodexBar and credits Pixel Agents. It doesn't give you extra quota, it just shows where you stand before you start a long step. macOS 14+, $5/month (Basic) or $15 lifetime (Pro).
Step 10: Show what changed, then open the PR
CleanShot X (one-time license, or a Pro subscription with unlimited cloud). If the upgrade touches UI, a before and after screenshot with an arrow or two saves the reviewer from checking out the branch. It also records the screen, which helps when the change is an animation or a flow rather than a static page.
Then back to GitHub CLI: gh pr create --draft --fill opens a draft PR with the title and body filled from your commits, and gh pr checks --watch follows CI until it finishes, with --fail-fast to stop at the first failure.
The stack at a glance
- npm-check-updates: which upgrades break the tests
- GitHub CLI: release notes in, draft PR and CI status out
- Ghostty: agent in one split, tests in the other
- Rectangle: docs and terminal side by side
- Claude Code: plan mode first, subagent for the deprecated-API search
- lazygit: one commit per breaking change
-
Codex CLI:
/reviewas the second opinion - TokenBar: both agents' limits and reset times in the menu bar
- CleanShot X: before and after screenshots for the reviewer
What's the last major upgrade you handed to an agent, and which step would you have done differently?
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.