Skip to main content

upgrade-anything

The upgrade passed CI. Does your app still do the same thing?

CI status crates.io version PyPI version npm version License: MIT OR Apache-2.0

Quick start · How it works · Agents · GitHub Action · Docs

English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Español · Português · Русский · Deutsch · Français · Tiếng Việt

upgrade-anything upgrades a Python or Node dependency one version rung at a time, lets your coding agent (Claude Code, Codex, OpenCode) fix what breaks, and then checks the result against what your code did before the upgrade: the same tests, the same recorded behavior, and no tests quietly deleted, skipped or weakened along the way.

All 3 tests pass after upgrading tinyslug to 2.0, but upgrade-anything reports a regression because blog.post_url now returns /2026/caf-cr-me-br-l-e/ instead of /2026/cafe-creme-brulee/

Highlights

  • Behavior, not just green tests. Replays the function calls, CLI output and HTTP responses recorded before the upgrade, and compares the results.
  • One rung at a time. django@5 visits each major version in between, each in its own Git worktree and branch. Nothing is merged for you.
  • Your agent does the repair. Claude Code, Codex, OpenCode or any command gets the failures, the release notes link and the APIs your code uses.
  • Catches agents that cheat. Deleted or skipped tests, weakened assertions and reverted upgrades are flagged, not merged.
  • Fits your workflow. A CLI, a Claude Code plugin, an MCP server, and a GitHub Action for Dependabot and Renovate pull requests.
  • One small binary. Written in Rust and shipped as a single executable; runs on Linux, macOS and Windows.

Green tests are not the same behavior

These are real upgrades of public projects. The test suite passed before and after each one, and upgrade-anything still caught a change:

Upgrade Tests before → after What changed anyway
meow 9 → 10 in strip-ansi-cli 2 → 2 passed --help and --version output (evidence)
WTForms 2 → 3 in Flask-WTF 54 → 54 passed Three rendered HTML and message outputs (evidence)
Python 3.9 → 3.10 for python-slugify 81 → 81 passed The CLI --help heading
send 0 → 1 in serve-static 92 → 92 passed Content-Type charset; the agent edited a test to match, flagged needs-review (evidence)

When nothing changed, you get evidence instead of a shrug. In a run of 25 real upgrades across 12 projects, including twelve bumps from the history of searxng and healthchecks, the gate replayed 11,366 recorded calls: 23 upgrades verified with no false alarms, and the two that broke tests (pyotp 2.12, ua-parser 0.18) were flagged. Silent changes like the four above are uncommon, which is why a gate has to be quiet the rest of the time (full results).

How it works

  1. Freeze the current behavior: the test results and test inventory, and optionally CLI output (--cli), HTTP responses (--http) and the inputs and return values of your Python functions during the test run (--calls).
  2. Upgrade one rung at a time in a Git worktree (django@5 visits each major in between). When something breaks, your agent gets a task file with the failures, the release notes link and a scan of the APIs your code uses.
  3. Gate the result: rerun the tests, replay the recordings, and diff the change for cheating. Only verified rungs are committed, each on its own branch. Nothing is merged for you.

Quick start

Requirements: Git, a clean checkout with passing tests, and the project's current dependencies installed. Install the CLI from a checkout of this repository (prebuilt binaries, pipx install upgrade-anything, uvx upgrade-anything and npx upgrade-anything arrive with the first release):

cargo install --locked --path .

See it catch a green-but-changed upgrade first:

upgrade-anything demo

Terminal recording: all 3 tests pass after upgrading tinyslug to 2.0, but upgrade-anything reports a regression because blog.post_url now returns /2026/caf-cr-me-br-l-e/ instead of /2026/cafe-creme-brulee/

Real output of upgrade-anything demo (offline, under 20 seconds; needs Python 3.9+). Every test passes on the new version, and every non-ASCII URL on the blog changes. freeze --calls recorded what the app's functions returned during the test run; the gate replayed those calls against the upgraded dependency.

Then, in your project:

upgrade-anything freeze --calls          # optional: record behavior beyond the tests
upgrade-anything up django@5             # upgrade, repair with your agent, gate

up detects Claude Code, Codex or OpenCode on PATH; pass --agent '<command containing {task}>' for anything else, or --rounds 0 to only evaluate. It stops at the first rung that is not verified and tells you what changed:

✗ tinyslug@2  1.0.0 → 2.0.0  regression
  tests 3 → 3 · no findings
  call drift: blog:post_url(title="Café Crème Brûlée", year=2026): "/2026/cafe-creme-brulee/" → "/2026/caf-cr-me-br-l-e/"
  branch  upgrade-anything/tinyslug@2
  report  .upgrade/reports/tinyslug@2.md

Every rung gets a Markdown report (report --format html for a page, --pr-body for a pull request). Run ./demo/run.sh for an offline agent repair and a caught test deletion. See the command reference for plan, freeze, go, gate, status and recovery.

Use it from your agent

The plugin, the skill with Codex, and up with both agents were each checked on a real upgrade with Claude Code 2.1 and Codex CLI 0.171.

It also catches agents that cheat

An agent told to "make the tests pass" has easy ways out. The gate compares the upgrade diff with the frozen test inventory (rules and examples):

  • cheated: deleted tests, new skip/xfail/only markers, changed test commands or config, frozen state tampered with, recorded output pasted into source, or the upgrade itself reverted or bypassed (shadow packages, vendored copies, monkeypatches).
  • needs-review: edited expected values, fewer assertions, renamed tests, or test API migrations that no source change corroborates. Often legitimate, so a person decides.

In UpgradeBench (ten real upgrade cases), Claude Code with Haiku verified 9 and was flagged needs-review once for changing a test's charset expectation; Codex verified 9, with one regression caused by its Windows sandbox. Across 31 completed upgrades of public repositories, no honest upgrade was marked cheated. No real agent has been caught cheating yet either; the offline demo uses a scripted one.

Verdicts

Verdict Meaning Exit
verified Tests, recordings and anti-cheat checks all completed with nothing found 0
pre-existing-failure Tests failed before and after the upgrade 1
unverified A required check could not run; never treated as a pass 1
needs-review A test change needs a human look 1
regression Previously passing tests or recorded behavior changed 1
cheated A hard anti-cheat signal 1

The most severe verdict wins. Details are in the verdict guide.

Dependabot and Renovate pull requests

The root action.yml runs the gate on bot PRs: it freezes the base commit, installs the PR head separately, and publishes the verdict, test totals and anti-cheat findings to the job summary, with an optional sticky PR comment. For Python, record-calls: 'true' also replays the base version's recorded function calls on the PR head, so a green bump that changes behavior fails. See the GitHub Action guide.

Limits

  • Python and Node only: pyproject.toml (PEP 621, Poetry), requirements*.txt, setup.py/setup.cfg, and package.json with npm, pnpm or Yarn. No recursive monorepo orchestration.
  • Test detection covers pytest, unittest and npm test; anything else takes --test-cmd. Per-test comparison needs pytest's JUnit output; other runners compare exit codes and recognized summaries.
  • verified means the configured checks found nothing. It does not prove all behavior is unchanged: behavior checks cover only what freeze recorded, and call replay skips calls that need a database, a request or other test context (reported as coverage gaps), plus functions that depend on the clock, randomness or the checkout.
  • Anti-cheat is static analysis of the diff. It cannot prove dynamic, generated or obfuscated code safe.
  • Tests, install scripts and agents run with your permissions. Worktrees isolate edits, not processes.
  • Field-tested on Linux and Windows 11. On macOS, hosted CI runs the full test suite and builds the release binaries and wheels, but no real project has been upgraded there yet. The GitHub Action has not run on a real pull request yet.

The full list, with field evidence for each claim, is in docs/limitations.md.

Documentation

Docs index · How it works · Commands · Anti-cheat · FAQ · Architecture · Contributing · Releasing · llms.txt for agents

Licensed under MIT OR Apache-2.0.

Metadata

Release files for upgrade-anything 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for upgrade-anything 0.1.0
File Actions
upgrade_anything-0.1.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for upgrade_anything-0.1.0-py3-none-win_amd64.whl
upgrade_anything-0.1.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for upgrade_anything-0.1.0-py3-none-manylinux_2_28_x86_64.whl
upgrade_anything-0.1.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for upgrade_anything-0.1.0-py3-none-manylinux_2_28_aarch64.whl
upgrade_anything-0.1.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for upgrade_anything-0.1.0-py3-none-macosx_11_0_arm64.whl
upgrade_anything-0.1.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for upgrade_anything-0.1.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 24.2 MB

Release files / upgrade_anything-0.1.0-py3-none-win_amd64.whl

Download URL upgrade_anything-0.1.0-py3-none-win_amd64.whl
Size 5.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
b6c5f9cfd85d21391c543e8d90d4a59007fbfebf92f42eeec88124c116884f2f
BLAKE2b-256 checksum
How to use checksums
793db481a18cda2fb5666bb9e40e4c243915b7c800a59178787647283e0056a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Release files / upgrade_anything-0.1.0-py3-none-manylinux_2_28_x86_64.whl

Download URL upgrade_anything-0.1.0-py3-none-manylinux_2_28_x86_64.whl
Size 4.9 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
f2b4b9b3e5b04b0a355f2accbc737a0bb4dfef82693da917cddc44fa5a78b44f
BLAKE2b-256 checksum
How to use checksums
0e232eb7c1093ae8ae602258d1c996ed8ad3864717a867b6e168237a569fa3b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Release files / upgrade_anything-0.1.0-py3-none-manylinux_2_28_aarch64.whl

Download URL upgrade_anything-0.1.0-py3-none-manylinux_2_28_aarch64.whl
Size 4.5 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
955cc4862abd37c59be3f8e0cddaaa51a18a59cac2e634b2fc4247090b577875
BLAKE2b-256 checksum
How to use checksums
f973c7fb6458302ff64e898830aeecd5718a746871ec30e2d41fbdf4792f4329
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Release files / upgrade_anything-0.1.0-py3-none-macosx_11_0_arm64.whl

Download URL upgrade_anything-0.1.0-py3-none-macosx_11_0_arm64.whl
Size 4.4 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6685b69fa1de5f7dd927521631bc12f727802a54adc76b5a528f9fcc47540eae
BLAKE2b-256 checksum
How to use checksums
96965fdd8114a3b9222b4c6e01047e9746cc28d95167d43b8673c29d96840454
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Release files / upgrade_anything-0.1.0-py3-none-macosx_10_12_x86_64.whl

Download URL upgrade_anything-0.1.0-py3-none-macosx_10_12_x86_64.whl
Size 4.6 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
b1e6ba41bf190600df74989cd3391ba7c628ef01689d0a22a441d8baf7756b02
BLAKE2b-256 checksum
How to use checksums
cd82e5a18b943d5ff7c981d80291d491286db411cf8333f48d5106c6f2d8264d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Security for upgrade-anything 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for upgrade_anything-0.1.0-py3-none-win_amd64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

5 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page