Skip to Main Content

AutoPatch turns static-analysis alerts (SARIF, Semgrep, CodeQL-style) into fix pull requests that are only proposed after mechanical verification. For each alert it generates a minimal patch plus a regression test, then runs three sandbox gates in an isolated repo copy: the test must fail on the vulnerable code, pass after the patch, and the existing suite must show no new failures. Unverifiable patches are rejected with feedback to the model (up to 3 attempts); alerts judged to be false positives are triaged instead of cosmetically "fixed". It supports Python and JavaScript/TypeScript, multi-file patches with structure-aware context (only the enclosing function of large files is patched), and deterministic dependency-CVE bumps with lockfile regeneration. The problem it solves: scanners produce alert backlogs that engineers must still understand, fix, test and prove by hand. AutoPatch closes that loop and shows its evidence in the PR. Measured on its benchmark corpus: 5/8 verified fixes offline, 8/8 with the live Meta API. Tested on a real production codebase, where its first PR was reviewed and closed as a false positive. The learnings (triage, outcome-based tests, suite-native test placement) shipped as product changes. Open-source (MIT), zero runtime dependencies.

Team

More from Meta Global AI Developer Hackathon

Cardo turns the world around you into Kurdish flashcards. Kurdish is spoken by tens of millions of people, but it has very few learning tools, and most…

Kurdolingo project preview

oqed is an LLM-guided superoptimizer for x86-64. You point it at a C or C++ project and it does the rest: - builds the project and runs its workload…

oqed project preview

Playtest Agent plays a game from screenshots, looks for bugs, then replays each report and has a judge check it. I make games alone. Solo developers and…

Adrian project preview

Open-source npm malware detection on Meta's models: a live monitor that flags new malware about a day before the public lists, a Muse agent that investigates…

Gatekeeper project preview

Video2URDF turns one short phone video of a real articulated object (a laptop lid, a drawer, a desk lamp, a microwave door) into a measured URDF/MJCF a robot…

Video2URDF project preview

Glimmer Scope opens up Muse Glimmer 30B so you can see and steer the concepts it thinks with. I trained sparse autoencoders on nine layers of Glimmer's…

Kroonen AI project preview