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

Quickwit total query time drops 31%, with reductions as high as 87%
Yunzhong, from Aofeisi, Quantum位 | Official Account QbitAI
Quantum位 | Official Account QbitAI
AI writing code is no longer anything new.
But what if 20 AI Agents were formed into an engineering team, not 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; the rest was left to the AI.
Four days later, this AI team delivered a report card:
- Autonomously conducted approximately 350 engineering experiments;
- Ultimately retained 6 optimizations that passed review;
- In tests on data at the hundred-million scale, total hot query time dropped from 40.5 seconds to 27.9 seconds, a 31% decrease;
- For some queries, latency dropped by as much as 87%.
More importantly, in the data lake category of the database performance benchmark ClickBench, the AI-optimized Quickwit surpassed all previously published results in same-methodology hot query scoring comparisons.
This time, what the 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 the Performance of a Real System
The open-source search engine chosen for optimization this time is Quickwit, which TabbyML uses in its actual business.
Quickwit is a search engine designed for large-scale log and observability data. It is built on the full-text search library Tantivy, written in Rust, and can directly leverage 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 underlying mechanisms such as CPU, memory, data structures, and storage access.
Much of the time, the real performance bottleneck is not where intuition points.
And an optimization that appears effective may also cause performance regression 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 published 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 the AI did not redesign the entire search engine, but instead dug into the underlying implementation of the existing system, finding performance bottlenecks that could be eliminated one by one.
These 20 AI Agents optimized 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.
Forming a Real Engineering Team for the AI
What happens if you directly let 20 AI Agents 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, the AI might gradually find ways to game the system.
TabbyML's solution is to have the AI divide labor and collaborate like a real engineering team.
The entire team is 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, every experiment must establish a clear "experiment contract" before it officially begins.
It must specify not only performance goals, but also constraints on correctness, compatibility, memory usage, and more.
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 tech lead.
If, while reading the code, they find problems with the original proposal, they can even challenge the tech lead's judgment and request that the experiment plan be redesigned.
The results of each round of experiments, whether successful or failed, are returned to the tech lead and become the basis for subsequent exploration.
Successful optimizations enter the next round's code baseline. Failed experiences become shared knowledge for the entire team.
In this way, the AI team forms an engineering closed loop that continuously proposes hypotheses, verifies hypotheses, corrects errors, and keeps improving.
Humans no longer need to break down a complex engineering goal step by step into individual programming tasks.
Exploring problems and decomposing tasks themselves also become the 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.
The AI found that when executing a certain query, Quickwit needed to process about 100 million intermediate records. But what users really needed was just the top 10 IP addresses by access count.
So the AI proposed a seemingly very reasonable solution: first filter out the 10 final results needed, 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's latency dropped by 11%. More importantly, all 40 ClickBench query result validations passed. If Benchmark scores alone were the criterion, this optimization would seem ready to merge directly.
However, the Lead Agent responsible for review stopped it. The reason was that the AI discovered this optimization had quietly changed the way IP addresses were compared.
For example, suppose there are two IP addresses with exactly the same access count:
Compared as strings, the former ranks first. But compared numerically, the latter ranks first.

This subtle difference did not cause errors in the current Benchmark data.
But if real business data contains IP addresses with the same access count, 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.
Ultimately, 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, producing good results 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: could all tests be green simply 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 solutions in parallel, but also in having someone specifically check whether code that runs faster can still produce the same answers.
350 Experiments, Only 6 Optimizations Kept
Of about 350 experiments, only 6 optimizations were ultimately retained.
At first glance, this does not seem like a very high ratio. But for real system performance engineering, a large number of failed explorations is precisely the norm.
Another experiment, E094, is a typical example.
The 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's latency dropped by 28%, but at the same time it caused a 9% performance regression in another query.
This time, the AI did not directly accept the change. Instead, in a subsequent experiment, E119, it narrowed the scope of the optimization, using the new data structure only in scenarios that could truly benefit. Ultimately, the team eliminated the regression while retaining the performance gain.
Similar processes kept occurring. In the subsequent E237 experiment, the Agent responsible for verification even discovered an error in an optimization plan approved by the tech lead.
What was initially believed to be the bottleneck, a temporary memory buffer, was in fact 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 instead fed its findings back to the Lead Agent, pushing the team to revise the plan.
The corrected optimization ultimately reduced the target query's latency from 5.891 seconds to 3.131 seconds, a reduction 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 questions the conclusions of other AIs, and then AI conducts the next round of experiments. A large number of failures are not discarded but instead become the basis for subsequent optimization.
Ultimately, six optimizations that passed review were stacked one after another, gradually 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 the way 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 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.
Without being told the answer, it found a performance bottleneck already known to open-source maintainers
After ClickBench, the TabbyML team continued to communicate with Quickwit maintainers, shifting its focus from query speed to the indexing efficiency of SearchBench.
The question is straightforward: if you add CPUs to a server, will log indexing necessarily become faster?
During communication before starting the experiments, Quickwit maintainers mentioned that once CPU is increased to a certain point, adding more makes it hard to speed things up further.
One known bottleneck is the write lock of WAL (write-ahead log): more CPUs cannot let multiple writes acquire the same lock at the same time. Knowing where the blockage is and having the time to verify optimizations along this 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 piece of 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 holding the lock.
In staged internal tests, the write phase of index construction for 100 million logs was shortened by nearly 60%. The team is still continuing to explore further optimization improvements.
The most notable aspect of this work is that the capabilities of the AI Agents team can reach the level of Senior Engineers and can replace humans in completing many of the daily tasks of 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 normally require specially set-aside engineering time.
From AI Coding to AI Engineering, system optimization welcomes 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 for AI Agents to work autonomously.
Clear optimization goals, quantifiable performance metrics, reproducible experimental environments, and strict correctness constraints build for AI a feedback loop capable of continuous exploration, self-correction, and continuous accumulation of results.
Every experiment can obtain 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 the entire system to continue improving.
It may be difficult for human engineers to invest days or even weeks exploring hundreds of potential optimization approaches in a low-level 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 of databases, indexing efficiency of search engines, resource scheduling of 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 improvements may bring considerable savings in computational resources and reductions in infrastructure costs.
Quickwit is only a starting point.
At present, TabbyML has built a mature multi-agent system around autonomous systems engineering and is scaling it for application to various types of real infrastructure software.
These AI Agents operate 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 engineering task that relies on scarce expert resources and is carried out intermittently into an infrastructure capability that runs continuously and is executed at scale.
In the past, enterprises needed to dedicate engineering resources specifically to system performance optimization. In the future, continuous optimization itself can become a regular capability of software infrastructure.
In the future, an enterprise's software infrastructure can not only run 24/7 but also be optimized 24/7.
From helping engineers write code to enabling AI to 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, and the views are solely those of the original author.
- 94 million parameters takes on 5 billion, weight memory drops by 98%! The Loop architecture has been mastered by this Chinese team 2026-11-25
- Hands-on test: 145 billion parameters packed into a laptop, blazing at 80+ tokens per second! Domestic on-device large models go wild 2026-11-23
- The paradigm shifts to building foundation models! Full-link training on domestic compute, dual models unveiled simultaneously 2026-11-19
- What kind of AI company is Aimotion, which Li Mu joined? 2026-11-17