Urgent.News

What's breaking now, across thousands of outlets.

AI

I asked Claude Code, Codex, and Antigravity to build the same game, and one absolutely crushed the others

I wanted a game, so I made three

I asked Claude Code, Codex, and Antigravity to build the same game, and one absolutely crushed the others

Two weeks ago, a number was published stating that a Claude Code subagent costs around 436,000 tokens before it reads a single file. The same measurement method was repeated in two articles, but today a cleaner measurement yielded a different result: 54,154 tokens. This discrepancy is more significant than the actual number, as it exposes the flaw in the initial approach.

The original method involved running the same review task with multiple agents and attributing the difference to per-agent overhead. However, this method was flawed as it counted the same 54,154 context tokens multiple times, inflating the actual spawning cost. The cleaner measurement involved spawning a minimal subagent with a simple prompt, resulting in a single request containing 54,154 tokens in the agent's transcript file.

This revealed that the original 436,000 token cost was not the actual spawning cost but rather the cost multiplied by the number of times the context was thought to be paid for. The break-even analysis was redone, showing that delegating a read becomes cheaper than doing it in the main loop when the inline reading cost exceeds approximately 33,000 tokens.

This correction has important implications for measuring the cost of using Claude Code subagents, as it highlights the importance of accurate measurement methods to avoid overestimating the true cost.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

This story

This is one outlet's version. Read the fullest account.

Read the original at xda-developers.com →

More in AI

How to Build an AI Agent That Works 24/7

How to Build an AI Agent That Works 24/7 Building an AI agent that works 24/7 is a game‑changer for businesses seeking continuous automation, real‑time insights, and round‑the‑clock customer…

More from Sunday 30 August →