game-micro-3d-kart-v0 3 / 4 Shipped Tier 2 models ยท n=1 per stack Three.js 3D Engine

3D Kart Racing Game Benchmark: Claude Code vs Codex CLI vs Antigravity CLI

Four AI coding agent stacks got the same prompt: build a single-file 3D arcade kart racing game with procedural Three.js models, a closed-loop circuit, drift physics, 2 AI rival karts, a 3-lap race, boost pads, item boxes and Web Audio sound. One autonomous run each, zero human help. Three shipped a playable game. Claude Code's game freezes about 10 seconds into the race.

4 Stacks 1 Run Each
3 / 4 Shipped (Manual Review)
0 Human Interventions
Sep 2, 2026 Run Date

๐Ÿ“Š Results by agent stack

1 prompt ยท 0 follow-ups ยท n=1
Agent stack Verdict Wall time Output tokens Reported cost Artifact
Antigravity CLI + Gemini 3.7 Flash
gemini-3.7-flash ยท effort medium ยท version not recorded
Ship 102.2s 25,734 unknown 71,650 B
Antigravity CLI + Gemini 3.8 Flash
gemini-3.8-flash-medium ยท effort medium ยท version not recorded
Ship 292.3s 87,460 unknown 76,152 B
Codex CLI + GPT-5.6 Luna
gpt-5.6-luna ยท reasoning medium ยท version not recorded
Ship 522.0s 26,036 unknown 25,465 B
Claude Code + Claude Sonnet 5
claude-sonnet-5 ยท default effort ยท version not recorded
No-ship: freezes 578.0s 62,317 $0.74 72,388 B

Wall time is measured around the CLI call. Tokens and cost are read from each CLI's own JSON log. Claude Code reports a list-price cost (total_cost_usd); Codex CLI and Antigravity CLI report tokens only, so their cost is unknown rather than estimated. Verdicts are manual review against the spec, not an automated test suite.

๐Ÿงฎ Token usage from run logs

Self-reported by each CLI
Agent stack Input tokens Cached / cache-read Output tokens Of which thinking
Antigravity + Gemini 3.7 Flash30,480025,7342,101
Antigravity + Gemini 3.8 Flash104,742290,28387,4606,691
Codex CLI + GPT-5.6 Luna451,139398,59226,0361,266
Claude Code + Claude Sonnet 54 + 26,391 cache write45,04062,31726,003

Each CLI counts tokens its own way, so compare within a column with care. Codex CLI counts cached input inside its input total.

๐Ÿ” Runtime checks (re-run Oct 31, 2026)

Headless Chrome
Agent stack Lines (wc -l) Console errors on load Responsive 40s after start Dependencies
Antigravity + Gemini 3.7 Flash2,0710YesThree.js CDN
Antigravity + Gemini 3.8 Flash2,2210YesThree.js CDN
Codex CLI + GPT-5.6 Luna71 (dense lines)0YesThree.js CDN
Claude Code + Claude Sonnet 51,8420No: hangs ~10s in, 2 of 2 triesThree.js CDN

โš ๏ธ Correction: Claude Code run changed to no-ship

When we first published this benchmark on Sep 3, 2026, the playable Claude Code game on this page and in the battle video was a copy with one line removed. We did not disclose that. On Oct 31, 2026 we compared the published file with the original agent output and found the difference.

The removed line sits in the AI kart steering code: while(diff<-Math.PI) diff -= -Math.PI*2>0?0:0;. The right-hand side is always 0, so once a rival kart turns hard enough the loop never ends and the tab freezes. In headless Chrome the unedited game stopped responding about 10 seconds after the start, in 2 of 2 tries. The other three kart games stayed responsive for the full 40-second check.

The page now serves the unedited output as the Claude Code build. The patched copy stays available and is labelled as patched. The original will freeze your tab, so use the patched copy to see the rest of the game.

๐Ÿ What each agent built

  1. Antigravity CLI + Gemini 3.7 Flash (102.2s): the fastest run. A stunt circuit with elevation and banking, 3D trees, a minimap radar and a camera FOV surge on boost pads.
  2. Antigravity CLI + Gemini 3.8 Flash (292.3s): rolling-hills terrain, speed-line effects, 3-lap split times and an engine sound whose pitch follows speed.
  3. Codex CLI + GPT-5.6 Luna (522.0s): a neon night track called Neon Apex with a 3-2-1 countdown and procedural audio, in the smallest file at 25 KB.
  4. Claude Code + Claude Sonnet 5 (578.0s): a Grand Prix circuit with tire smoke, an analog speedometer and a start arch. It froze once the race got going (see the correction above).

Notes from manual play, one run per stack. Not a reliability claim. See the methodology and the cross-benchmark comparison.

๐ŸŽฌ 2x2 battle video
Claude pane uses the patched copy
๐ŸŽ๏ธ 1p1a.com/game-micro-3d-kart-v0/apps/antigravity.html
Play Fullscreen โ†—

๐Ÿ“œ The frozen benchmark prompt

Sent verbatim to each agent CLI as its only input. Task version v0, frozen.

You are an expert Three.js game engineer. Build a complete, polished, bug-free, self-contained 3D Arcade Kart Racing game in a single standalone `index.html` file.

Zero external assets (no images, GLTF models, audio files, or CSS frameworks). Three.js must be loaded from a public CDN (e.g. `https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js`). All 3D models (karts, track, trees, arches, items) must be constructed procedurally using Three.js geometries and materials.

### Requirements:
1. 3D Race Track & Environment:
   - Closed-loop circuit with straights, sweeping curves, chicanes, and elevation changes or banked turns.
   - Distinct asphalt road surface, red-and-white alternating curb borders, and a 3D Start/Finish gantry arch with a checkered banner texture generated on canvas.
   - Surrounding environment: Low-poly terrain, decorative trees, tire barriers, and spectator stands or neon banners.
   - Proper lighting: Ambient lighting + Directional light with soft shadows enabled.

2. Kart Modeling & Arcade Physics:
   - Build procedural low-poly karts (chassis, 4 spinning wheels, spoiler, driver helmet/steering wheel).
   - Responsive arcade driving physics: Acceleration, maximum top speed, coasting friction, reverse, and proportional steering.
   - Drift Mechanic: Pressing Spacebar or Shift while turning initiates a drift. Drifting tightens the turn radius, emits tire smoke particles from rear wheels, and triggers a mini-turbo boost when released after a long drift.
   - Collision response: Hitting track barriers bounces the kart and reduces speed.

3. AI Opponent Racers:
   - Include 2 AI rival karts with distinct colored chassis (e.g., Red for Player, Blue and Yellow for AI rivals).
   - AI karts navigate track waypoints intelligently with smooth steering, dynamic speed adjustments, and basic obstacle avoidance.

4. Race System, HUD & Timing:
   - 3-Lap Grand Prix race structure.
   - Race Start countdown: 3 -> 2 -> 1 -> GO! (player and AI cannot move until GO).
   - Floating UI Overlay HUD displaying:
     - Current Position: 1st / 2nd / 3rd (calculated dynamically based on track progression and lap count).
     - Lap Counter: Current Lap / 3.
     - Live Lap Timer and Best Lap record.
     - Digital / Analog Speedometer (km/h or MPH).
     - Mini-map radar showing player and AI positions on the circuit.

5. Boost Pads & Collectible Power-ups:
   - Glowing neon Boost Pads placed on track that give an immediate 2-second Nitro boost with speed lines or camera FOV surge.
   - Collectible rotating 3D Item Boxes on track granting power-ups (e.g., Nitro Boost, Homing Missile, or Banana Trap).

6. Audio Synthesis (Zero External Files):
   - Real-time procedural sound effects synthesized via Web Audio API:
     - Dynamic engine acceleration sound (pitch scales with kart speed).
     - Tire screeching sound during drifts.
     - Boost pad activation chime.
     - Race finish victory fanfare.
   - Master Mute / Unmute sound toggle button.

7. Camera System & Mobile/Keyboard Controls:
   - Third-person smooth chase camera following behind the player kart with subtle banking tilt and velocity lag.
   - Controls: Arrow keys / WASD for driving + Spacebar for drift/item. Include on-screen virtual touch buttons for mobile/tablet play.

8. Complete State Flow:
   - Title / Start Screen ("Press Start Race") -> 3-2-1 Countdown -> Active Race -> Finish / Podium Result Screen with Lap Breakdown -> Restart Race button.

</> Embed this 1P1A benchmark

Copy this responsive HTML iframe snippet into your Substack, Blog, or Website: