Google's Mantis Gives Coding Agents a Full Security Feedback Loop
Google open-sourced Mantis, an Apache 2.0 toolkit that lets AI coding agents find, reproduce, and patch vulnerabilities. What it does, and what's unproven.
Written by AI. Dev Kapoor

Google open-sourced a security toolkit called Mantis this week, and the pitch is straightforward: give AI coding agents a set of modular skills for security review instead of a single scanner that dumps warnings on a dashboard.
The toolkit ships under the Apache 2.0 license, and its workflow covers the full arc of a vulnerability's life. According to marktechpost.com, that arc runs from vulnerability discovery, through false-positive filtering and sandboxed reproduction, to patch generation, a re-attack of the proposed fix, and finally risk scoring. InfoQ frames it as an agentic vulnerability scanning harness built specifically to reduce false positives, which is the chronic disease of static analysis.
The design bet is easy to state: security review works better as an iterative loop than as a one-shot scan. An agent that finds a suspicious pattern can be told to prove it, patch it, and then attack its own patch before anyone merges anything.
Why the Loop is the Design
Anyone who has triaged scanner output knows the failure mode. A static analyzer flags 400 possible injection sinks; 390 are unreachable, guarded, or intentional; a human burns a day and starts ignoring the tool. False-positive fatigue kills more security programs than any specific missed bug.
Mantis attacks that fatigue structurally. A suspected finding has to survive false-positive filtering and reproduce in a sandbox before it earns anyone's attention. Reproduction is the old gold standard of vulnerability confirmation: if you cannot demonstrate the flaw executing, you have a hypothesis, not a bug. By building that step into the agent's loop, the toolkit shifts the burden of proof from the human reviewer to the machine.
The re-attack step is the other notable piece. A patch that stops the original exploit but leaves a variant open is a common failure in real remediation work. Having the agent attempt to break its own fix is a cheap approximation of what a red team does, and doing it before merge is cheaper than doing it after.
What the Sources Don't Establish
Here is where I have to be a careful reader rather than an enthusiastic one. Neither the marktechpost writeup nor the InfoQ piece provides detection rates, exploit coverage numbers, or benchmark results against human-reviewed baselines. There is no published comparison showing Mantis finding bugs that CodeQL or a human audit team missed, or fewer false positives at equal recall. The supplied material describes architecture, not efficacy.
The project is also explicitly documented as demonstration-only. That phrase carries weight. It means Google is shipping a framework and a thesis, and it means anyone wiring this into a CI pipeline tomorrow is doing so without an efficacy track record.
This is a familiar shape. Google has a long history of releasing internal security tooling as open source, from fuzzing infrastructure like OSS-Fuzz to sanitizer libraries, and those projects earned adoption through years of demonstrated results on real codebases. Mantis arrives at the start of that curve, not the end. The demonstration-only label is honest, and honesty about maturity is rarer in this space than it should be, but readers should calibrate accordingly: this is a prototype with a compelling design, and the evidence to distinguish it from a compelling design alone does not yet exist in public.
What Open Sourcing Changes
Apache 2.0 is the most permissive mainstream license available, so anyone can take Mantis, embed it in a product, or fork it without contributing back. That choice has two sides, and both are worth mapping.
The optimistic side: security research on agentic behavior needs artifacts to study. If you want to understand how coding agents behave when given exploit-and-patch capabilities, how often they hallucinate vulnerabilities, how reliably their self-verification catches bad patches, you need shared harnesses so results are comparable across labs. A common toolkit turns scattered anecdotes into a measurable research area. Mantis could become that common substrate the way fuzzing harnesses became standard in the previous decade.
The cautious side: a toolkit that finds, reproduces, and weaponizes vulnerabilities is dual-use by construction. Run it against code you own in a sandbox, and it is a quality instrument. Point it at dependencies or at someone else's attack surface, and the same loop becomes reconnaissance. The sandboxed-repro step is the guardrail, and its strength in practice is exactly what independent reviewers will need to probe. An agent with instructions to "reproduce the vulnerability" is one prompt injection away from executing attacker-supplied code if the sandbox boundary is porous.
The incomplete-fix problem also exists. An agent that patches a flaw, passes its own re-attack, and ships is only as good as its re-attack. Security teams that treat agent-verified as human-verified will learn the difference during an incident.
The Labor Question, Briefly
I cover open source communities, so I will ask the question the announcement does not: who does this work replace, augment, or exhaust? Security review is skilled, scarce labor, and the maintainers of critical open source infrastructure are famously underfunded and overextended. A tool that filters false positives and drafts patches could return hours to a maintainer juggling forty dependency reports. It could also become the thing a cash-strapped project adopts in place of an actual security audit, with the demonstration-only caveat lost in the README.
The strongest version of the optimistic case runs through exactly that maintainer-burden argument. The strongest version of the skeptical case is that automation of the last mile of remediation, applied before the tooling is proven, ships confident wrong answers faster than humans can catch them. Both cases are coherent. The evidence to arbitrate between them does not exist yet, and pretending otherwise would serve neither side.
What to Watch
Three things will tell us whether Mantis matters.
First, independent benchmarks. If research groups adopt the harness and publish comparative results on known-vulnerable codebases, we get numbers instead of architecture diagrams. Until then, every claim about detection quality is unverified.
Second, sandbox integrity. The whole safety argument rests on reproduction happening in isolation. Anyone evaluating this should assume the sandbox will be tested, by red teams if not by the toolkit's authors.
Third, whether Google iterates past the demonstration-only label. The gap between a released prototype and a tool Google trusts in its own pipelines is where the real signal will appear.
The loop design is the right instinct; verification-before-action is how security work has always worked. Whether an agent can do it reliably is an empirical question, and Mantis, for now, is the apparatus for asking it rather than the answer.
Dev Kapoor covers open source and developer communities for Buzzrag.
More Like This
Git Worktrees Are Suddenly Essential—Here's Why
Git worktrees existed for a decade in obscurity. AI coding agents just made them critical infrastructure. What changed, and what does it mean for developers?
Stripe Ships 1,300 PRs Weekly With Zero Human Code
Stripe's custom AI agents generate 1,300 pull requests weekly without human-written code. Here's how they built an agentic engineering system at trillion-dollar scale.
Skills.sh Wants to Be NPM for Your AI Coding Agent
Vercel's Skills Night reveals how skills.sh reached 4M installs by solving a problem nobody knew they had: distributing context to AI coding agents.
Fallow: Cleaning Up After AI Coding Agents
Fallow promises to detect dead code, duplication, and complexity in AI-generated JavaScript. But who's actually responsible for code quality?
GitHub Stacks Brings Stacked PRs to Copilot Agents
GitHub's new gh-stack skill lets Copilot agents automatically split large AI-generated pull requests into reviewable stacked PRs. Here's what it looks like in practice.
Claude Code Sessions Can Now Message Each Other
Claude Code's new inter-session messaging unlocks peer session workflows that challenge the dominance of subagents. Here's what that shift actually looks like in practice.
Samsung S26 Ultra Cinematic Video: Settings and Workflow
A deep dive into shooting cinematic video on the Samsung S26 Ultra—covering APV codec standards, DaVinci Resolve access, and a corruption bug worth tracking.
AI Coding Loops Are Replacing the Prompt—Now What?
Developers are designing autonomous AI loops that merge code without human review. The engineering logic is sound. The accountability framework is nonexistent.
RAG·vector embedding
2026-09-11This article is indexed as a 1536-dimensional vector for semantic retrieval. Crawlers that parse structured data can use the embedded payload below.