When a developer opens a pull request, security checks usually produce a list of warnings and little else. The CodeMender AI tool, a code-security agent from Google, goes a step further: it reports a vulnerability, tests whether it can actually be exploited, and drafts a fix, all inside the same pull request conversation.
A pull request is the page where a developer proposes code changes and teammates review them before the changes are merged. Google Cloud has published a reference architecture that connects CodeMender to that page through Google Cloud Run, a service that runs small programs on demand. The design is aimed at teams producing code faster than they can review it for security flaws.
What problem is CodeMender meant to address?
Google Cloud points to a widening gap between how fast code is written and how fast flaws get repaired. It says development velocity has risen as much as 2x for some teams, and it cites the Mandiant M-Trends 2026 Report for the average developer fix time growing from roughly 59 days a decade ago to more than 170 days in 2025. Google Cloud also says code produced with agentic tools has become more complex, which slows the work of finding and fixing flaws.
CodeMender is Google’s answer: an autonomous agent, meaning software that carries out multi-step tasks without a person directing each one. Google Cloud describes it as able to find and fix software flaws at machine speed, and as part of its AI Threat Defense platform.
What does a developer actually see?
Everything happens in the pull request timeline. When a pull request triggers a scan, the tool posts a single comment containing a table of findings. Each finding has an ID, and the comment lists the two commands a reviewer can type next.
- /verify followed by a finding ID asks CodeMender to test the finding. The result returns in the thread inside a collapsible block labeled View Exploit Steps & Response Trace, so it does not bury the discussion.
- /fix followed by an ID asks for a patch. The proposed change arrives in the thread behind a block labeled Preview Proposed Code Diff, and a draft pull request is opened with an /approve prompt.
- Both commands accept all in place of an ID to cover every finding at once.
Google Cloud stresses that nothing sends the developer out of the pull request or into a separate console. The stated reasoning is that developer tools only succeed when they fit existing routines.
How does CodeMender decide whether a flaw is real?
The scanning step returns a confidence score for each vulnerability it reports. When that score is below 100%, the verify step builds and simulates an exploit in a sandbox, an isolated environment where the attack can be tried safely, to determine whether the flaw is genuinely exploitable. According to Google Cloud, the simulation results can change the finding’s severity.
The result is evidence a reviewer can read: a trace of the attempted exploit instead of an abstract alert. Because the sandbox is temporary and disappears after each run, the pipeline streams these artifacts to Google Cloud Storage. Google Cloud says this preserves an audit trail for compliance and security operations reviews.
What failure mode does the architecture warn about?
Google Cloud flags a specific risk in the verification harness. If the harness only looks for a success string from an exploit, any test crash, such as a failed mock server or a timeout, can make the pipeline fail open and label a real vulnerability as safe. Its guidance is to separate genuine negative results from crashes and to mark any exploit that does not finish cleanly as inconclusive, never as a clean bill of health.
How does a patch get proposed and approved?
Once an exploit shows a finding is real, the next step is a patch instead of a ticket. The /fix command instructs CodeMender to produce a change, which appears as a previewable diff, the side-by-side view of removed and added lines. A draft pull request is already open for the fix, and a human types /approve to accept it. The workflow keeps a reviewer in the loop at the point where code actually changes.
What model sits behind the tool?
Separate Google material on its Fairwind Program describes CodeMender as a harness, the surrounding software that directs a model through find, verify and fix steps. Google’s Fairwind announcement pairs that harness with a specialized model called Gemini 3.8 Flash Cyber. Google says the combination writes and validates code fixes at a fraction of the operating cost of traditional frontier models, and that defenders can generate verified, deployment-ready patches in minutes within an organization’s secure cloud environment.
Fairwind is a limited-access program for governments and trusted partners, not a general release. Google says participants agree to operational standards, including restricting access to employees in internal cybersecurity, incident response or penetration testing teams and deploying protections such as multi-factor authentication. Google reports more than 650 participating partners globally. Whether the pull request architecture described by Google Cloud depends on that model or that program is not stated in the architecture post.
Where does this fit among other code-security tools?
Most automated code scanners fall into the category of flagging tools: they analyze code and report suspected problems for a person to investigate. CodeMender is positioned in a different category, remediation, where the tool also tests the problem and proposes the repair. Google’s Fairwind post frames the shift directly, saying that spotting weaknesses creates awareness and fear while autonomously finding and fixing vulnerabilities delivers security. Neither source offers head-to-head comparisons with named competing products, so the distinction here is one of approach and not measured performance.
A realistic pull request walkthrough
Consider a developer who opens a pull request adding a new feature. The scan runs on Cloud Run and posts its findings table in the thread. One finding shows a confidence score under 100%, so a reviewer replies with /verify and the finding’s ID. A few minutes later, the exploit trace appears in a collapsible block, showing the attempt and the response. The evidence confirms the flaw, so the reviewer replies /fix with the same ID. A diff preview appears and a draft pull request opens. The reviewer reads the change, then types /approve. Meanwhile, the sandbox’s artifacts have already been copied to cloud storage for later audit.
In practice, Google’s materials describe an architecture and a workflow, not independent test results. Google Cloud does not publish accuracy figures, false-positive rates or patch success rates, and the speed claims about minutes versus weeks come from Google’s own announcement. The inconclusive status for crashed tests means some findings will still need manual investigation, and every proposed patch still depends on a human approving it. Teams should check current Google documentation for pricing, availability and supported languages before planning around the tool.