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.
The setup
Three tasks:
- Small: add splitting by item, with a tip, to an app that splits a restaurant bill, and fix one bug.
- Hard: a trip expense app with nine planted bugs, four features to build, and two tests that were wrong on purpose.
- The page: build one web page for the trip app from a written brief. No design given.
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.
- Claude Code 2.1.335 (task 1) and 2.1.336 (tasks 2 and 3), model Fable 5.2
- Codex CLI 0.173.0, model GPT 6.2 Astra
- Antigravity CLI 1.5.23 (tasks 1 and 2) and 1.5.24 (task 3), model Gemini 4 Neon
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.
Time
Minutes and seconds, run 1 then run 2, on the hard task:
- Codex: 10:06 and 11:33
- Antigravity: 15:30 and 16:53
- Claude Code: 34:21 and 42:00
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.
Do its own tests catch a bug?
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: 101 and 97
- Codex: 100 and 98
- Antigravity: 72 and 73
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.
What it tells a user who gets it wrong
I typed an amount in Arabic digits. All three refuse it:
- Codex:
error: invalid amount - Antigravity:
error: invalid amount: '١٢٠٠' - Claude Code:
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.
When the task says nothing
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.
The tool, or the model inside it?
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.
A web page from a brief
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:
- Codex: 16:40 and 15:02
- Antigravity: 18:11 and 21:52
- Claude Code: 50:31 and 47:56
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.
Corrections
- My page checker had two bugs. It read a button named "Add expense" as "+ Add expense", because of a plus sign the page keeps out of the name for screen readers. And it read a data block the browser never draws as page text. The first grading gave 45 and 43 (Claude Code), 28 (Codex run 2), 45 and 43 (Antigravity). After the fix every page passes 45 of 45.
- Runs stopped by a usage limit were run again once, as the rules written before the runs say: Claude Code run 2 on the hard task, and Codex run 1 on the page.
- Antigravity with Opus could not run on the page task (its quota was used up), so the page round has no fourth page.
- Small sample: three tasks on two small apps, two runs per tool. Gaps of a few points mean nothing.
Which one I would pick
On these tasks:
- For a quick, well tested change, Codex.
- When the code meets real users, Claude Code, and give it the time.
- Antigravity, in my one swap, was only as good as the model inside it.
Try this
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

