cd /news/ai-agents/claude-code-codex-and-antigravity-pa… · home › topics › ai-agents › article
[ARTICLE · art-182280] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Claude Code, Codex and Antigravity passed every test. Then I broke their code 120 times.

A developer ran Claude Code, Codex and Google Antigravity through three identical coding tasks, then deliberately broke each tool's own generated code 120 times to test whether its self-written test suites caught the faults. All three tools passed every hidden check on every run, but Claude Code and Codex caught the most injected breaks while Antigravity lagged, and swapping Claude Opus 5.5 into Antigravity raised its catch rate from roughly 72 to 89 of 120. The developer concluded that passing checks alone don't distinguish the tools and urged builders to mutate a small function their agent wrote to look for test gaps.

recommendation

Mutate one small function your coding agent wrote, such as flipping a minus to a plus, and rerun its tests to expose gaps in the agent's self-written test suite.

more in playbook: Working with AI coding agents
by read4 min views1 publishedDec 5, 2026

Originally published at https://agenticlab.sunilprakash.com/field-notes/011-claude-code-vs-codex-vs-antigravity/

I gave Claude Code, Codex and Antigravity the same broken app, the same bug reports and one prompt. Then two more tasks. Every tool ran every task twice.

All three passed every hidden check, in every run. So the checks don't tell you which one to pick. This post is about what they don't show.

Three tasks:

The same prompt for every run: "Read TASK.md in this folder and do everything it asks. Work only inside this folder. When you are done, run the tests." A time cap of 30 minutes on the small task and 60 on the other two. No run reached it.

Each at the setting its tool calls extra high, inside its own sandbox, on a paid subscription. I did not compare cost. One extra run on tasks 1 and 2 put Claude Opus 5.5 inside Antigravity, at high, the top setting Antigravity offers for it.

The checks came first, and no tool could see them: 15 plus 18 on the small task, 80 on the hard one, 45 on the page. I proved they can fail by planting mistakes in my own solution: 22 on the hard task and 32 on the page, all caught.

Claude Code helped me build and score this test. That is why every check was fixed and checksummed before any tool's code was opened.

Minutes and seconds, run 1 then run 2, on the hard task:

Claude Code read the whole app in eleven seconds. Then it thought for fourteen minutes before it touched a file. By then, Codex had finished.

I broke each tool's own code on purpose, one small change at a time, and ran its own tests. 120 breaks per tool on the hard task. Breaks caught:

Claude Code and Codex are level. Codex got there with about a quarter of the test code: 484 lines of tests against 1,897 in run 1.

I typed an amount in Arabic digits. All three refuse it:

error: invalid amount error: invalid amount: '١٢٠٠' error: bad amount '١٢٠٠': use digits with at most two decimals, like 1200.50 Then 27 inputs with a fault inside a file the user passed. Does the error name the file? Claude Code 27 of 27 in both runs. Antigravity 10 and 12. Codex 4 and 4.

A tip of minus ten percent. The task never mentions one. Claude Code and Antigravity refuse it. Codex takes ten percent off the bill. Neither is wrong. But Claude Code listed that choice in its final message, and Codex didn't mention it.

A bank file saved the way Excel saves a CSV, with an invisible mark at the start (a simulated file, made by my checks). Claude Code reads it. Antigravity reads it. Codex refuses it, on both runs. A judgement call, not a bug. But plenty of people export their statements from Excel.

I swapped Gemini for Claude Opus 5.5 inside Antigravity and ran tasks 1 and 2 once more. The small task went from about ten minutes to 3:03. The hard one from 15:30 and 16:53 to 11:27. Breaks caught went from 72 and 73 to 89 of 120, and its errors named the file 27 of 27. One run can't prove the cause. But it shows how much the model inside the tool matters.

The same brief for all three: who owes what, who pays whom, the expenses, and a form to add one. It has to work on a phone. No design to copy.

All six pages passed all 45 checks. Time, run 1 and run 2:

Claude Code took a picture of its own page 44 and 48 times. The other two, 15 at most.

I ranked the six pages blind first. My order, best first: Codex run 1, Codex run 2, Claude Code run 1, Antigravity run 1, Claude Code run 2, Antigravity run 2.

Then one AI judge from each maker (Anthropic, OpenAI, Google) compared them two at a time without names. Added together: Codex run 2, Claude Code run 1, Codex run 1, Claude Code run 2, Antigravity run 1, Antigravity run 2. All three judges put the same Codex page first and the same Antigravity page last.

On these tasks:

Pick one small function your AI tool wrote. Change one minus to a plus. Run its tests. If they still pass, you may have found a gap. Tell me what happened in the comments.

The full page has every table, the chapter links into the video and the method: https://agenticlab.sunilprakash.com/field-notes/011-claude-code-vs-codex-vs-antigravity/

This is Day 1 of the series Claude Code, properly. The playlist: https://www.youtube.com/playlist?list=PLfDl8OpSqNng

── more in #ai-agents 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/claude-code-codex-an…] indexed:0 read:4min 2026-12-05 · —