Skip to content
GlanceHall
  • Builds
  • Models
  • Compare
  • How we test
Get the next round
  • Builds
  • Models
  • Compare
  • How we test
  • Journal
  • About
Get the next round

We don't rate. We let you see.

contact@glancehall.com

Watch

  • All builds
  • Models
  • Head to head
  • Journal

Trust

  • How we test
  • About
  • FAQ
  • Contact

Legal

  • Privacy
  • Terms
  • Cookies
© 2026 GlanceHallIndependent. Not affiliated with Anthropic, OpenAI or any model vendor.
Journal/Head-to-head

Claude vs ChatGPT for coding: the same briefs, one shot each, unedited

Claude vs ChatGPT for coding, measured: same prompts, one attempt, no edits. How each worked, how long it took, how much code it wrote and what broke, with every build open to inspect.

By GlanceHall · Published October 22, 2026 · 2 min read

For coding, Claude and ChatGPT behave like two different kinds of engineer. Given the same brief, the Claude models build, test and rebuild for an hour or more; the models behind ChatGPT write one considered pass and hand it over in ten minutes. Both ship working software. The shooter below shows the difference better than any summary: same prompt, same scripted input, one attempt each.

First-person shooter · same prompt, one shot, unedited
Blind testOpen side by side
Claude Opus 5.5
Open Claude Opus 5.5’s build
GPT-6 Astra
Open GPT-6 Astra’s build

Claude Opus 5.5 in Claude Code (left) against GPT-6 Astra in Codex (right). Open either build and play it.

How do Claude and ChatGPT approach a coding task?

Very differently, and the run logs show it. We ran Claude Opus 5.5 and Claude Fable 5.1 in Claude Code, and GPT-6 Astra and GPT-6.1 Sol in OpenAI's Codex, the agent behind ChatGPT's coding features.

On the first four briefsClaude (Opus 5.5, Fable 5.1)ChatGPT models (Astra, 6.1 Sol)
Wall time per build25 to 150 minutes7 to 20 minutes
Shell commands per build14 to 11810 to 26
Output tokens per build106,000 to 285,000 where recorded24,000 to 64,000
API-equivalent cost per build$7.15 to $20.48$0.54 to $5.64
Runtime errors in our recordings00

The Claude agents spend those extra commands checking their own work in a headless browser. Opus 5.5 issued 37 commands involving a local web server while building its shooter, so it could load and play what it had made.

Which one writes better code?

Claude writes more of it, and more ambitiously. Opus 5.5's shooter is 11 files and 251 KB of source; Fable 5.1's is 9 files and 165 KB; Astra's is 2 files and 63 KB and Sol's 3 files and 65 KB. The Claude builds have more systems in them, such as richer lighting, a minimap and more interface. The GPT builds are tighter and easier to read. If you will maintain the code yourself, the smaller GPT builds are easier to take over; if you want the most features from one prompt, Claude delivers them.

Software developer typing code on dual monitors at a wooden desk.
Photo by Lisa Fotios on Pexels.

Where does each one fall short?

Claude's weakness is knowing when to stop. Opus 5.5 was still refining its shooter when our 150-minute limit arrived, and its recording ends in a game over at 25 seconds. ChatGPT's weakness is sameness: GPT-6 Astra and GPT-6.1 Sol repeatedly produced near-twin builds, down to matching fonts and headlines on the landing page. Neither pair logged a runtime error, and on the analytics dashboard all four computed identical figures from the data, so correctness was not what separated them.

ModelFinishedWall timeOutput tokensFilesSource sizeRuntime errorsAPI-equivalent costAttempts
Claude Opus 5.5Yes2h 30mnot recorded (stopped at the 150-minute limit)11251 KB0—1
Claude Fable 5.1Yes1h 14m239k9165 KB0$20.482
GPT-6 AstraYes19m 43s64k263 KB0$5.641
GPT-6.1 SolYes13m 19s61k365 KB0$1.031

So, Claude or ChatGPT for coding?

Claude for the hard, open-ended build you want done right in one go; ChatGPT for fast iterations and anything cost-sensitive. My working rule: if a human would spend a day on it, let Claude Code spend an hour; if a human would spend an hour, let Codex spend ten minutes. Then judge the output, ideally without knowing which is which.

Four shooters, names hidden. Which one would you keep working on?

Take the blind test
A programmer with headphones focuses on coding at a computer setup with dual monitors.
Photo by hitesh choudhary on Pexels.

Frequently asked questions

Is Claude or ChatGPT better for coding?

Claude is more thorough and ChatGPT is faster and cheaper. On our briefs the Claude models ran their own code dozens of times and shipped larger, more elaborate builds; the GPT models finished complete, working builds in 7 to 25 minutes at a fraction of the cost.

Is Claude Code better than ChatGPT for coding?

Claude Code is an agent that edits files and runs commands, so the fair comparison is with OpenAI's Codex, which does the same and uses the models behind ChatGPT. That is exactly what we compared: identical briefs, each agent with its vendor's top models.

Which writes more code, Claude or ChatGPT?

Claude, by a lot. Claude Opus 5.5's 3D shooter was 11 files and 251 KB of source; GPT-6 Astra's was 2 files and 63 KB. More code is not automatically better code, which is why the builds are there to inspect.

Did either one produce broken code?

No build logged a runtime error during our recordings. The clearest weaknesses were elsewhere: Claude Opus 5.5 did not finish the shooter within our 150-minute limit, and two of the four shooters end in a game over before the scripted input runs out.

Judge the builds yourself.

Eight briefs, four models, nothing edited. Watch them side by side or take the blind test.

Watch the buildsHow we test

Keep reading

Head-to-headIs Claude better than ChatGPT? Decide in 60 seconds with a blind testIs Claude better than ChatGPT? Stop reading opinions and test it: four builds from the same prompt, names hidden, you pick before the reveal. Here is how, and what the builds show.October 22, 2026Coding agentsClaude vs Claude Code: what's the difference, and does it change what gets built?Claude is the model and the chat app; Claude Code is the agent that writes, runs and tests code on your machine. Here is how they differ, what each costs, and why the harness changes the result.October 22, 2026Best AI for…Best AI for coding in 2026: judged by what it builds, not by a scoreThe best AI for coding is a model plus the agent that runs it. We gave Claude Code and Codex the same briefs with their top models. Here is what each built, how long it took and what it cost.October 22, 2026