20 AI Agents Team Up, Run 350 Experiments in 4 Days, Surpassing ClickBench's Best Public Results

Quickwit's total query time drops 31%, with a maximum drop of 87%
Yunzhong, from Aofei Temple, QuantumBit | WeChat Official Account QbitAI
QuantumBit | WeChat Official Account QbitAI
AI writing code is nothing new anymore.
But what if 20 AI Agents were formed into an engineering team, without being told which specific line of code to change, and left to find performance bottlenecks, propose technical solutions, design experiments, and even review each other's code?
Recently, AI startup TabbyML published a rather interesting piece of work. They put a systems engineering team composed of 20 AI Agents to work on a real open-source search engine, Quickwit.

Humans set the optimization goals and engineering constraints, and the rest of the work was left to AI.
Four days later, this AI team delivered a report card:
- Autonomously conducted about 350 engineering experiments;
- Ultimately retained 6 optimizations that passed review;
- In a test on data at the hundred-million scale, total hot query time dropped from 40.5 seconds to 27.9 seconds, a decrease of 31%;
- Some queries saw time reductions of up to 87%.
More importantly, in the data lake category of the database performance benchmark ClickBench, the AI-optimized Quickwit surpassed all previous public results in a hot query score comparison under the same methodology.
This time, what AI did was not just write code; it began to take on the work of a professional systems engineering team.
20 AI Agents Take On a Real System's Performance Challenge
The open-source search engine chosen for optimization this time was Quickwit, which TabbyML uses in its actual business operations.
Quickwit is a search engine designed for large-scale logs and observability data. It is built on the Rust-written full-text search library Tantivy and can directly use cloud object storage to process massive amounts of data.
TabbyML uses it to store and retrieve the execution traces of AI Agents.
Unlike ordinary software development tasks, system performance optimization is a fairly complex engineering effort.
Engineers not only need to understand a massive codebase, but also need to deeply analyze low-level mechanisms such as CPU, memory, data structures, and storage access.
In many cases, the real performance bottleneck is not where intuition points.
And an optimization that appears effective may also cause performance degradation in another scenario, or even introduce extremely hard-to-detect bugs. To measure the AI team's work, the TabbyML team chose ClickBench, a well-known performance benchmark in the database field.
On a test set containing 100 million rows of data, the AI team optimized the 40 queries supported by Quickwit. Ultimately, Quickwit's hot query geomean score dropped from 403 milliseconds to 304 milliseconds.

Recalculated across the same set of 40 queries, the optimized Quickwit's hot query geomean is 304 milliseconds, 16% faster than Duckflight's public result of 354 milliseconds.
The TabbyML team also reproduced the unoptimized results of ClickHouse and Quickwit (the fourth and fifth rows in the figure): Quickwit's hot query geomean is 304 milliseconds, and ClickHouse's is 392 milliseconds.
It is worth noting that AI did not redesign the entire search engine, but instead dug into the low-level implementation of the existing system and sought out performance bottlenecks that could be eliminated one by one.
These 20 AI Agents carried out optimizations around multiple areas, including cache configuration, data structures, decompressor reuse, and memory allocation mechanisms.
After about 350 explorations and experiments, they ultimately produced 6 effective performance optimizations.
Building AI a Real Engineering Team
What would happen if 20 AI Agents were directly allowed to modify a codebase at the same time?
They might duplicate work, overwrite each other's code changes, or mistake random fluctuations in tests for performance improvements.
Even worse, in pursuit of higher Benchmark scores, AI might gradually find ways to game the system.
TabbyML's solution was to have AI divide labor and collaborate like a real engineering team.
The entire team was divided into three roles.

The first: Investigator Agent
These Agents are not responsible for modifying code, but focus on performance analysis.
They read code, analyze profiling data, look for potential bottlenecks, and propose optimization hypotheses.
Multiple Agents can explore different directions simultaneously, from data decoding to memory management, from aggregation operations to storage access.
The second: Lead Agent
It is responsible for reviewing each optimization proposal.
Does this proposal really solve a general engineering problem? Could it be merely gaming the Benchmark? How can the optimization be proven effective? Which existing behaviors must remain unchanged?
In TabbyML's system, before each experiment officially begins, a clear "experiment contract" must be formulated.
It must specify not only performance goals, but also constraints such as correctness, compatibility, and memory usage.
Only proposals that pass review can proceed to the next stage.
The third: Verification Agent
These Agents implement optimizations in mutually isolated experiment environments and run unit tests, microbenchmarks, and full performance tests.
Interestingly, they do not mechanically execute the tasks assigned by the technical lead.
If, while reading the code, they find problems with the original proposal, they can even challenge the technical lead's judgment and request that the experiment plan be redrawn.
The results of each round of experiments, whether successful or failed, are returned to the technical lead and become the basis for subsequent exploration.
Successful optimizations enter the next round's code baseline. Failed lessons become shared knowledge for the entire team.
In this way, the AI team formed an engineering loop that continuously proposes hypotheses, verifies hypotheses, corrects errors, and keeps improving.
Humans no longer need to gradually break down a complex engineering goal into specific programming tasks.
Exploring problems and decomposing tasks themselves have also become AI's work.
All 40 Query Results Matched, Q36 Was 11% Faster, but the Lead Agent Rejected the Change
The most interesting moment in the entire experiment occurred in the experiment numbered E251.
AI found that when Quickwit executes a certain query, it needs to process about 100 million intermediate records. But what users actually need is only the 10 IP addresses with the highest access counts.
So AI proposed a seemingly very reasonable approach: first filter out the 10 final results needed, and then perform subsequent data transformation.
This would save a large amount of unnecessary computation.
The test results were also quite impressive. The microbenchmark was 3.02 times faster, and the target query time dropped by 11%. More importantly, the result validation for all 40 ClickBench queries passed. If Benchmark scores alone were used as the criterion, this optimization would seem ready to merge directly.
However, the Lead Agent responsible for review stopped it. The reason was that AI discovered this optimization had quietly changed the way IP addresses are compared.
For example, suppose there are two IP addresses with exactly the same access count:
Under string comparison, the former ranks first. But under numeric comparison, the latter ranks first.

This subtle difference did not cause errors in the current Benchmark data.
But if IP addresses with the same access count appear in real business scenarios, this optimization could change the final query results returned.
In other words, all tests passed and performance improved, but the code could still have correctness issues.
In the end, the Lead Agent rejected this optimization and recorded the finding to prevent subsequent Agents from making the same mistake again.
This may be more noteworthy than the performance results themselves.
In this multi-Agent team, achieving good scores and deciding whether code can be merged are two different jobs.
What the Verification Agent delivers is evidence of speedup; the Lead Agent must also ask: if all tests are green, could that simply be because the places where errors would occur were not tested? The E251 change stopped at this gate.
The value of multi-Agent division of labor lies not only in being able to try more approaches in parallel, but also in having someone specifically verify: can faster code still produce the same answers?
350 Experiments, Only 6 Optimizations Retained
Of about 350 experiments, only 6 optimizations were ultimately retained.
At first glance, this does not seem like a very high proportion. But for real system performance engineering, a large number of failed explorations is precisely the norm.
Another experiment, E094, is a typical example.
AI found that when the system processed a large number of small data groups, it generated many unnecessary memory allocations. So it proposed a new data structure.
The target query time dropped by 28%, but at the same time it caused a 9% performance degradation in another query.
This time, AI did not directly accept the change. Instead, in a subsequent experiment, E119, it narrowed the scope of the optimization and used the new data structure only in scenarios that could truly benefit. Ultimately, the team eliminated the degradation while retaining the performance gain.
Similar processes kept happening. In the subsequent E237 experiment, the Agent responsible for verification even discovered an error in an optimization proposal approved by the technical lead.
The temporary memory buffer initially believed to be the bottleneck was actually cleared every 2048 documents and would never grow large enough to cause the expected problem.
The real performance overhead came from another continuously growing array. The Verification Agent did not mechanically execute the task, but fed the finding back to the Lead Agent, pushing the team to revise the plan.
The corrected optimization ultimately reduced the target query time from 5.891 seconds to 3.131 seconds, a drop of 47%.
Article title: 20 AI Agents Team Up, Run 350 Experiments in 4 Days, Surpassing ClickBench's Best Public Result
Body:

AI proposes hypotheses, AI verifies hypotheses, AI challenges the conclusions of other AIs, and then AI conducts the next round of experiments. The many failures are not discarded; instead, they become the foundation for subsequent optimization.
Ultimately, six optimizations that passed review were layered on top of one another, progressively reducing the system's total hot-query time from 40.5 seconds to 27.9 seconds.

This also reveals another difference between this system and how ordinary Coding Agents work.
Its work is not one-off code generation, but autonomous engineering exploration that can last for days or even longer.
Every experiment has a corresponding hypothesis, measurement result, and review record.
Even if an experiment fails, it can still provide new information for the next round of work.
What truly matters is not the success of any single experiment, but the system's ability to continuously accumulate optimization results.
It wasn't told the answer, yet it found a performance bottleneck already known to the open-source maintainers
After ClickBench, the TabbyML team continued its exchanges with the Quickwit maintainers, shifting its focus from query speed to indexing efficiency in SearchBench.
The question was straightforward: if you add more CPUs to a server, will log indexing necessarily get faster?
During the communication before launching the experiments, the Quickwit maintainers mentioned that once CPU is increased to a certain point, adding more yields little further speedup.
One known bottleneck is the WAL (write-ahead log) write lock: more CPUs cannot let multiple writes acquire the same lock at the same time. Knowing where the bottleneck is and having the time to verify optimizations along that write path are two different things.

TabbyML set optimization goals and a reproducible verification environment for the AI Agents, but did not disclose that the WAL write lock was a known bottleneck, nor did it specify which part of the code should be changed.
The Investigator Agent performed profiling on its own, traced time consumption along the write path, and independently located the same WAL write lock. The Agents then tried compressing larger WAL records before writing, reducing the amount of data that needs to be written while the lock is held.
In interim internal testing, the write phase of index construction for 100 million logs was shortened by nearly 60%. The team is continuing to explore further optimizations.
The most notable aspect of this work is that an AI Agents team can reach the level of a Senior Engineer and can take over many of the daily tasks of human systems engineers.
Given goals and a reproducible verification environment, AI Agents can go from locating problems to verifying optimizations on their own, pushing forward work that would otherwise require setting aside dedicated engineering time.
From AI Coding to AI Engineering: System optimization enters a new paradigm
Over the past few years, the development of AI Coding has mainly revolved around one question:
How can developers write code faster?
But in the field of systems engineering, what is truly expensive is often not writing the code itself, but finding performance bottlenecks, exploring different technical approaches, and repeatedly conducting experiments and verification.
Interestingly, system performance optimization happens to be a field naturally suited to autonomous work by AI Agents.
Clear optimization goals, quantifiable performance metrics, a reproducible experimental environment, and strict correctness constraints provide AI with a feedback loop that enables continuous exploration, self-correction, and ongoing accumulation of results.
Every experiment can receive feedback through real performance data. Every failure can become the starting point for the next round of exploration. Every effective optimization can become the foundation for further improvement of the entire system.
Human engineers may find it hard to devote days or even weeks to exploring hundreds of potential optimization approaches in an underlying component, but AI Agents can.
They can explore different technical paths in parallel 24/7, enabling optimization work that was previously shelved due to manpower and time costs to actually be carried out.
And such opportunities exist widely in modern software infrastructure.
Query latency in databases, indexing efficiency in search engines, resource scheduling in distributed systems, throughput of data processing pipelines, and computational efficiency of AI inference frameworks...
In software infrastructure running at large scale, even relatively small performance gains can bring considerable savings in computing resources and reductions in infrastructure costs.
Quickwit is only a starting point.
Currently, TabbyML has built a mature multi-agent system around autonomous systems engineering and is applying it at scale to various kinds of real infrastructure software.
These AI Agents run continuously, autonomously discovering performance bottlenecks, conducting optimization experiments, and delivering verified code improvements, helping enterprises improve software system performance and reduce infrastructure costs.
This means that system performance optimization is expected to transform from an intermittent engineering task that relies on scarce expert resources into a continuously running, scalable infrastructure capability.
In the past, enterprises had to dedicate engineering resources specifically to system performance optimization. In the future, continuous optimization itself can become a standard capability of software infrastructure.
In the future, an enterprise's software infrastructure will not only be able to run 24/7, but also be optimized 24/7.
From helping engineers write code to letting AI autonomously drive the continuous evolution of software systems, TabbyML is exploring the next form of AI Engineering.
Reference: https://www.tabbyml.com/blog/beating-clickbench-sota-with-a-team-of-agentic-systems-engineers/
This article is published by QuantumBit with authorization; the views are solely those of the original author.
- 94 million parameters take on 5 billion, weight memory slashed by 98%! The Loop architecture has been mastered by this Chinese team 2026-11-25
- Hands-on test: 145 billion parameters stuffed into a laptop, blazing past 80+ tokens per second! Domestic on-device large models are going wild 2026-11-23
- The paradigm steps in to build foundation models! Full-chain training on domestic compute, dual models unveiled simultaneously 2026-11-19
- What kind of AI company is Aimotion, which Li Mu has joined? 2026-11-17