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 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…
In November 2026, the author detailed a 10-step workflow for upgrading a major dependency using an AI agent on a Mac. The process begins with identifying outdated dependencies using npm-check-updates (ncu) and its -u option, which automates the upgrade process while running tests and retrying failed upgrades. Subsequently, the GitHub CLI is utilized to review release notes from GitHub releases, allowing the agent to work directly from the official changelog.
The workflow further involves using Ghostty to split the terminal, enabling simultaneous monitoring of the upgrade agent and test results. Rectangle is employed to arrange the migration guide alongside the terminal for easy reference. Claude Code is then initiated in plan mode to generate a migration plan based on the release notes, followed by a subagent task to identify deprecated API calls without modifying the codebase.
Each proposed breaking change is then reviewed and committed individually using lazygit, ensuring a clear and manageable PR history. A second opinion from Codex CLI is sought through the /review command, offering an independent assessment of the changes. Throughout this process, TokenBar provides an overview of each agent's usage limits, preventing potential issues due to resource constraints.
Finally, CleanShot X captures before-and-after screenshots to illustrate the changes, and GitHub CLI is used to create a draft PR with the commit details, enabling automated CI checks and monitoring.
Considering the workflow, the author reflects on potential improvements, particularly questioning whether the agent's initial plan could have been more refined or if additional checks could have been implemented earlier in the process. This structured approach ensures that major dependency upgrades are handled efficiently, minimizing disruption and maintaining the integrity of the codebase.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to