Skip to content
Agent Engineering Lab

FIELD NOTE · FN-011

Claude Code vs Codex vs Antigravity: all three passed, so what differs?

Three AI coding tools, the same three tasks, two runs each. All three passed every hidden check. So I looked at what the checks don't show: how strong their own tests are, what they tell a user who gets it wrong, what they do when the task is silent, and the web page each one built from a brief.

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 page is about what the checks don’t show: how strong each tool’s own tests are, what it tells a user who gets something wrong, what it does when the task says nothing, and what a web page built from a written brief looks like. Every number here comes from the run files.

Claude Code vs Codex vs Antigravity: Same Real Task. Day 1 of the series Claude Code, properly.

Chapters:

  • 0:00 The race
  • 0:59 Do its own tests catch a bug?
  • 2:15 How the test was run
  • 3:18 What it tells a user who gets it wrong
  • 4:04 When the task says nothing
  • 5:12 What the extra time bought
  • 5:41 The tool, or the model inside it?
  • 6:28 A web page from a brief
  • 8:34 Which one I would pick

The finding in one line

All three passed every hidden check, so look at what the checks don’t show.

A check tells you the code does what the task asked. It doesn’t tell you whether the tool’s own tests would catch the next bug, whether its error messages help anyone, or what it decided where the task was silent. That’s where these three differed.

The setup

Three tasks.

  1. Small: add splitting by item, with a tip, to an app that splits a restaurant bill, and fix one bug.
  2. Hard: a trip expense app with nine planted bugs, written up as user reports, four features to build, and two tests that were wrong on purpose. The task said the docs win over the code and the old tests.
  3. The page: build one web page for the trip app from a written brief. No design given. All three started from the same working copy of the trip app, my own, not from their task 2 code.

One prompt, the same 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.”

Two scored runs per tool on each task. A time cap of 30 minutes on the small task and 60 on the other two. No run reached it.

Tools and models:

ToolVersionModel
Claude Code2.1.335 (task 1), 2.1.336 (tasks 2 and 3)Fable 5.2
Codex CLI0.173.0GPT 6.2 Astra
Antigravity CLI1.5.23 (tasks 1 and 2), 1.5.24 (task 3)Gemini 4 Neon

Each ran at the setting its tool calls extra high, inside its own sandbox, on a paid subscription, with no API keys set. None of my own plugins, skills or MCP servers were loaded. I did not compare cost.

One more run on tasks 1 and 2: Claude Opus 5.5 inside Antigravity, at high, the top setting Antigravity offers for it. That run asks whether a result comes from the tool or from the model.

The checks came first. None of the tools could see them.

  • Small task: 15 hidden checks, written before any run. All three passed all 15, so I wrote 18 harder ones before I opened any tool’s code. They include 200 random bills that must add up to the paisa.
  • Hard task: 80 hidden checks, written and checksummed before any run. I proved they can fail: I planted 22 mistakes in my own solution, one at a time, and the checks caught all 22.
  • The page: 45 checks in a real browser, at phone size (390 pixels wide) and laptop size (1,440), written and checksummed before any run. Planted mistakes in a copy of my own page: 32, all caught. Thirty were planted before the runs, two more when I fixed the checker (see the corrections).

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.

Did the code work?

Yes, for all three, in every run.

TaskChecksResult
Small15 hidden, then 18 harderAll passed, every run
Hard80 hiddenAll passed, every run. No crash on 67 odd inputs.
The page45 in a browserAll six pages passed all 45, after a fix to my checker

So the differences are somewhere else.

Time

Minutes and seconds, run 1 then run 2.

ToolSmall taskHard taskThe page
Codex3:40, 3:2510:06, 11:3316:40, 15:02
Antigravity9:36, 9:5215:30, 16:5318:11, 21:52
Claude Code6:22, 5:3034:21, 42:0050:31, 47:56
Antigravity with Opus 5.5 (one run)3:0311:27did not run

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.

Do its own tests catch a bug?

Each tool also wrote its own tests. If a bug slips in later, would those tests catch it?

I broke each tool’s code on purpose, one small change at a time, and ran its own tests. A change is a flipped comparison, a plus swapped for a minus, a bumped number, a dropped error. If the tests still pass, that’s a gap a real bug could slip through.

Here is one from the small task. Once the tip is added, this line decides who pays the one paisa left over. Codex and Claude Code wrote almost the same line:

# Claude Code, run 1
by_remainder = sorted(exact, key=lambda name: exact[name] - shares[name], reverse=True)

# Codex, run 2
by_remainder = sorted(exact, key=lambda name: exact[name] - whole[name], reverse=True)

In both, I changed the minus to a plus. Now the order follows the size of each share instead of the fraction left over. The bill’s total doesn’t change, so nothing looks wrong. Codex’s tests in that run still passed. Claude Code’s caught it.

That looks like a win for Claude Code. It isn’t. Codex’s other run caught a change just like it. So on the hard task I made 120 breaks in each tool’s own code:

ToolRun 1Run 2
Claude Code101 of 120 (84%)97 of 120 (81%)
Codex100 of 120 (83%)98 of 120 (82%)
Antigravity72 of 120 (60%)73 of 120 (61%)
Antigravity with Opus 5.589 of 120 (74%)

Claude Code and Codex are level. The gap between them is smaller than the gap between one tool’s own two runs. Codex got there with about a quarter of the test code: 484 lines of tests in run 1, against Claude Code’s 1,897.

The 120 breaks are a sample, picked with a fixed seed from each run’s own code. So each tool is tested on breaks in its own code, and a gap of 3 points or less means nothing.

What it tells a user who gets it wrong

Tests protect the developer. What about the person using the app?

I typed an amount the way it is written in Arabic digits. All three refuse it. The replies are word for word:

  • Codex: error: invalid amount
  • Antigravity: error: invalid amount: '١٢٠٠'
  • Claude Code: error: bad amount '١٢٠٠': use digits with at most two decimals, like 1200.50

Codex names the problem. Antigravity also shows what I typed. Claude Code shows what I typed and gives a format that works.

Then 27 inputs where the fault is inside a file the user passed: the ledger, the rates file or the bank file. Every run refuses all 27. Does the error say which file?

ToolError names the file (of 27)
Claude Code27 and 27
Codex4 and 4
Antigravity10 and 12
Antigravity with Opus 5.527

Codex does give the line number for a bank file (“line 2: invalid amount”), but not the file.

When the task says nothing

A negative tip. The small task never mentions one. So what should the app do with a tip of minus ten percent? Refuse it, or treat it as a discount?

  • Claude Code refuses it.
  • Antigravity refuses it.
  • Codex accepts it, and takes ten percent off the bill.

Neither answer is wrong, because the task was silent. But Claude Code listed that choice in its final message. Codex didn’t mention it.

A bank file saved the way Excel saves a CSV. Excel puts an invisible mark at the start of the file. The task lists the columns and says nothing about the mark. The file was simulated, made by my checks in the way Excel writes one.

  • Claude Code reads it.
  • Antigravity reads it.
  • Codex refuses it, on both runs. In run 1 it said error: line 1: invalid bank file header.

A judgement call again, not a bug, and outside the scored checks. But plenty of people export their bank statements from Excel.

What the extra time bought

On the hard task, Claude Code took 34 and 42 minutes. Codex took about 10 and 12. So what did the extra time buy?

Not stronger tests. Codex matched them in under a third of the time. Not the bank file. Antigravity read it too, in less than half the time.

What stood out was care for the person on the other side: errors that named the faulty file every time, and a final message that told me what it had decided. I can’t prove the minutes caused that. But that is what came with them.

The tool, or the model inside it?

On the small task Antigravity took nearly ten minutes, the slowest of the three. And its tests caught the smallest share of breaks on both tasks. Is that the tool, or the model inside it?

Antigravity lets you pick the model. So I swapped Gemini 4 Neon for Claude Opus 5.5 and ran each task once more.

Antigravity withSmall taskHard taskBreaks caught (hard)Errors that name the file
Gemini 4 Neon9:36, 9:5215:30, 16:5372 and 73 of 12010 and 12 of 27
Claude Opus 5.5 (one run)3:0311:2789 of 12027 of 27

One run can’t prove the cause. Opus also ran at high, the others at extra high. But it shows how much the model inside the tool matters.

A web page from a brief

The last job. All three got my working version of the trip app and a written brief for one web page: who owes what, who pays whom, the expenses, and a form to add one. No design to copy. It has to work on a phone 390 pixels wide and on a laptop, with a keyboard alone, and pass an automated accessibility checker (axe-core). Plain HTML, CSS and JavaScript, with nothing loaded from the internet.

ToolTimeChecks passed (of 45)Screenshots it took of its own page
Codex16:40, 15:0245 and 4515 and 8
Antigravity18:11, 21:5245 and 459 and 9
Claude Code50:31, 47:5645 and 4544 and 48

So the checks didn’t separate them. The clock did, again. Every page showed the balances for a trip of 30,000 expenses in under 0.1 seconds, against a limit of 2.

Antigravity has its own browser tools. It didn’t use them on this task. All three used the same screenshot helper, which I gave each of them.

The look, ranked blind. Checks can’t score how a page looks. So I ranked the six pages myself, blind: two pages from each tool, no names, and before I saw any judge’s answer. Three AI judges, one from each maker, compared the pages two at a time without names, on a written list: clear at a glance, hierarchy, spacing and alignment, type, colour, how errors look, and how it feels on a phone. Each judge ran on its maker’s model from the runs.

PlaceMe, blindAnthropic judgeOpenAI judgeGoogle judge
1Codex run 1Codex run 2Codex run 2Codex run 2
2Codex run 2Codex run 1Claude Code run 1Claude Code run 1
3Claude Code run 1Claude Code run 1Codex run 1Claude Code run 2
4Antigravity run 1Claude Code run 2Claude Code run 2Antigravity run 1
5Claude Code run 2Antigravity run 1Antigravity run 1Codex run 1
6Antigravity run 2Antigravity run 2Antigravity run 2Antigravity run 2

The OpenAI judge had places 2 to 4 level on wins, and the Google judge places 3 to 5. Those are ordered by the points each page won on the seven items.

The three judges added together, wins out of 15: Codex run 2 15, Claude Code run 1 10, Codex run 1 9, Claude Code run 2 7, Antigravity run 1 4, Antigravity run 2 0.

My first was a Codex page, with the trip’s totals on top. All three judges put the same Codex page first and the same Antigravity page last. And Claude Code’s fifty minute pages? Third and fifth for me.

Did any judge favour its own maker? The Google judge put Antigravity run 1 one place higher than the other two judges did. The Anthropic judge placed the two Claude Code pages third and fourth, lower overall than the other two judges did.

Corrections and things you should know

My page checker had two bugs. From the video’s description, word for word:

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.

RunFirst gradingAfter the fix
Claude Code, run 14545
Claude Code, run 24345
Codex, run 1graded only after the fix (the rerun, below)45
Codex, run 22845
Antigravity, run 14545
Antigravity, run 24345

Both bugs were mine, not the pages’. Before I changed anything, I checked that the pages were right and the checker was wrong. The fix was kept as small as the fault, and the checks themselves didn’t change. Then I proved the fixed checker still works: all 32 planted mistakes are still caught, and 14 copies of my page built in other fair ways still pass all 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. The Opus run in Antigravity on the hard task was also stopped by its quota and run again once, under the same rule. A run cut off by a limit never counts as a finish time.

Antigravity with Opus could not run on the page task. Its quota was used up, so the page round has no fourth page. The model swap numbers come from tasks 1 and 2 only.

One more on sandboxes. When Antigravity’s sandbox blocked a command, it asked to run it outside, and my session rule allowed that. So some of its test commands ran outside its sandbox.

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.

Keep it in proportion: three tasks on two small apps, and each tool did each task twice. All three ran on subscriptions, so I could not compare cost fairly.

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 under the video.

Next in the series: Claude Code inside VS Code, from setup to the first real task. Every video so far is on the Videos page.

All three passed every hidden check. So look at what the checks don’t show.

Sources

  1. Sunil Prakash (2026) Claude Code vs Codex vs Antigravity: Same Real Task (the video)
  2. Sunil Prakash (2026) Claude Code, properly (the series playlist)
  3. Deque Systems axe-core: the accessibility checker used in the page checks (version 4.14.1)