Skip to main content

What it cost to split one coding task across 1, 3, 6 and 12 workers

One coding task cut for 1, 3, 6 and 12 agents, 39 attempts: one cheap agent solved it every time, and each added node made the bill higher

Updated 9 min readMarkdown

When you give a coding task to a team of agents, you cut it into parts, and each part goes to its own agent session. I call a part a node. Every extra node adds a boundary: a new session that has to read the code again and hand its work on to the next one. This article measures what that costs on one real task, cut for 1, 3, 6 and 12 workers.

In short

I took one real coding task and cut it into a graph of 1, 3, 6 and 12 worker nodes. The task, the models, the acceptance and the script that leads the graph stayed the same; only the cut changed. Each cut ran nine times, plus a control three times: 39 attempts.

I expected two things from splitting the task: that a team of agents would handle work a single agent could not, and that it would finish faster. Neither happened. One cheap agent solved the task in all nine attempts, and the finer cuts were not faster, while each added node made the work bigger and the bill higher: twelve nodes cost 1.9 times as much as one.

The takeaways are in section 4.

1. Setup

The task. A real change to the simulator of my System Design Game, a browser game in TypeScript. The simulator of this level is about 48,000 lines with its tests. The task adds a new way to read a shopping cart and makes the engine report honestly whether the customer got a fresh cart, a stale one, or an order built from a stale one. A worker gets a 107-line statement with eight rules, the files it may change and the commands that must pass. An accepted solution adds a few hundred lines of engine code and one to two and a half thousand lines of tests.

Models. Every worker is DeepSeek V4.1 Flash, a cheap coding model, in Hermes Agent, one fresh session per node. GPT-6 Luna reviews the whole change.

Acceptance. Code grades every attempt after the run: only allowed files changed, the type check, linter and about 1,200 fast tests pass, and a hidden test file the workers never see passes too.

The cuts. Every cut starts with a check of the untouched code and ends with an independent review and a final rerun of all checks. Only the build nodes between them change:

Cut Build nodes Widest layer How it is cut
1 1 1 one node does the whole task
3 3 1 a chain: the engine, then the supporting parts, then evaluations
6 6 3 a contract of names first, then three parts side by side, then the rest
12 12 4 the same parts, each split along a file or a rule
Figure 1: the four cuts as graphs side by side, with the three nodes that are the same in every cut in grey

The lead is a script, not a model. About 300 lines: a node starts when everything it depends on is accepted, at most three workers run at once, and the review must say PASS (two fix rounds at most). So the schedule is the same in every attempt and the lead adds no cost of its own.

2. Results

Cut Passed hidden tests Model calls Cost Wall clock Sum of node work
One node 9 of 9 188 $0.18 37 min 37 min
Chain of three 9 of 9 236 $0.21 39 min 39 min
Six, three side by side 9 of 9 302 $0.24 39 min 45 min
Twelve, up to four side by side 9 of 9 443 $0.34 48 min 61 min
Control: the same six, one at a time 3 of 3 258 $0.21 40 min 40 min

Means per attempt, review and final rerun included. The ranges are in the data linked at the end.

The cut did not decide success

Thirty-nine attempts, thirty-nine passes of the hidden tests. The cheap model solved the task as one node and as twelve. That also means the task was at the ceiling for this model, so the experiment shows the price of a cut, not its effect on the chance of success.

Each boundary has a price

A line through the attempts fits well:

  • Each added node cost about 23 model calls, 1.4 cents and 2.3 minutes of summed work.
  • Twelve nodes against one: 2.4 times the calls, 1.9 times the cost, 1.3 times the wall clock.
Figure 2: model calls of the build nodes against the number of build nodes, every attempt as a dot, with the fitted line; a second panel for cost

A boundary is a new session that reads the statement and the code again, does its part, runs its checks and writes a handoff. Each new session pays full price to read the code, while one long session reads most of it from the cache at a fiftieth of the price.

This price is not a constant of graphs. On another task of the same project, written up in What it took for five coding agents to beat one, the parts shared no file, and an added node cost about 3 calls over the whole attempt. Here all parts work on one engine. That is a likely reason for the difference, not a tested one.

Most of the extra work went into tests. Engine code stayed at about 400 lines (480 in the finest cut), while tests grew from 33 cases to 62: each node proves its own part. The extra tests did not change the result by any measure I have.

Why width did not pay

The sum of node work grew from 37 minutes to 61, and the wall clock barely moved: 37, 39, 39 and 48 minutes.

  • The wall clock is the longest chain in the plan. In every attempt that had the machine to itself it matched the longest chain of node times to within two seconds. And part of every plan cannot run in parallel at all: the starting check, the review with its fixes, the final rerun.
  • The cost comes from the number of nodes, not the width. The control ran the six-node plan one worker at a time: 258 calls and $0.21, against 302 and $0.24 side by side and 188 and $0.18 for one node.
  • Width could save little. Running in turn would have added only about 14% to the wall clock on average, less than the extra work the cut added.
Figure 5: the sum of node work and the wall clock per cut

3. What others found

Google's scaling study found multi-agent systems 2 to 15% worse than one agent on SWE-bench Verified, the coding benchmark, at the same token budget. A Cohere Labs paper found teams of coding agents beat a solo agent at 3 to 7 times the dollars. CAID reports that "wall-clock runtime is not substantially reduced despite parallel execution". I did not find one task with its cut held fixed and the number of pieces varied, which is what this experiment does.

4. What others can use

  1. Try one agent first. One cheap agent solved the task in all nine attempts for 18 cents an attempt. Decomposition pays only on a task one agent cannot finish.
  2. You can predict the speed-up from the plan. Add up the longest chain of nodes and the serial tail (starting check, review, final rerun), and you know the most parallel work can give. Here it was about 14%, less than the extra work the cut added.
  3. A number for the budget. On a task whose parts share code, each added node cost about 23 model calls, 1.4 cents and 2.3 minutes of summed work.
  4. A script can lead the graph. A fixed plan run by a 300-line script, with no model calls of its own, behaved the same way in every attempt, and that is what made the series measurable.
  5. Expect more tests. Each node proves its own part, so the finest cut wrote nearly twice the test cases. Limit it in the node instructions if you do not want it.

5. What I take from it

So far I see one conclusion: on this particular task, parallel work changes little.

  1. The extra tests are a side effect of the extra steps. A stricter prompt can probably hold them down.
  2. A larger graph is more likely to break. That is fairly obvious.
  3. On this task the overhead eats what parallel work gains.

It would be interesting to show whether more tests make the code more stable. How to show it is an open question.

6. Limits

  • One task, one pair of models, nine attempts a cut, twelve nodes at most. A larger task, a task not at the ceiling, or a stronger model may give other numbers.
  • I made the cuts myself, and the finest one may simply be a poor cut.
  • The control ran in daytime on a machine in use, the main series at night.

7. Data and code

Everything needed to check or repeat the series is public, in the experiment/s2 branch of the game's repository: the task, the plans of the four cuts and the control, the grader with its hidden tests, the scripts as they ran, one record per attempt, and the numbers behind the figures. SETUP.md there goes from a clean machine to one run.

References

  1. Yubin Kim and others, "Towards a Science of Scaling Agent Systems", arXiv 2512.08296v3, April 2026. https://arxiv.org/abs/2512.08296
  2. Keenan Samway and others, "Scaling Inference-Time Compute with Teams of Coding Agents", arXiv 2610.17471v1, October 2026. https://arxiv.org/abs/2610.17471
  3. Jiayi Geng and Graham Neubig, "Effective Strategies for Asynchronous Software Engineering Agents", arXiv 2603.21489v2, July 2026. https://arxiv.org/abs/2603.21489

The cost line of roughly 23 extra model calls per added node fits the idea that each boundary re-pays for reading the code, while one long session benefits from cache reads. That makes me wonder whether the fair comparison for the finer cuts is giving each node a pre-built compact context, such as a file map or the contract of names, instead of letting every session re-read the repo. Since all 39 attempts passed, the task sits at the model's ceiling, so a harder task or a weaker worker might be where decomposition starts to pay. It would be interesting to see whether the failure rate of the single node rises faster than the per-node overhead as the task grows.

I haven't tried a pre-built compact context. Each node already got the plan and its own short contract, and still re-reads the engine code it had to change, so a file map alone may not save much. On the ceiling I agree: 39 of 39 says nothing about where splitting starts to pay. A harder task with a weaker worker is the run I'd like to do next.

"Every extra node adds a boundary" is the finding in one line. Coming from construction estimating, it's the same math as splitting a small job between crews. Each handoff means someone reads the drawings again and measures what the last crew left, and on a job one carpenter can finish, the second crew mostly adds mobilization. Twelve nodes at $0.34 and 48 minutes against one at $0.18 and 37 is a clean way to show it. Keeping the lead as a 300-line script so it adds no cost of its own was a good control. Thank you for publishing the ranges.

Thanks! The crews picture fits well: on a job one carpenter can finish, the second crew mostly adds mobilization.

What stands out is that the cheap single worker was 9 for 9 while the 12-node graph just raised the bill. I'd be curious whether the cost curve flattens if the task is cut along file ownership instead of by step, since most of the overhead I've seen in multi-agent setups comes from workers re-reading shared context. Did you log tokens spent per handoff separately from tokens spent on actual edits?

No, I couldn't split it that way. The logs give tokens by type (cached, fresh, output) and by stage, not by what each call was for. On file ownership: in an earlier task the five parts shared no file, and each added agent cost about 3 extra calls instead of 23. Different task though, so it's a hint, not a test.

Running 39 controlled attempts across 1, 3, 6, and 12 nodes on a real 48,000-line TypeScript codebase—with a hidden test file plus 1,200 fast tests—is the kind of empirical multi-agent benchmark the field badly needs. Seeing a single DeepSeek V4.1 Flash worker solve all nine runs while a 12-node graph cost 1.9x more and finished no faster exposes the hidden handoff tax of artificial decomposition.

Every extra worker boundary forces cold-start file reading and interface re-verification. Splitting across parallel agents really only pays off when modules have genuinely independent state and frozen interfaces, rather than tight shared invariants inside one simulator engine.

Running 39 attempts across 1, 3, 6, and 12 nodes really exposes the hidden boundary tax—every handoff forces a fresh context read that blows past whatever parallelism you hoped to gain. Splitting small tasks rarely beats one focused loop.