2026-11-26 15:39 UTC

Replit releases Optimization-Bench; swarm gains vary by model and task

state: seedheat: highuncertainty: mediumrelevance: highagent-swarms code-optimization benchmarksReplitVaibhav KumarMichele Catasta

What is this?

Replit released Optimization-Bench, an open-source benchmark for testing whether AI agents can speed up real workloads in pinned versions of open-source libraries while preserving behavior. In a November 19, 2026 post, Replit researchers including Vaibhav Kumar and Michele Catasta report tests across NumPy, SQLite, SQLGlot, and Git using six models and teams of one, 8, 16, or 32 agents. Replit says results depended on the model and how separable each task’s work was: Claude Opus 5.5’s NumPy median speedup rose from 3.66× alone to 18.92× with 32 agents, while GPT-6.2 Astra, the strongest solo model in their tests, often lost ground as its teams grew. These are company-reported benchmark results; the supplied evidence contains no independent replication.

Why it matters

The release offers both a benchmark for open-ended code optimization and evidence that adding agents does not automatically improve results. If the reported gains generalize, coordinated swarms could search and test optimizations beyond what a single agent finds, potentially making performance engineering cheaper or more accessible. The contrasting model results point to coordination design—not just raw model capability or team size—as a key factor. Scope remains uncertain: the evidence is Replit’s own prerelease benchmark on selected libraries and workloads, and the results do not establish equivalent gains in production systems.

Current assessment

New: Replit announced Optimization-Bench and published results from four of the 14 libraries in its initial prerelease. The benchmark evaluates speed improvements against strict behavioral constraints; Replit describes hidden-input timing, a separate evaluation VM, and checks intended to prevent test overfitting or reward hacking. Replit reports that Opus 5.5’s median NumPy speedup increased from 3.66× for one agent to 18.92× for 32, while GPT-6.2 Astra led solo runs but its 32-agent results fell below its solo score on NumPy, SQLGlot, and Git. The post attributes variation to task structure and swarm organization: independent workloads gave agents more distinct work, while overlapping code and coordinator-heavy messaging could create bottlenecks. Replit also gives a NumPy searchsorted example with reported 8.7–13.1× gains on particular inputs; this is an illustrative case, not evidence that every workload sees similar gains. The benchmark repository is linked, and Replit says it plans to add tasks in other software domains; those additions are future plans, not established results. Treat all performance findings as first-party claims until independently reproduced. The reported figures are medians on selected workloads under a two-hour budget and do not establish production speedups, cost-effectiveness, or general scaling laws.

Measured heat

now 0 pts/hpeak 2 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 194h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-18 13:00⭐ origin echo-reconstructedThis is the original primary source: Replit’s article reports its own Optimization-Bench experiments and results, rather than republishing a
Replit on blog (echo) · attributed from hn.story.50596818
—
11-22 06:19first on hacker news · published · +89.3hWhy agent swarms get better at optimizing code as they grow
DonAtimator
—
11-22 06:19amplified on hacker news 👑hn.story.50596818
DonAtimator
peak 2 · 0 comments · 103% of case engagement
11-22 07:20our radar first saw it · +90.3hdiscovery anchor: hn.story.50596818—
pace: p29 vs 2096 stories at the 168h mark (now 194h old) — ahead of adap-delegated-authority-protocol-draft (2.0x), behind abmaze-protein-fitness-agent-benchmark (0.7x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnWhy agent swarms get better at optimizing code as they grow
Retrieved article excerpt

Open article · Retrieved 2026-11-22T08:22:16.924228+00:00

Sections

Fred Brooks observed in 1975 that *adding programmers to a late project makes it later* because every new engineer brings more coordination than work. Early research on agent swarms found that multi-agent systems often trailed a single agent once coordination costs were accounted for [1–4]. We tested whether this still holds for today’s models using performance engineering tasks to examine how scaling inference-time compute drives both speedups and emergent coordination mechanics. On NumPy, one Claude Opus 5.5 agent made the workloads 3.7× faster in two hours, while a swarm of 32 Opus agents, given the same two hours, reached 18.9×. GPT-6.2 Astra was the strongest solo agent we tested, yet its swarms got worse as they grew. Given no instructions on how to organize, each model’s swarms arranged themselves differently, and the differences mattered. The best swarms sent few direct messages; workers claimed tasks and shared results on a common board. The ones that struggled routed everything through the coordinator, whose inbox grew with every agent added. The other deciding factor was the shape of the work. While codebases with independent problems allowed each new agent to contribute usefully, highly constrained tasks often led extra agents to compete for the same code.

## Agent Habitat

On Replit, an agent swarm works much like an engineering team. Each agent, coordinator or worker, is a full Replit Agent with its own cloud sandbox, so it can build, run, and profile code without getting in anyone else’s way. Agents share a repository rather than a filesystem, and their work comes together through branches and pushes. They also share context through three communication channels: a swarm board that lets agents open threads, reply, address posts to specific teammates, and set their status; direct messaging between teammates; and transcripts that let agents read what a teammate tried and why without interrupting it.

[Agent Habitat](https://frontier.replit.com/agent-habitat-architecture/) provides the elastic compute behind this. Each sandbox is an isolated Linux microVM whose CPU, memory, and disk grow with the workload, so a coordinator can start hundreds of workers quickly, and a single agent can work across several sandboxes at once. Network access, credentials, and runtime activity are locked down and traced per agent, and execution state is journaled durably so a swarm survives failures.

## Putting Swarms to Work

With models that can coordinate and a harness built for teams, swarms are starting to be practical for real work. [Missions](https://replit.com/missions) puts this in users’ hands. Give Replit a goal, and it launches a swarm of agents to pursue it. The research question is no longer whether swarms *can* work, but rather when a team beats one agent, which models make good teammates, and how a swarm should organize itself to get there.

Current benchmarks don’t fully answer these questions. Most published measurements of agent teams use build tasks such as ProgramBench [5, 6], where agents reconstruct a program and are scored on how many tests pass. Two properties of these tasks limit what they can show about teamwork. The work is additive, so pieces built in parallel combine without agents needing to learn from one another. The score is also capped, because a single agent already passes nearly every test, so a team can finish sooner but can’t score higher, and on small problems coordination overhead erases even that.

Hard problems usually don’t look like this. In open research, and in most real engineering, progress comes from search and experimentation, which means trying ideas that may fail, learning from what others found, and combining partial results that don’t simply add up. A useful test of teamwork needs that shape, and a score that rewards finding more, not just finishing earlier.

Performance engineering has both the search and the open-ended score, plus a fast, objective feedback loop. An agent can profile a workload, change a hot path, and learn within a reasonable time whether it ran faster without changing the output. The score has no ceiling, since there is no fixed limit on how much faster the code can get. Agents can split up the work, but they can’t ignore each other. Patches to shared code conflict at merge, and agents that don’t share results repeat each other’s failed attempts. Coordination shows up directly in the score. A team that works well together can find more than any one agent, and a team that doesn’t can do worse.

## Optimization-Bench

We are releasing [Optimization-Bench](https://github.com/replit/optimization-bench), a suite of performance-optimization tasks evaluated on pinned versions of popular open-source libraries. Each task provides an agent with the library’s source code, driver code with a realistic workload, a strict output contract, and an isolated verifier. The goal is to improve the wall-clock time for processing the workload under a strict set of constraints.

We selected libraries where profiling showed most of each workload’s runtime falling inside the library’s own code rather than in external dependencies. That way, the hot paths sit in files agents are allowed to edit, leaving meaningful scope to optimize. Each selected library has more than one workload (a task it can handle), and these workloads often share common infrastructure. For example, in NumPy, there are myriad functions, such as calculating quantiles, sorting arrays, and filtering for conditions. We consider each distinct function a single workload. For each library selected, the agent is prompted to optimize a subset of all workloads that target core, high-traffic functionality with stable long-term specifications.

Building on this approach, this initial prerelease focuses on 14 widely used open-source libraries under active maintenance, demonstrating that agent swarms on Replit can still achieve significant performance gains. We discuss the results and analysis of four of the largest ones:

- NumPy has 13 workloads, including quantiles, sorting, datetime handling, and random numbers.
- SQLite has 12, including full-text search, indexing, JSON, and joins.
- SQLGlot has 4, all running through one parser and generator.
- Git has 7, all confined to a 15-file diff library.

### Task Setup

Every agent was allocated 8 vCPUs, 16 GiB of RAM, a two-hour execution window, and standard profiling tools. Agents must preserve all observable outputs, error handling, and public interfaces. They were given rules that strictly prohibit cross-call caching, special-casing inputs, result precomputation, delegating tasks to external libraries, or altering process-wide runtime settings (e.g., allocators or garbage collection).

Each benchmark task was evaluated across four configurations: a single agent and swarms of 8, 16, and 32 agents. We tested six frontier models: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2 Astra, GPT-6 Astra, GPT-6.1 Sol, and GPT-6 Luna (all set to medium reasoning effort, except Luna at high reasoning effort).

The coordinator receives the task requirements but no instructions on how to organize the team. How the swarm divides the work and integrates branches is left entirely to the agents. Agents coordinate via direct messaging and a shared swarm board. Each agent operates inside an isolated sandbox VM, sharing only the repository context. Network access is disabled, and all runs are audited post-execution to guarantee compliance. Only the final submission branch at the two-hour mark is evaluated.

### Task Evaluation

Studies have shown that cloud VMs are unreliable for measuring performance, because speed varies between instances and over time [7, 8]. Even on dedicated hardware, environment size, link order, and memory layout can shift results enough to reverse a conclusion [9, 10]. Interleaved, repeated trials are the standard fix [11, 12].

Agents are prone to reward hacking and exploiting flaws in the scoring rather than solving the task [13, 14]. METR caught models overwriting the timer and reading the grader’s answer from the call stack [13], and Sakana’s reported 10–100× CUDA speedups came from a flaw in its evaluation sandbox [15].

In Optimization-Bench, at the two-hour deadline, each run’s final branch is frozen and sent to a separate VM that the agents can never access. The evaluation pipeline rejects edits outside the permitted files and rebuilds the original and candidate from source. A candidate must pass the repo’s tests and match the original’s output on public and hidden inputs. It must also pass generated tests that only the pipeline holds, which catch submissions that overfit to the existing tests or exploit gaps in them. Timing runs only on the hidden inputs, on a dedicated Intel machine,[1](https://frontier.replit.com/throwing-headcount-at-the-problem/#user-content-fn-1) one evaluation at a time. The original and candidate runs alternate in randomized order, so neither benefits from warm caches or drift over the session. The timer and the correctness checks run outside the candidate’s process, so the code being measured can’t reach the clock or the checker.

## Results

NumPy

Quantile · 13 workloads

Median speedup (×)

05101520181632Number of agentsGPT-6 Luna1.59×GPT-6 Astra4.05×GPT-6.1 Sol4.94×GPT-6.2 Astra6.53×Sonnet 5.58.63×Opus 5.518.92×

*Median speedup on NumPy’s 13 workloads with 1, 8, 16, and 32 agents, where the dashed line marks no speedup.*

SQLite

Distinct plant facets · 12 workloads

Median speedup (×)

1.01.11.21.31.41.5181632Number of agentsGPT-6 Luna1.02×GPT-6 Astra1.16×GPT-6.1 Sol1.19×GPT-6.2 Astra1.23×Sonnet 5.51.18×Opus 5.51.52×

*Median speedup on SQLite’s 12 workloads with 1, 8, 16, and 32 agents, where the dashed line marks no speedup.*

SQLGlot

Mozilla transpile · 4 Intel workloads

Median speedup (×)

1.01.11.21.31.4181632Number of agentsGPT-6 Luna1.0030×GPT-6 Astra1.0050×GPT-6.1 Sol0.9869×GPT-6.2 Astra1.0003×Sonnet 5.51.1354×Opus 5.51.3822×

*Median speedup on SQLGlot’s 4 transpilation workloads with 1, 8, 16, and 32 agents, where the dashed line marks no speedup.*

Git

History change summary · 7 Intel workloads

Median speedup (×)

1.01.11.21.31.41.51.6181632Number of agentsGPT-6 Luna1.006×GPT-6 Astra1.273×GPT-6.1 Sol1.237×GPT-6.2 Astra1.289×Sonnet 5.51.097×Opus 5.51.287×

*Median speedup on Git’s 7 diff workloads with 1, 8, 16, and 32 agents, where the dashed line marks no speedup.*

We found that Anthropic models improved performance when working in a swarm, and the magnitude of the speedups correlated with how much independent work each codebase offered. For instance, NumPy had 13 separate workloads and yielded the largest jump, from 3.66× to 18.92×. Even in repositories like SQLite and SQLGlot, where solo agents struggled to find gains, swarms still performed well enough. Git, although it had 7 workloads, introduced the most overlap, since all workloads shared the same 15 files, and Anthropic swarms struggled to outperform their solo runs. In contrast, OpenAI models did not see similar correlations. Their swarms beat their solo runs in some repos and fell behind in others, and on SQLGlot none of them meaningfully improved on their solo runs. GPT-6.2 Astra had the strongest solo runs on every task, but its swarms peaked at 8 agents and, by 32, fell below its solo score on NumPy, SQLGlot, and Git.

One example is NumPy’s `searchsorted` function, which finds where each value belongs in a sorted array. On main, it runs the binary search across all keys together, doing the first comparison for every key, then the second for every key, and so on. With millions of keys, that data is too large for the CPU cache, so every step reloads it from memory. The Opus swarm [changed it](https://github.com/numpy/numpy/pull/33269) to search 256 keys at a time, a batch small enough to stay in cache from start to finish. It also skips the slower NaN-safe comparison when neither array contains Na
DonAtimator20
🟧 echo.blog ⭐This is the original primary source: Replit’s article reports its own Optimization-Bench experiments and results, rather than republishing aReplit——

Interpretation history

Decision trace