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

A Team of 32 Claude Opus Agents Sped Up NumPy Code 18.9×, a Single Agent 3.7×

More AI agents do not always mean faster results. Replit tested this on speeding up NumPy, the Python library for numerical computing. In two hours, a single Claude Opus 5.5 agent sped up the tasks 3.7 times, and a team of 32 such agents sped them up 18.9 times. GPT-6.2 Astra, the best solo performer, was worse than a single agent in three of four tasks when it worked in a team of 32. Opus communicates through a shared board, while GPT agents message the coordinator privately, so the better design is a shared board rather than a dispatcher.

AI-processed from Habr AI; edited by Hamidun News
A Team of 32 Claude Opus Agents Sped Up NumPy Code 18.9×, a Single Agent 3.7×
Source: Habr AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHabr AI ↗
Editor-in-Chief
Key metric #1Opus 5.5 sent 82% of its messages to the shared board, while workers sent 1.4 private messages each
Key metric #2The GPT-6.2 Astra coordinator received 615 messages instead of 346 when the team doubled in size
Key metric #3In Git, all workloads sat in 15 files, and teams barely outperformed solo agents

Imagine hiring thirty more people for an urgent project and watching the work slow down instead of speed up. Fred Brooks described this effect back in 1975: if you add programmers to a project that is behind schedule, it falls further behind, because newcomers spend their time on coordination rather than on the work itself. The Replit team tested whether the same pattern holds for AI agents.

The task was to speed up code in popular libraries such as NumPy, which Python uses to compute on arrays of numbers. A single Claude Opus 5.5 agent sped up NumPy tasks 3.

7 times in two hours, which means they ran almost four times faster. A team of 32 of the same agents delivered a 18.9× speedup in the same two hours.

Meanwhile, with another model, GPT-6.2 Astra, the teams performed worse the larger they became.

How the Experiment Was Run

Replit released Optimization-Bench, a set of code-speedup tasks across 14 popular open-source libraries. Agents receive the source code, a realistic workload, and strict conditions: the output must remain unchanged, and caching between calls, tuning to specific inputs, and offloading work to external libraries are all prohibited. The report covers four projects in detail: NumPy (13 workloads), SQLite (12), SQLGlot (4), and Git (7 workloads across 15 files of the version-comparison library).

Each agent got 8 cores, 16 GiB of memory, and two hours. The team tested a single agent and teams of 8, 16, and 32 participants across six models: Claude Opus 5.5, Sonnet 5.5, GPT-6.2 Astra, GPT-6 Astra, GPT-6.1 Sol, and GPT-6 Luna. The agents were not told how to organize their work. The coordinator knew only the goal, so the teams had to divide tasks and merge branches on their own. Agents could communicate through private messages or a shared board, and each had its own isolated virtual machine.

Measurements were done carefully, because agents tend to cheat: METR documented cases where models overwrote the timer. The final branch was pulled into a closed environment, the code was rebuilt, hidden and generated tests were run, and timing was measured on a dedicated machine, alternating between the original and modified versions.

Who Benefits from Team Size

For Claude Opus 5.5, a team of 32 agents on NumPy delivered an 18.92× speedup versus 3.66× for a single agent. Opus and Sonnet outperformed single runs almost everywhere, and the larger the team, the better the result. The exception was Git: all of its workloads sit in the same 15 files, there is little to divide, and the agents got in each other's way.

GPT looked different. GPT-6.2 Astra was the strongest solo performer: on NumPy it sped up the code more than three times as much as a single Opus agent. But its teams worked best with eight agents, and at 32 agents the result was worse than a single agent in three of four tasks. GPT-6 Astra and GPT-6.1 Sol mostly failed to beat solo agents at all. The takeaway: a model's solo strength is a poor predictor of how it will behave in a team.

An example of a real optimization: the NumPy function searchsorted looked up the positions of millions of values in a sorted array, and the data was reloaded from memory at every step because it did not fit in the processor cache. The Opus team began processing values in batches of 256, so each batch stayed in cache until the search finished. They also skipped the slow NaN check when no NaNs were present. The result was a 8.7–13.1× speedup on large float64 arrays with the same outputs.

Why: Board Versus Dispatcher

The difference comes down to the communication scheme the teams set up for themselves. Opus 5.5 sent 82% of its messages to the shared board: each workload got its own thread, and workers posted notes such as "working on btree.c" and shared their findings. Opus workers sent the coordinator an average of 1.4 private messages. As the team grew, private messages per agent declined, from 4.9 to 1.0 on NumPy.

With GPT-6 Astra and GPT-6.1 Sol, the coordinator turned into a dispatcher: workers sent it an average of 22 and 20 private messages, respectively. On NumPy, the GPT-6 Astra coordinator received 615 messages instead of 346 when the team doubled, and on SQLGlot the Sol coordinator received 631 instead of 356, while scores barely rose. GPT-6.2 Astra showed a third pattern: hundreds of private messages went to the coordinator, which rarely replied and did not post to the board, so knowledge failed to reach the other agents and the information on the board went stale.

What This Means in Practice

First, do not scale the number of agents until you have checked how a specific model communicates. For one model, 32 agents give nearly a fivefold gain; for another, the team performs worse than one agent. Second, set up a public board with threads organized by task and file, and a rule that whoever claims an area works in it. This is cheaper than overloading the coordinator. Third, look at the structure of the code: many independent sections allow more agents to be added, while work spread across a few files is better handled by a small team.

There are limitations too. This is the first preliminary version of the benchmark, and only one task category was tested: performance optimization. The translator notes separately that the optimization itself is secondary here; the main subject is how the models interact. Replit has already built the results into its Missions product, where you set a goal and the platform launches a team of agents.

Story

Key Questions Answered

How the Experiment Was Run?

Replit released Optimization-Bench, a set of code-speedup tasks across 14 popular open-source libraries. Agents receive the source code, a realistic workload, and strict conditions: the output must remain unchanged, and caching between calls, tuning to specific inputs, and offloading work to external libraries are all prohibited. The report covers four projects in detail: NumPy (13 workloads), SQLite (12), SQLGlot (4), and Git (7 workloads across 15 files of the version-comparison library).

Who Benefits from Team Size?

For Claude Opus 5.5, a team of 32 agents on NumPy delivered an 18.92× speedup versus 3.66× for a single agent. Opus and Sonnet outperformed single runs almost everywhere, and the larger the team, the better the result. The exception was Git: all of its workloads sit in the same 15 files, there is little to divide, and the agents got in each other's way. GPT looked different. GPT-6.2 Astra was the strongest solo performer: on NumPy it sped up the code more than three times as much as a single Opus agent.

Why: Board Versus Dispatcher?

The difference comes down to the communication scheme the teams set up for themselves. Opus 5.5 sent 82% of its messages to the shared board: each workload got its own thread, and workers posted notes such as "working on btree.c" and shared their findings. Opus workers sent the coordinator an average of 1.4 private messages. As the team grew, private messages per agent declined, from 4.9 to 1.0 on NumPy.

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.
✦ Unified AI Workspace · Nomad

Test Frontier LLMs & Autonomous Agents in One Workspace

Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.

Try Nomad AI →Launch Nomad Agent
What do you think?
Loading comments…