All postsLONG-FORM7 min read
Multi-Agent vs Single-Agent: My Codex Coding Test
I tested one Codex builder against four on one small Python job in two versions: tied hidden scores, 2.15 to 2.58 times the reported tokens, and ten judge rejections.
In my test, four Codex builders tied one builder on hidden tests and used about 2 to 2.6 times the tokens as the Codex CLI reports them. A separate judge rejected all 10 runs and found a bug every Job A build shared with my own reference solution. Passing my hidden tests left a real gap.
For Episode 29 of 500x Engineer, I tested November 25, 2026: one small Python job in two versions, one model at medium effort, four workers, and two or three repetitions per setup. Both setups received the same separate review process and one fix. I ran neither Replit Missions nor Cursor's swarm.
What Replit launched
Replit launched Missions November 17, 2026. Replit describes agents planning, building, testing and retrying within agreed budgets and boundaries. Its agreement covers approach, success criteria, budget and boundaries. The criteria describe outcomes that can be checked against the deliverable.
Replit describes an independent AI judge checking those criteria and returning feedback. Here, independent describes a separate review role; it establishes no different provider or certification. Replit's evaluator can accept completion or identify remaining work.
Replit's product page says users approve budget increases. Its docs add these caveats, in their words:
Work already running can take AI spending slightly over the budget before it stops. The budget does not guarantee that the mission will succeed within that amount.
Automated completion is not a guarantee that the result is correct or meets your expectations. Review the deliverable against your agreed success criteria and tell Replit about any unmet requirements.
Replit's numbers
Replit says its own tests covered 13 NumPy tasks, exploring alternative implementations and validating correctness automatically. In Replit's tests, Auto (Max) produced implementation speedups of up to 4× with one agent, 17× with 16 agents and 19× with 32 agents. Replit's Auto (Power) results were 2×, 7× and 9×, respectively.
Those figures measure resulting program runtime, leaving time to finish coding unmeasured. Equal spending, task-level distributions and repeated-run variation remain unresolved. I cannot turn Replit's runtime results into a prediction about my wait for finished code.
What a swarm is
A planner divides the goal, workers implement pieces, and a judge reviews the result against criteria. Someone must define how pieces connect and combine their changes.
Cursor's July 20, 2026 article supplies background: planners never implement, and workers never plan. Cursor suspects keeping each role's context focused helps scaling; that explanation is its hypothesis. Cursor also reports file collisions, overwritten changes and abandoned work. Its main comparison concerns swarm harnesses, while solo runs were graded informally. That leaves the controlled one-builder comparison unresolved.
In my test, ownership assigned files; interfaces specified how modules called each other.
My test
The job was a standard-library Python order-report tool: parse orders, apply bulk and coupon discounts, compute tax, total customers and print JSON. Money used Decimal. Job A pinned these signatures in lab/template/SPEC.md:
parse_orders(text: str) -> list[Order]
line_subtotal(line: Line) -> Decimal
order_discount(order: Order) -> Decimal
order_net(order: Order) -> Decimal
order_tax(region: str, net: Decimal) -> Decimal
build_report(orders: list[Order]) -> dict
main(argv: list[str]) -> int
I supplied six visible tests and 32 hidden tests with expected values derived by hand. My reference passed them; bare stubs failed them. Before agent calls, I encrypted the hidden tests and reference, recorded SHA-256 hashes in LOCK.txt, and deleted plaintext. I graded saved build and final snapshots afterward. A later log check found no reads of hidden tests, answers or other runs' files.
I wrote the protocol before the first run. It planned two repetitions per setup; an amendment added the third before any hidden score had been computed.
Every call used GPT-6.1 Sol at medium reasoning effort, a fresh session and the same spec, with no web search or shell network. I used Codex CLI 0.167.0 on an Apple M5 Max with 128 GB memory.
One builder implemented the whole package. Four parallel workers had separate copies and owned parsing; pricing; tax plus command line; and reporting. I merged only assigned files. Both setups then received a separate read-only judge and one repair call after rejection. I stopped there, with no second judge.
Job B: let agents define the interfaces
I designed Job B after seeing Job A's perfect hidden scores. The business rules stayed, while the contract became looser:
How the modules call each other (function names, arguments, return types) is up to you.
Job B supplied three visible tests and 26 hidden command-line checks. I self-checked and locked those tests, along with Job A answers, before Job B calls. The swarm received a planner first to write INTERFACES.md, followed by the same four worker assignments. Its planner's tokens and elapsed time count. I ran two repetitions per setup.
Results in my test
Tokens below are as the Codex CLI reports them. Lists follow repetition order. Totals per run include the judge and fix, plus Job B's swarm planner.
| Job | Setup | Runs | Hidden after build | Hidden final | Total tokens per run |
|---|---|---|---|---|---|
| A | One builder | 3 | 32/32; 32/32; 32/32 | 32/32; 32/32; 32/32 | 65,634; 59,516; 48,458 |
| A | Four builders | 3 | 32/32; 32/32; 32/32 | 32/32; 32/32; 32/32 | 120,967; 135,581; 117,088 |
| B | One builder | 2 | 26/26; 26/26 | 26/26; 26/26 | 39,524; 59,987 |
| B | Four builders + planner | 2 | 26/26; 26/26 | 26/26; 26/26 | 125,201; 131,579 |
Every build passed every hidden test before and after repair. Visible tests passed; models.py stayed unchanged. On this job, hidden scores could not distinguish the setups. The repairs changed none of those scores.
Cost and time
In my test, Job A used 373,636 swarm tokens against 173,608 solo: 2.15 times. Job B used 256,780 against 99,511: 2.58 times. Builder calls alone had ratios of 4.05 for A and 3.50 for B; that excludes the planner. These workflows had different token budgets, so this comparison does not isolate equal-token efficiency.
I count the CLI's tokens used footer. The CLI does not say whether cached input counts. These calls ran on a subscription; I make no conversion to dollars.
Time from start to builders done in Job A was [69, 53, 55] seconds solo and [48, 43, 48] seconds swarm. Means were 59 and about 46.3 seconds. However, solo-r1 overlapped a research call and started at load average 92.78. Excluding it and its paired swarm run leaves 54 versus 45.5 seconds, about 10 seconds sooner for the swarm in my test. Its 400-second fix supports no speed claim.
Job B took [62, 73] seconds solo and [115, 101] seconds swarm, including planning: means of 67.5 and 108 seconds. These timings end before review and repair. Run order was fixed, load varied and the sample was small.
The judge found my grading gap
In my test, the judge rejected 10 of 10 runs. Its prompt explicitly demanded a “strict reviewer” checking edge cases beyond visible tests.
Every Job A judge flagged Decimal's default 28-digit precision. Valid prices with 29 or more digits could lose digits or crash, although my spec required exact subtotals and imposed no price limit. My reference shared that bug.
I replayed three judge examples against all six Job A builds. Before repair, 18/18 checks crashed; my reference crashed on all three too. After repair, 18/18 returned exact amounts. Those repairs worked on those inputs. No hidden test covered them.
Job B judges flagged quantities beyond Python's default 4,300-digit integer conversion limit; their examples contained 4,301 digits. One solo judge flagged SAVE5 and save5 being treated as conflicting coupons across order lines. Separately, the swarm planner's contract required case-sensitive consistency between lines while pricing was case-insensitive. I'd review that ambiguity before treating the judge's interpretation as settled. Another judge flagged large-price tax and aggregation failures. I have no equally broad replay for every Job B issue, and no second judge certified all fixes.
How I'd use this — opinion
On this job, I'd value separate review more than extra builders. I'd split work with clear interfaces and file ownership, and keep tightly connected edits with one builder. Before adding workers, I'd define what each piece receives, returns and owns.
I'd preserve a judge's failing input and rerun it after repair, set a stop rule, and test my own reference beyond grading cases.
What I did not test
NOT tested: any other model or effort, Replit Missions, Cursor's swarm, more than 4 workers, a large or long job, a vague spec.
How to reproduce the workflow
The lab scripts are described here and are not published as a repo. lab/run_lab.sh runs Job A; lab/run_more.sh adds its third repetition. lab/run_lab_b.sh runs Job B. lab/selfcheck.sh, lab/selfcheck_b.sh and lab/lock.sh prepare grading; lab/grade_all.sh and lab/grade_b.sh grade saved snapshots. lab/judgecheck.sh replays the large-price examples; lab/leakcheck.sh checks logs. Preserve the specs, prompts, ownership, locking order and stop rule when adapting the workflow.
Disclosure: this channel's pipeline runs on Claude (Anthropic) and Codex (OpenAI) subscriptions. This test uses Codex.
Daily email
Get each breakdown in your inbox.
One email each evening, right after the Short goes live: the AI tool it covers, the full write-up with sources, and how to get paid for it. Free, and you can unsubscribe anytime.
Sources
- Replit Missions launch, November 17, 2026: product description and Replit's own NumPy tests.
- Missions docs: agreement, evaluator and caveats.
- Missions product page: budget approval.
- Cursor's July 20, 2026 background: roles and coordination limits.
- OpenAI's token explainer: token background; it establishes no accounting definition for my CLI footer.
- My November 25, 2026 measurements:
lab/RESULTS.md,lab/PROTOCOL.md, both specs, runner prompts andlab/judgecheck.txt; factual support is recorded in the episode claims ledger.