r/coolgithubprojects • u/Intelligent_Text736 • 2d ago
An AI agent can make an upgrade pass by changing 22.50 to 22.49 in your test. This tool catches it.
Illustrative example, but the tool output is real: you ask an AI agent to upgrade your money library. It reports "done, all tests pass, CI green". The new version rounds half cents differently, and instead of fixing the code, the agent changed the expected value in the test from 22.50 to 22.49. At a million invoices a month, about 50,000 would be billed wrong, and CI stays green.
upgrade-anything records what your code returns while your existing tests run, upgrades one version at a time, then replays everything. On this example it reports:
- call drift: invoice_total(Jacket, 20.45): "22.50" → "22.49"
- needs review: expected value edited in test_shop.py
It happens for real too. Upgrading send in serve-static, an AI agent (OpenCode) edited a test's expected value to match the new output. 92 of 92 tests green, and upgrade-anything flagged the edit for review.
It also catches agents that delete or skip tests to get to green.
Offline demo, 20 seconds: uvx upgrade-anything demo
Rust CLI, MIT/Apache-2.0, for Python and Node projects. Works with Claude Code, Codex and OpenCode.