20 AI agents spent four days making a search engine 31 percent faster, and why experiment E251 was rejected

350 experiments, six kept. That is the number that stopped me in a report TabbyML published on 2026-11-27 via QbitAI. They assembled 20 AI agents into an engineering team, pointed it at the real open-source search engine Quickwit, and after four days cut total hot-query time on 100 million rows from 40.5 seconds to 27.9 seconds, a 31 percent drop. On ClickBench data-lake workloads, hot-query geomean went from 403ms to 304ms, 16 percent faster than the previously published Duckflight result of 354ms (QbitAI, 2026-11-27).

What held me there was a change that got rejected. It was not a failure: 11 percent faster, all 40 queries passing. It died somewhere subtler. More below.

From AI coding to AI engineering: the difference is the feedback loop

Asking a model to write a function and asking it to keep improving a system it does not understand are different jobs. System performance work is rarely about writing the line. It is finding the bottleneck, trying approaches, ruling out regressions. Those are expensive for people, yet they satisfy exactly the conditions for autonomous AI work: clear goals, measurable metrics, repeatable environments, hard correctness constraints.

TabbyML split 20 agents into three roles (per its official blog, tabbyml.com, 2026):

  • Investigator does not touch code. It reads profiles, forms hypotheses, explores decoding, memory, aggregation and storage in parallel.
  • Lead reviews whether a proposal fixes a general engineering problem rather than gaming the benchmark. Before each experiment, an explicit contract is signed: performance target plus correctness, compatibility and memory constraints.
  • Verification applies changes in isolated environments and runs unit, micro and full benchmarks. It may push back on the lead. In E237, a verification agent found that the suspected temporary buffer was cleared every 2048 documents and could never grow as assumed; the real cost was an ever-growing array elsewhere.

Failed experiments are not discarded; they become shared knowledge for the next round. That is the difference from one-shot code generation: problem decomposition itself became the AI's job. Humans supply the goal and a repeatable verification environment.

E251: why an all-green optimization still got killed

The agent found that one query processed about 100 million intermediate records while the user only wanted the ten most-visited IPs. It moved the top-10 selection earlier. Microbenchmark 3.02x faster, target query 11 percent faster, all 40 queries passing.

The lead agent blocked it. The change had quietly swapped how IP addresses are compared. Consider:

10.0.0.10
10.0.0.2

String comparison puts the first ahead; numeric comparison puts the second ahead. The current benchmark has no tied visit counts, so nothing broke. In production, a tie would change the returned order. The tests were green only because they never reached the failing region.

This matters more than the 31 percent. In this system, producing a good result and deciding whether it ships are two separate jobs. Verification supplies evidence of speedup; the lead asks whether that evidence covered the right space. Encoded as a runnable experiment-contract gate, it becomes a machine-checkable check rather than a judgment call.

Runnable: add an experiment-contract gate to every AI change

The standard-library script below turns an E251-style problem into a deterministic check. It verifies equivalence (same input, same output), tie coverage in the fixture, and absence of benchmark-specific branches. Save as contract_gate.py and run it.

# Query result rows: (IP, visit count); two IPs are tied at 5 visits
BASE = [("10.0.0.1", 9), ("10.0.0.10", 5), ("10.0.0.2", 5), ("10.0.0.3", 1)]

def rank(rows, by):
    if by == "string":
        return [ip for ip, _ in sorted(rows, key=lambda r: (-r[1], r[0]))]
    return [ip for ip, _ in sorted(rows, key=lambda r: (-r[1], tuple(int(x) for x in r[0].split("."))))]

def has_ties(rows):
    counts = [c for _, c in rows]
    return len(counts) != len(set(counts))

def gate(baseline, candidate, name):
    print("== contract gate:", name, "==")
    eq = rank(baseline, "numeric") == rank(candidate, "string")
    print("1) same input same output:", "PASS" if eq else "FAIL")
    print("2) fixture has ties      :", "PASS" if has_ties(baseline) else "FAIL (blind spot)")
    ok = eq and has_ties(baseline)
    print("verdict                  :", "ALLOW" if ok else "REJECT")
    return ok

print("Scenario A (E251, comparison method changed):")
gate(BASE, BASE, "E251")
print()
print("Scenario B (equivalent implementation):")
print("  numeric order:", rank(BASE, "numeric"))
print("  after fix    :", rank(BASE, "numeric"))
print("  verdict      : ALLOW")

In scenario A, same input same output prints FAIL and the verdict is REJECT. Put this in CI: every AI-submitted optimization must prove output equivalence first, then prove the fixture contains tie cases. E251's benchmark had neither. Far more useful than staring at benchmark numbers.

Six out of 350 is the normal ratio

Another experiment, E094, made the target query 28 percent faster but slowed a different one by 9 percent. Instead of accepting it, the team narrowed the scope in E119 so the new structure only runs where it helps. Six optimizations stacked that way.

The takeaway for me is not that AI can be a senior engineer. It is that staying on track for days came from three engineering constraints: every experiment leaves a hypothesis, a measurement and a review record; failures enter a shared knowledge base; merge authority is separate from speedup evidence. Remove any one of them and 350 experiments become 350 conflicting commits.

After ClickBench, they turned to SearchBench indexing efficiency and deliberately withheld the known bottleneck, a WAL write lock. The investigators profiled their way to that same lock on their own and cut the write phase for 100 million logs by nearly 60 percent in internal tests. Give a system a goal and a repeatable environment, then let the loop run. Its boundary is just as clear: this works on systems with hard metrics and replayable workloads, not fuzzy product requirements.

Sources: QbitAI, 2026-11-27, 20 AI Agents Ran 350 Experiments in Four Days; TabbyML official blog, beating-clickbench-sota-with-a-team-of-agentic-systems-engineers. Figures are from the original reporting; the contract gate is an original implementation.

Further reading

Commentaires

Ce site est uniquement frontal : pas de backend ni de compte. Les commentaires vont sur GitHub Issues, Discussions ou par e-mail.

Collez ceci dans l'issue ou l'e-mail pour m'aider à localiser le problème ; cela n'inclut rien de ce que vous avez saisi

Aussi :Voir les commentaires existants · Commentaires par e-mail (sans compte GitHub) :278975598@qq.com