Your AI agent fixed the bug, but what else did it change?
Trail of Bits published two plugins, patching-bugs and regression-hunt, that let engineers delegate patch development and regression checks to agents. The patching-bugs plugin reproduces reported bugs, develops fixes, and tests them; regression-hunt checks whether changes break previously working and supported behavior. Maintainers can supply their own security assumptions and patching requirements so agents work within project rules. Both were built through Patch the Planet, the firm's joint initiative with OpenAI, drawing on merged-patch analysis and thousands of engineers' Codex sessions. The plugins followed a September post reporting regressions introduced by some Patch the Planet patches. Trail of Bits then reviewed every patch a Trail of Bits engineer authored and maintainers merged upstream, confirming 21 regressions from over 130 merged PRs: 16 functional, one performance, and four build/test. None broke a security protection. For each patch, an agent looked for potential regressions, confirmed each with a proof-of-concept run before and after the change, and passed results to an engineer. The review was noisy: the 21 confirmed regressions were identified among 58 candidates in a single run, which the post describes as roughly 36% precision. In preliminary evaluations, regression-hunt produced 25% fewer false-positive findings than a baseline Codex agent prompted to review the PR for regressions. The post states four design principles, including opinionated guidance in as few words as possible and modular steps, noting neither plugin must be run end-to-end.
Trail of Bits reports that agent-assisted patching introduced confirmed regressions in merged open-source PRs, and it is offering plugins to standardize patch writing and regression checks.