Your AI fixed the bug. Trail of Bits counted what else broke.
SummaryTrail of Bits reviewed every agent-written security patch its engineers got merged upstream: 21 confirmed regressions across more than 130 pull requests. None broke a security protection. The lesson isn't that agents can't patch. It's that a patch without proof is just a claim.
· MODEL Editors · 3 min read
Some links may be affiliate links. Disclosure

Today was the day AI found the bugs: two critical PHP flaws, disclosed through Patch the Planet, which security firm Trail of Bits calls its joint initiative with OpenAI. The less glamorous question is what happens when an agent writes the fix. Trail of Bits answered it with its own numbers.
What they counted. In a post published Wednesday, Trail of Bits engineers Anish Naik and Marcelo Morales say they reviewed every Patch the Planet patch a Trail of Bits engineer authored and maintainers merged upstream. These patches were written by agents, with engineers directing the work and checking it. The review confirmed 21 regressions across more than 130 merged pull requests: 16 functional, four build or test, one performance. "None broke a security protection," they write. A regression here means a new defect that breaks behavior that used to work, on a path a real user or attacker can reach.
Finding them was noisy too. An agent hunted for the regressions and had to confirm each with a proof of concept run before and after the change. In a single run it flagged 58 candidates, and 21 held up, about 36% precision. Engineers sorted the rest by hand.
The fix they shipped. Trail of Bits released two plugins in its open trailofbits/skills repo. regression-hunt traces a diff to the code's real interfaces, reproduces each suspected regression on a running build, replays it with a fresh agent, and only reports it if it passes a strict definition. Against a plain Codex agent told to "review the PR for regressions," it produced 25% fewer false positives on the 21 known regressions (95% confidence interval 14% to 38%), but left some real ones marked borderline. patching-bugs requires a "three-arm proof": the same reproduction must fail on the original code, pass on the patch, and fail again with the patch fully reverted. It never pushes or opens a PR itself.
The human baseline. In September, the same team reported that across 2,265 vulnerabilities from its client audits in 2024 to 2026, developers' first fixes failed to fully resolve the issue 283 times, or 12.5%, roughly one in eight, even with a detailed report in hand. That's a different measure from regressions, so it isn't a like-for-like comparison, and Trail of Bits says as much. In one case it describes, a human maintainer and an agent independently made the same crash-causing mistake in the same freenginx fix.
Our take
The scary number isn't 21. It's how few teams could tell you their own. Agent-written patches are already landing in projects you depend on, and the people best placed to measure them found 21 regressions in 130-plus merges, and their regression-hunting agent was wrong almost two times in three. That's not a case against AI patches; humans miss too. It's a case against accepting any patch, from anyone, on vibes. Make the fix prove itself: a repro that fails before, passes after, and fails again when you revert. Write down what counts as a regression in your project. If an agent can't produce the evidence, the patch isn't done.
What we did and didn't do: we read both Trail of Bits posts in full and checked that both plugins and their READMEs are public on GitHub (added October 20). The counts are Trail of Bits' own, about its own work. We didn't run the plugins or check any of the regressions ourselves. Not sponsored, no affiliate links.
MODEL Editors
Sources
- Your AI agent fixed the bug, but what else did it change? (Anish Naik, Marcelo Morales, Oct 21, 2026)
Trail of Bits
- 1Password's AI patching benchmark is misleading (Sept 15, 2026)
Trail of Bits
- trailofbits/skills: patching-bugs and regression-hunt plugins
GitHub
- Trail of Bits announcement on X (Oct 21, 2026)
X
- AI agent fixed the bug, but what else did it change?
Hacker News
FREE · EVERY WEEK
The top AI tools this week, tested.
Every week MODEL's editors pick the AI tools worth your time, try them hands-on, and tell you what's good, what's not, and who it's for. Free, in your inbox.
Free. Unsubscribe anytime. Our picks are editorial and can't be bought.
The weekly three is editorial. A subscription does not buy a place in it.
Continue

The test
DuckDB 2.0, tested: faster, and built for your coding agent
DuckDB's biggest release ran our 8 test queries 1.7 times faster than 1.5.6 with the same answers. Its new agent mode gave an AI agent whole results in 30% fewer bytes. The catch: 1.x can't open its files, and dividing an integer by zero is now an error.
· MODEL Editors

Tools
Two critical PHP flaws found with AI help: update now, and check your version with OpenAI's free Codex skill
PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix two remote code execution bugs, one found with GPT-5.6 Sol. OpenAI also published a small open-source checker that reads which PHP version a site reports. The honest caveat: it only reads version headers, so a hidden header gives you UNKNOWN, not a clean bill of health.
· MODEL Editors

Hot take
The AI hackers forgot to lock their own door
NorForge watched criminals point AI agents at more than a thousand online shops, because the attackers left their own control panels open on the web. Reuters says one hacker's agents got into more than 100 companies. The sloppiest code in this story belongs to everyone involved.
· MODEL Editors