Starts Nov 23Live Cohort 3 of Vibe Coding & AI Agents (Nov 23, 18:30 MSK): 3 weeks, 9 live hands-on sessionsCohort 3 (Nov 23) →
ReleaseInsight · On RadarHabr AI→ original

13 Codex Agents Raised Code Score From 5 to 8.5 Out of 10, But Burned Five Times More Tokens

A Habr author compared plain Codex with a team of 13 AI agents, each with a role such as architect, tester, or security engineer, on the task of building a "task manager in Angular and Rust." The team worked for 74 minutes instead of 13 and used 513 thousand tokens (units of text that are billed) instead of 99 thousand. In exchange, the author's rating of the code rose from 5 to 8.5 out of 10. For a prototype, one Codex is enough; for production code, the swarm is justified.

AI-processed from Habr AI; edited by Hamidun News
13 Codex Agents Raised Code Score From 5 to 8.5 Out of 10, But Burned Five Times More Tokens
Source: Habr AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHabr AI ↗
Editor-in-Chief
Key metric #1The swarm wrote 57 tests (21 backend, 29 frontend, 7 E2E); single Codex wrote none
PasswordsArgon2id and HttpOnly cookies instead of demo/demo123 and localStorage
Key metric #3The limit on the $20 plan was only about half used up

Everyone is talking about "agent swarms" right now, but few people measure what they cost or what they deliver. A Habr author tested this in practice. He used the subagent system built into Codex (helpers that each get their own role and their own part of the task), assembled a team of 13 such agents, and gave it the same request he gave plain Codex.

The result: the team worked for 74 minutes instead of 13 and used five times more tokens (a token is a unit of text by which limits and billing are calculated), but the author's own rating of code quality rose from 5 to 8.5 out of 10. This is a single experiment, and the author gave the ratings himself, but the token and time figures give a rare picture of the price of a multi-agent approach.

How the 13-agent swarm is organized

In Codex, the main instance acts as an orchestrator: it launches subagents in parallel or in sequence, each with its own context, and then merges the results into a common answer. There are two advantages. Some tasks can genuinely be parallelized, and models stay focused more easily when the context does not balloon. The downside is that more tokens are consumed overall.

The author did not take ready-made sets such as garrytan/gstack (140 thousand stars on GitHub, a project by Y Combinator chair Garry Tan) or wshobson/agents (42 thousand), and built his own. The team has 13 roles: analyst, architect, planner, frontend, backend, and database developers, devops, security engineer, UX/UI expert, two testers (unit and E2E tests), technical writer, and code reviewer. So that Codex would not have to guess whom to call and when, the author described the rules in an AGENTS.md file. The result is a template that can be copied into any repository. For each agent, its description can specify its own model and reasoning level (depth of reasoning).

What the measurements showed

The task for both runs: a web task manager built with Angular and Material, a server in Rust, an SQLite database, a login form, a task list, and the ability to add, edit, delete, and mark tasks as done.

Plain Codex finished in 13 minutes. The swarm took 74 minutes, that is, 5.7 times longer. The single agent used about 62 thousand input tokens; the swarm used 411 thousand. Output tokens were 36 and 102 thousand respectively, of which 12.8 and 74.4 thousand went to reasoning. Excluding cache, the total was 98.6 thousand versus 513.5 thousand, a 5.2x difference. With cache, the gap is much wider: 1.34 million versus 44.83 million tokens, that is, 33.5 times more. The main growth came from cached tokens: the main agent and the subagents repeatedly re-read the shared context.

In practice, though, the swarm did not burn through the limits. The five-hour limit on the $20-per-month plan was used up roughly by half, not fully. The author saved on costs and set all agents to the Luna 6 model with maximum reasoning.

What the time and tokens bought

Plain Codex scored 5/10. The backend fit into a single file of about 400 lines, and a working Angular UI existed, but there were no database migrations, no tests, and no API documentation. The inputs used demo data demo/demo123, the token was stored in localStorage, and there was no protection against password brute-forcing or Origin checking.

The swarm scored 8.5/10. The backend is split into modules, there are migrations and interface prototypes. 57 tests passed: 21 for the backend, 29 for the frontend, and 7 end-to-end. Passwords are stored with Argon2id, authorization goes through HttpOnly cookies, and there is protection against brute-forcing and Origin checking. Separately, a security audit report, API and architecture documentation appeared, and the README was expanded.

Practical takeaway

An agent swarm pays off when you need a carefully packaged result: security, tests, and documentation arrive as a by-product of roles that would otherwise have to be requested with separate prompts. If you need a quick prototype built on the principle of "it works, good enough," a single Codex pays off better: five times fewer tokens and 5.7 times faster.

The limitations should be kept in mind. This is one task and one run, and "quality" was assessed manually on architecture, security, tests, and documentation. In addition, part of the gain may have come simply from a detailed AGENTS.md rather than from the number of agents themselves. For teams that pay for API usage by the token, the 33x multiplier including cache needs to be calculated separately. On a subscription with limits, the cost turned out to be tolerable.

Story

Key Questions Answered

How the 13-agent swarm is organized?

In Codex, the main instance acts as an orchestrator: it launches subagents in parallel or in sequence, each with its own context, and then merges the results into a common answer. There are two advantages. Some tasks can genuinely be parallelized, and models stay focused more easily when the context does not balloon. The downside is that more tokens are consumed overall.

What the measurements showed?

The task for both runs: a web task manager built with Angular and Material, a server in Rust, an SQLite database, a login form, a task list, and the ability to add, edit, delete, and mark tasks as done. Plain Codex finished in 13 minutes. The swarm took 74 minutes, that is, 5.7 times longer. The single agent used about 62 thousand input tokens; the swarm used 411 thousand. Output tokens were 36 and 102 thousand respectively, of which 12.8 and 74.4 thousand went to reasoning.

What the time and tokens bought?

Plain Codex scored 5/10. The backend fit into a single file of about 400 lines, and a working Angular UI existed, but there were no database migrations, no tests, and no API documentation. The inputs used demo data demo/demo123, the token was stored in localStorage, and there was no protection against password brute-forcing or Origin checking. The swarm scored 8.5/10. The backend is split into modules, there are migrations and interface prototypes.

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Hands-On AI Engineering · Hamidun Academy

Build & Ship Production AI Agents Without Boilerplate Code

Start your free 72-hour trial at Hamidun Academy (academy.hamidun.com) — interactive lessons on Claude Code & Cursor, live Tech Radar, and production agent templates.

Start 72h Free Trial →Vibe-Coding Intensive
What do you think?
Loading comments…