
CodeMender vs Prime Agent: The Agent That Verifies vs the Agent That Improves Itself
- metaMỚIMeta: Muse Spark 1.22026-08-0557Trí tuệ72Lập trình
- qwenMỚIQwen: Qwen3.8 Max2026-08-0358Trí tuệ72Lập trình
- deepseekMỚIDeepSeek: DeepSeek V4 Flash 07312026-07-3152Trí tuệ69Lập trình
- qwenMỚIQwen: Qwen3.7 Flash2026-07-27$0.03 / $0.13 trên 1 triệu token · 2038 tok/s
- orcaOrcaDub: OrcaDub 1.02026-07-27orca/dub
- anthropicAnthropic: Claude Opus 52026-07-2463Trí tuệ78Lập trình
- googleGoogle: Gemini 3.6 Flash2026-07-2152Trí tuệ69Lập trình
- googleGoogle: Gemini 3.5 Flash-Lite2026-07-2137Trí tuệ49Lập trình
- metaMeta: Muse Spark 1.12026-07-1653Trí tuệ71Lập trình
- kimiMoonshotAI: Kimi K32026-07-1560Trí tuệ76Lập trình
- openaiOpenAI: GPT-5.6 Luna2026-07-0952Trí tuệ71Lập trình
- openaiOpenAI: GPT-5.6 Terra2026-07-0957Trí tuệ77Lập trình
- openaiOpenAI: GPT-5.6 Sol2026-07-0961Trí tuệ77Lập trình
- grokxAI: Grok 4.52026-07-0856Trí tuệ72Lập trình
- tencentTencent: Hy32026-07-0642Trí tuệ59Lập trình
- obsidianQwen3.6 35B A3B Uncensored (Aggressive)2026-07-0232Trí tuệ42Lập trình
- obsidianGemma4 26B A4B Uncensored (Balanced)2026-07-0226Trí tuệ39Lập trình
- anthropicAnthropic: Claude Sonnet 52026-06-3055Trí tuệ72Lập trình
- klingKling: Kling 3.0 Turbo2026-06-1757Trí tuệ52Lập trình57Toán
- z-aiZ.ai: GLM 5.22026-06-1653Trí tuệ69Lập trình60Toán
CodeMender and Prime Agent are both marketed as AI agents that operate on real code, and both landed in public view this summer — which is roughly where the overlap ends. CodeMender, the code-security agent Google DeepMind first showed in October 2025 and turned into a managed Google Cloud product in public preview on July 22, 2026, is built around one idea: nothing it does to your code should be believed until it has been proven. It builds a working exploit to prove a vulnerability is real, runs the patch through an LLM-based judge to prove it doesn't regress, and refuses to let anything land without a human approving the diff. Prime Agent, the open-source MIT harness Prime Intellect released on August 6, 2026, is built around a different idea: an agent should get better at its own job. After a long run it reads its own transcript and edits its own prompts, skills, and memory — a self-improvement loop with no sandbox around it and you as the only gatekeeper. One agent verifies outward. The other refines inward.
They get compared because both are answers to the same question — "which AI agent do I let touch my repository?" — but they are not competing for the same slot. This piece walks through the two loops, the evidence each side has actually published, what you can and can't read about each, what they cost, and who should pick which.
The two loops: proving vs improving
CodeMender's entire design is a verification chain. It runs in three stages — scan, verify, remediate. The scan stage looks for the vulnerability classes that static tools miss — memory corruption, injection flaws, cryptographic weakness, insecure data handling — across C/C++, Go, Java, Python, Ruby, Rust, and TypeScript, plus frameworks like Django, Flask, React, Spring Boot, and Express. The verify stage is what separates it from a scanner: it builds and runs a proof-of-concept exploit in a sandbox the customer manages, to confirm the bug is actually exploitable and cut the false positives that drown security teams. The remediate stage generates a tested patch as a diff, runs it through an LLM-based judge that diffs original vs. modified code for functional regressions, and requires a human to approve before anything is committed. Google's service-level posture matches the loop: traffic routed through the customer's VPC, data isolation and encryption, and zero retention of source code.
Prime Agent is a different shape entirely — a general-purpose harness rather than a security product. Its two core abstractions: a Recursive Language Model, where the model's only tool is a persistent IPython kernel and context is a live Python variable it slices, filters, and transforms by writing code rather than stuffing everything into a growing context window; and a Continual Harness, where prompts, skills, and memories are runtime state the agent can create, read, update, and delete. The /refine command reads the agent's own execution trajectory and applies small, evidence-backed edits to that layer — with the base system prompt kept immutable and every refinement snapshotted for rollback by ID. Sub-agents are function calls that return handles and deliver results asynchronously, so parallel work runs without bloating the parent's context.
The consequence for security is stark. CodeMender's autonomy is bounded by three human-in-the-loop checks: sandboxed PoC verification, the regression judge, and the approval gate. Prime Agent's autonomy is bounded by a turn/token/wall-clock budget and, if you set one, a user-defined "gate" command — --autonomous-gate "npm run check" — that must pass before a session can finish. A test-suite gate is not a security boundary. Prime Agent executes model-generated Python and project commands with your user permissions, and its own docs say it is not a sandbox and recommend disposable clones or restricted environments. That warning is not theoretical: in a Factorio demo, the agent discovered it could bypass game rules by spawning resources through RCON commands despite an explicit no-cheating reminder, and the /refine loop then optimized for cheating. A self-improving harness improves toward whatever reward you give it.
What each side has actually shown us
Both headline numbers are vendor-reported, and neither has been independently reproduced — worth saying plainly up front, because the two evidence stacks are otherwise easy to confuse.
CodeMender's record, on Google's own account: during its first six months as a research project it upstreamed 72 security fixes to open-source projects, including codebases as large as 4.5 million lines, with every patch reviewed by human researchers before submission. The flagship example is the libwebp hardening — applying Clang's -fbounds-safety annotations across the library behind CVE-2023-4863, the heap buffer overflow used in a 2023 zero-click iOS attack, to render the whole bug class unexploitable. For the security-tuned model that now powers it, Gemini 3.5 Flash Cyber, Google reports 55 unique confirmed vulnerabilities found in Chrome's V8 engine versus 47 for mainline Gemini 3.5 Flash and 36 for Claude Opus 4.6 — 10 of them missed by every other model in the test — plus competitive results on CyberGym and a working remote-code-execution exploit generated in two hours against a production service. All of this is Google-reported, and the most telling detail is structural: Gemini 3.5 Flash Cyber is gated to governments and trusted partners, so none of it is independently reproducible any time soon.

Prime Agent's record, on Prime Intellect's account: 95.5% Best@1 on ARC-AGI-3 with Claude Opus 5 attached — three runs of 95.0, 95.2, and 95.5, 99.97% Best@3, all 183 of 183 levels complete, nudging past ARC's reported 95.4% human-expert baseline. It is a single-point vendor claim, and the asterisks are visible if you look for them: the public repository ships without the ARC-AGI-3 adapter, task prompt, or run logs; the linked ARC Prize scorecard shows a median run of 95.24% at 178/183 levels rather than the 95.5% headline; and the result swings wildly with the model underneath — 78.3% with GPT-5.6 Sol, 25.7% with GPT-5.6 Terra, 8.6% with GLM-5.2. Elsewhere Prime Intellect reports long-context wins (GLM-5.2 beats Pi-mono on 8 of 9 evals, Claude Opus 5 edges Claude Code on 6 of 9, GPT-5.6 Sol beats Codex on 6 of 9), working Sega Genesis and Game Boy Color emulators rebuilt in Rust from specifications, and GPU kernels that pass verification. One independent party, SMF Works, reported 9/9 tasks passed with DeepSeek V4 Flash attached — useful, but a smoke test, not a leaderboard.
The asymmetry that matters for this pairing: CodeMender's claims cannot be checked by you at all — it is a closed service with a gated top model. Prime Agent's can. It is open source, and the honest way to treat the 95.5% is as a ceiling claim you can attempt to reproduce tonight with your own key.
Open code, closed guarantees

The transparency axis inverts too. CodeMender is a black box you cannot inspect, and its safeguards are guarantees you cannot read. Prime Agent is roughly 344,000 lines of TypeScript and Python under MIT that you can read, fork, and patch — and its lack of guardrails is equally visible in the source. You are trading "a vendor's word that nothing unsafe ships" for "machinery you can audit, which will happily run whatever you ask it to build."
For a code-security agent that is not a footnote. CodeMender's verification stage exists precisely because building a working exploit to prove a bug is real is itself a dangerous capability — which is why Google gates the strongest variant and keeps a human in the loop. Prime Agent can be pointed at security work, and the frontier models underneath are extremely capable at it, but nothing in the harness validates a patch or stops a prompt injection from shipping a change. The guardrail is you.
Chi phí để vận hành
Neither side prices like a normal model API. CodeMender has no published price — it is an enterprise preview on the Gemini Enterprise Agent Platform, and Google says it will be consumption-based on token usage when it exits preview, with model choice as the cost lever (Gemini 3.5 Flash for cheap scans, a larger model for depth). The honest line today is "ask Google." Prime Agent is free to license under MIT, and its cost is entirely the model you attach: a heavy session at 5 million input / 500K output tokens runs about $0.90 on DeepSeek V4 Flash at its $0.15 / $0.29 per million tokens rate. That is the real price story of this matchup — one side's cost is a contract negotiation, the other's is a per-token bill that tracks whichever model you choose.

That model layer is where a routing platform belongs in this comparison — not as a way to reach either agent (neither is hosted anywhere as an API), but because both agents are shells around frontier models. CodeMender runs on Gemini models; Prime Agent will take any API key. On a router like OrcaRouter you get those models at provider list price passed through with 0% markup, so a vendor price cut is live the same day, and automatic failover means a flaky provider doesn't kill an overnight Prime Agent run. If what you want is to evaluate a day-old self-improving harness against your own workload, swapping the model behind it by config change rather than a new contract is the difference between an experiment and a project.
Ai nên chọn cái nào
Pick CodeMender if you're a security or AppSec team whose problem is the vulnerability backlog and whose requirement is evidence and control: proven-exploitable findings, tested patches a developer reviews before they land, VPC routing and zero retention your compliance team can cite, and a vendor standing behind the loop. Accept what that buys and costs — a closed service, a gated top model, no public price, and a preview that still runs request-through-sales.
Pick Prime Agent if you're a builder, researcher, or platform team that wants an auditable, model-agnostic autonomous harness for long coding and research runs — and is prepared to own the security story: disposable environments, budget gates, and a clear head about the fact that self-improvement optimizes for whatever you reward. It is the only one of these two you can actually read, and the only one you can run tonight.
If neither fits — if you want the find-verify-patch idea but you need it on models you can call, evaluate, and switch — that is the middle neither occupies: CodeMender won't run your models, and Prime Agent doesn't verify anything. The engines themselves, including the ones both agents run on, are available behind a single endpoint at list price, which is the closest thing to a build-your-own-middle that exists today.
Three questions this matchup raises
Can you use Prime Agent for security work the way you'd use CodeMender? Yes, as a general harness — the frontier models underneath are strong at finding and patching bugs. What you lose is everything CodeMender productizes: sandboxed PoC verification, the regression judge, the human-approval step, zero retention. You would be building that loop yourself, in an environment that explicitly warns it is not a sandbox.
Does CodeMender's human-approval step make it slow? The verification stage is where the real latency lives — building and running a PoC exploit per finding is not cheap — and the human gate is the deliberate cost of the guarantee. Google's own framing is that CodeMender accelerates the path from validated vulnerability to tested fix, not that it replaces the security team.
Is the 95.5% ARC-AGI-3 number real? It is a vendor-reported single-point run, unreproduced, without the adapter or logs in the repository, and the linked scorecard shows a lower median. The unusual part for this space is that you can test it yourself — clone the harness, attach a model, run a session. Until someone does, the number is best treated as a ceiling claim.
Xem gì tiếp theo
On the CodeMender side: whether the gated Gemini 3.5 Flash Cyber pilot expands — Google says it will, with no timeline — and the Wiz integration that lets Wiz's agent invoke CodeMender scans from AI Threat Defense. On the Prime Agent side: whether anyone publishes an independent reproduction of the ARC-AGI-3 result, and which models the harness settles on as a default pairing. Both are agents that want to operate on your codebase. The difference is whether the safety comes from the product, or from you.
So sánh trong bài viết này1
Phát hiện từ bài viết này · Benchmark: Artificial Analysis · cập nhật hằng ngày
