# Your AI agent fixed the bug, but what else did it change?

DevFeed: [Your AI agent fixed the bug, but what else did it change?](<https://devfeed.tech/articles/your-ai-agent-fixed-the-bug-but-what-else-did-it-change-92968.md>)

Original publisher: [Read original article](<https://blog.trailofbits.com/2026/10/21/your-ai-agent-fixed-the-bug-but-what-else-did-it-change/>)

Author: "Anish Naik, Marcelo Morales"

Published: 2026-10-21T15:00:00Z

Content type: news

Language: en

Sources: [The Trail of Bits Blog](<https://devfeed.tech/sources/the-trail-of-bits-blog-2.md>), [Trail of Bits](<https://devfeed.tech/sources/the-trail-of-bits-blog.md>)

Topics: [ai code review](<https://devfeed.tech/topics/ai-code-review.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [open source maintenance](<https://devfeed.tech/topics/open-source-maintenance.md>), [codex](<https://devfeed.tech/topics/codex.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [and-best-practices](<https://devfeed.tech/tags/and-best-practices.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [bug](<https://devfeed.tech/tags/bug.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [build](<https://devfeed.tech/tags/build.md>), [change](<https://devfeed.tech/tags/change.md>), [changes](<https://devfeed.tech/tags/changes.md>), [codex](<https://devfeed.tech/tags/codex.md>), [development](<https://devfeed.tech/tags/development.md>), [engineer](<https://devfeed.tech/tags/engineer.md>), [evaluations](<https://devfeed.tech/tags/evaluations.md>), [false-positive](<https://devfeed.tech/tags/false-positive.md>), [fewer](<https://devfeed.tech/tags/fewer.md>), [functional](<https://devfeed.tech/tags/functional.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [patch-the-planet](<https://devfeed.tech/tags/patch-the-planet.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

## AI overview

The patching-bugs and regression-hunt plugins standardize agent-assisted bug fixing and regression checks, requiring live proof-of-concept evidence and reviewable, schema-defined steps. regression-hunt traces changes to user-facing interfaces, reproduces candidates on a running system, replays proofs with a fresh-context agent, and adjudicates whether evidence rules out false positives and other explanations. In evaluations on 21 confirmed regressions, it produced 25% fewer false positives than a baseline Codex agent, with a 95% confidence interval of 14%-38%; some known cases remained inconclusive, trading confident coverage for stricter evidence. patching-bugs uses a three-arm proof (original fails, patch passes, revert fails), targets underlying security invariants, and requires regression-hunt checks. Maintainers can provide a threat model and project patching guidelines to shape agent decisions. The account reports 21 regressions among more than 130 merged PRs reviewed, none breaking a security protection, and describes plans to evaluate patch quality and expand configurability.

## Source excerpt

Today we're publishing patching-bugs and regression-hunt, two plugins that let engineers delegate patch development and regression checks to agents. Our patching-bugs plugin reproduces reported bugs, develops fixes, and tests them. The regression-hunt plugin checks whether any changes break previously working and supported behavior. Engineers can direct the work and review their results; maintainers can supply their own security assumptions and patching requirements, so the agents work within the project's rules. We built patching-bugs and regression-hunt through Patch the Planet, our joint initiative with OpenAI, where we've co-authored hundreds of security patches for widely used open-source projects. Motivated by our major successes on projects like Scapy, our plugins draw on our analysis of merged patches and thousands of our engineers' Codex sessions. The plugins provide maintainers with a structured workflow, evidence, independent checks, and best practices to improve their patching hygiene. In our preliminary evaluations, regression-hunt produces 25% fewer false-positive findings than a baseline Codex agent prompted to "review the PR for regressions." Standardizing the patching process Our September post reported regressions introduced by some of our Patch the Planet patches. Since then, we've reviewed every patch that a Trail of Bits engineer authored and maintainers merged upstream. The review confirmed 21 regressions from over 130 PRs merged: 16 functional, one performance, and four build/test. None broke a security protection. ("Regression" refers to a new defect introduced by a change that breaks previously correct and supported behavior along a path a real user or attacker can reach.) For each patch, an agent looked for potential regressions, confirmed each one with a proof-of-concept (PoC) run before and after the change, and then passed the results to an engineer for review. The review was noisy: today's bug disclosures arrive at an unprecedented spee