---
title: "Your AI agent fixed the bug, but what else did it change?"
description: "Trail of Bits released two agent plugins, patching-bugs and regression-hunt, that delegate bug reproduction, patch development and regression checking to AI agents."
url: "https://swe.quest/articles/your-ai-agent-fixed-the-bug-but-what-else-did-it-change-4b4967c8420473e1"
canonical: "https://blog.trailofbits.com/2026/10/21/your-ai-agent-fixed-the-bug-but-what-else-did-it-change/"
source: "Trail of Bits"
published: "2026-10-21"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 8
tags: ["ai-agents","ai-coding","security","testing","open-source"]
---

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

A post on [Trail of Bits](https://swe.quest/sources/trail-of-bits.md), published 2026-10-21, 8 min read, Announcement. Original: [https://blog.trailofbits.com/2026/10/21/your-ai-agent-fixed-the-bug-but-what-else-did-it-change/](https://blog.trailofbits.com/2026/10/21/your-ai-agent-fixed-the-bug-but-what-else-did-it-change/)

## Summary

Trail of Bits released two agent plugins, patching-bugs and regression-hunt, that delegate bug reproduction, patch development and regression checking to AI agents. Each step uses strict input and output schemas and requires a live proof of concept. The design draws on a review of 130+ merged Patch the Planet PRs, which found 21 regressions, and on thousands of Codex sessions. regression-hunt traces the diff to real interfaces, reproduces candidates live, replays them in a fresh context and adjudicates against a threat model, producing 25% fewer false positives than a baseline Codex prompt (95% CI 14–38%) at the cost of leaving some real regressions borderline. patching-bugs adds a three-arm proof (fail, pass, fail on revert) and invariant-guided repair, and works best with project-supplied THREAT\_MODEL.md and PATCHING\_GUIDELINES.md files.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- AI coding agents ([easy posts on AI for coding](https://swe.quest/tags/ai-coding.md?difficulty=easy))
- security patching workflow ([easy posts on Security](https://swe.quest/tags/security.md?difficulty=easy))
- regression testing ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))

## Keywords

patching-bugs, regression-hunt, Patch the Planet, Codex, OpenAI, Trail of Bits, THREAT\_MODEL.md, GPAC

## Related posts

- [How we use /goal to find bugs in Patch the Planet](https://swe.quest/articles/how-we-use-goal-to-find-bugs-in-patch-the-planet-54705d077857df4c.md): Trail of Bits · 2026-07-28 · Medium · 8 min read · Vulnerability research, AI agents, AI for coding, Open source, Rust
  Codex's /goal mode works best for vulnerability hunting when the prompt defines a precise, calibrated outcome rather than a path, and when each agent pursues exactly one outcome.
- [1Password's AI patching benchmark is misleading](https://swe.quest/articles/1password-s-ai-patching-benchmark-is-misleading-fef916b39e218263.md): Trail of Bits · 2026-09-15 · Medium · 11 min read · Evaluation, AI for coding, Vulnerability research, Open source, AI agents
  Trail of Bits argues that 1Password's FLAWED benchmark headline of a 26% clean-fix rate for AI patching is misleading.
- [How I hunt for vulnerabilities with AI](https://swe.quest/articles/how-i-hunt-for-vulnerabilities-with-ai-3d82bb1020f483da.md): ClickHouse · 2026-06-26 · Medium · 23 min read · Vulnerability research, AI agents, AI for coding, C & C++
  AI coding agents (GitHub Copilot in agent mode with Claude Opus and Gemini, later Claude and ChatGPT) can drive vulnerability research in a large C++ codebase like ClickHouse.
- [Introducing AutoPatchBench: A Benchmark for AI-Powered Security Fixes](https://swe.quest/articles/introducing-autopatchbench-a-benchmark-for-ai-powered-security-fixes-f107d000a04ddc7d.md): Meta Engineering · 2025-04-29 · Hard · 17 min read · Evaluation, Vulnerability research, AI for coding, C & C++, Testing
  AutoPatchBench is a benchmark of 136 fuzzing-found C/C++ vulnerabilities from real projects, curated from the ARVO/OSS-Fuzz dataset, for evaluating AI program repair agents.
- [When AI Writes the Code, What Counts as Evidence?](https://swe.quest/articles/when-ai-writes-the-code-what-counts-as-evidence-b44b970cb226fefb.md): Stack Overflow Blog · 2026-11-25 · Easy · 7 min read · AI for coding, AI agents, Documentation, Testing, Developer productivity
  Coding agents increasingly investigate and fix failures in private sessions, delivering patches while discarding the reasoning, failed attempts and environmental context that teams used to preserve as shared troubleshooting knowledge.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
