5,000 improvement loops and counting: what an agent experiment loop actually runs
Jeff Dean's Discovery Loop raised a $1.2B seed to automate research loops and says it has already run more than 5,000 of them. The loop has four parts, the evaluator is the one that matters, and a small version runs on a Coding Plan budget.

A lab with no night shift
Here is a scenario, not a tour of anyone's datacenter. A researcher queues an idea on Friday: try twenty small variations of a training trick, keep what helps, drop the rest. On Monday there is a log, twenty runs, three keepers, and a short note on why they kept. Nobody babysat the queue. That is the workflow at the center of the largest seed round announced this week, and it is worth understanding as a machine, because the machine is simple and its one hard part is not the part vendors advertise.
Referral disclosure: the Z.ai Coding Plan link in this article is my referral link (code R0K78RJKNW), and I get credit if you sign up. Z.ai's own terms: 10% off a first paid order for eligible new accounts. Z.ai Coding Plan
Checked against Z.ai's docs on 3 Dec 2026.
Read next: Proactive agents went mainstream this week: the anatomy of an always-on loop
What Discovery Loop announced
Jeff Dean's own post says Discovery Loop, the public benefit corporation he founded in August with Sanjay Ghemawat, Quoc Le and Oriol Vinyals, has closed a $1.2 billion seed round led by Radical Ventures and Khosla Ventures, joined by Lightspeed, Kleiner Perkins, Doerr Capital and Alphabet, plus more than 200 individual investors including Geoffrey Hinton, Yann LeCun, John Hennessy, Jennifer Doudna, Fei-Fei Li, Raquel Urtasun and Vint Cerf. [1] The company's mission is AI that solves problems in machine learning, science and engineering. [1] The operational details are the interesting part: the 43-person team first built its own infrastructure, a scalable version control system, a distributed file system, a cluster scheduler and a coding harness, and Dean says the company has already run more than 5,000 automated improvement loops, with agents improving its models, infrastructure and future subproblems, and claims at least ten times the per-person productivity they have seen elsewhere, based on metrics he does not detail. [1] TechCrunch notes the unusual choice to build infrastructure most startups buy, and quotes Microsoft CEO Satya Nadella's conjecture that the job of programmers is shifting to building the systems that let AI build products. [2] Bloomberg's framing, relayed in coverage, is that this is one of the largest seed rounds ever; the valuation is undisclosed. All productivity and scale figures above are the company's own claims.
What an improvement loop is
An improvement loop has four parts. A proposer generates one candidate change: a config edit, a code patch, a prompt revision. A runner applies it somewhere it can be measured. An evaluator scores the result against a definition of better. A keeper retains only improvements and logs every round, kept or not, so the search never repeats itself. Then the loop feeds the best-so-far back to the proposer. Nothing in that list requires a particular model, a particular cloud, or a billion dollars. What the money buys is parallelism and evaluation infrastructure: thousands of loops at once, each with an honest measurement at the center. The loop is the idea; the evaluator is the moat.
The part nobody advertises: the evaluator
Here is my reasoning. A loop with a weak evaluator does not fail loudly; it optimizes confidently toward the wrong target and the log looks great. If better means tests pass, the proposer learns to game the tests. If better means the judge model approves, the proposer learns to write changes the judge likes. Discovery Loop's decision to build its own version control, file system and scheduler reads, to me, as evaluator infrastructure: control over exactly what ran, where, and what the measurement saw. [1] [2] Their ten-times-productivity claim is unverified from outside, but the direction is right: in a loop system, the proposer is interchangeable and the measurement is the product. Keep that ordering in mind for the small version below.

A loop runner you can read
The code below is the four parts in about forty lines, plain Python, no dependencies, and its built-in test passes locally. run_loop takes a seed, a propose function, an evaluate function and a round budget. Each round it proposes one candidate, scores it, keeps it only if it beats the best-so-far, and appends the outcome to a JSON log. The test drives the loop on a toy problem: mutate a config string toward a known target, where the evaluator is exact. Notice what the loop never does: it never reasons about why a candidate helped, it never widens the search on its own, and it never stops early. Those are features of the proposer and the evaluator, not of the loop. In a real setup the proposer is a model and the evaluator is your test suite, and both are swappable because the loop only ever sees candidates and scores.
loop.py
# loop.py (plain Python 3, no dependencies)
# An experiment loop: propose a change, measure it, keep only improvements.
import json, random
def run_loop(seed, propose, evaluate, rounds, log_path):
"""propose(current, rng) -> candidate; evaluate(candidate) -> float score.
Keeps the best-so-far. Every round lands in the log, kept or not."""
current, best = seed, evaluate(seed)
log = []
rng = random.Random(42)
for i in range(rounds):
cand = propose(current, rng)
score = evaluate(cand)
kept = score > best
log.append({"round": i, "score": score, "kept": kept})
if kept:
current, best = cand, score
with open(log_path, "w") as f:
json.dump(log, f, indent=1)
return current, best, log
if __name__ == "__main__":
# Toy problem: turn a noisy config string toward a target, one edit at a time.
TARGET = "temperature=0.2;retries=3;cache=on"
seed = "temperature=1.0;retries=0;cache=off"
def score(cfg):
pairs = dict(kv.split("=") for kv in cfg.split(";"))
want = dict(kv.split("=") for kv in TARGET.split(";"))
return sum(pairs.get(k) == v for k, v in want.items())
def propose(cfg, rng):
key, val = rng.choice([("temperature", "0.2"), ("retries", "3"), ("cache", "on")])
parts = dict(kv.split("=") for kv in cfg.split(";"))
parts[key] = val
return ";".join(f"{k}={v}" for k, v in parts.items())
best_cfg, best_score, log = run_loop(seed, propose, score, rounds=20, log_path="/tmp/loop-log.json")
assert best_score == 3, (best_cfg, best_score) # all three fixed
assert best_cfg == TARGET
assert len(log) == 20 and all("score" in e for e in log)
kept = [e for e in log if e["kept"]]
assert kept, "loop never improved"
print("loop ok: reached target in", kept[-1]["round"] + 1, "rounds, kept", len(kept))
Running it on a Coding Plan budget
My proposal for a small-team version maps cleanly onto the GLM Coding Plan, whose tiers all include the three current models. [5] The proposer is volume work: many candidate edits, most of them rejected. That is the GLM 5.3 Flash slot, which Z.ai describes as natively multimodal with 1M context and three times the Coding Plan quota of GLM-5.3. [3] The evaluator should be code, not a model: tests, linters, benchmarks, anything deterministic. Where judgment is genuinely needed, a periodic review of the kept set by GLM 5.4, which Z.ai describes as its flagship with 1M context and 128K output, is the right-shaped check, given the vendor's own warning about long thinking loops, give the review a done condition. [4] Both model descriptions are the vendor's. And the round budget in the code is not optional decoration: yesterday's article on tool-call metering applies here, because a loop without a round cap is just an invoice generator with good intentions.
What this loop does not do
The loop does not discover problems, it climbs the hill you pointed it at. If the target is wrong, twenty kept rounds make it more wrong, faster. It does not parallelize, schedule a cluster or checkpoint a filesystem, the parts Discovery Loop built first, and for a laptop-scale search it does not need to. [1] It also does not protect you from evaluator gaming: with the toy evaluator the target is exact, but give a loop a fuzzy judge and the log will fill with changes that please the judge. The guardrail is boring: keep the evaluator deterministic wherever you can, and read a sample of kept diffs by hand every so often.
What I did not measure
I did not run this loop against a real codebase with a model proposer, and I have no access to Discovery Loop's systems, so there are no improvement rates, costs or productivity numbers of mine in this article. The company's figures, 5,000 loops and ten-times per-person productivity, are Jeff Dean's own claims from the announcement post, and I could not verify them independently. [1] The funding and personnel facts come from Dean's post and TechCrunch's December 2 report. [1] [2]
Starting on the plan
Starting on the plan is optional, and this is the same disclosure again: the invitation links in this article are my referral links, and I get credit if you sign up through them. According to Z.ai's own campaign rules, an invited user who registers through an invitation link or code and pays for a first GLM Coding subscription gets a 10% instant discount on that order. It applies only to new accounts or accounts with no paid subscription history, once per user. It does not apply to renewals, upgrades or downgrades, and it cannot be combined with other first-order discount campaigns. [6] I have added nothing beyond those rules, and Z.ai can change them.
Five minutes, today
Copy loop.py and run it, then read the log it writes and notice how uninteresting the kept entries are individually. That is the point: loops win by volume and honesty, not by single brilliant rounds. Then pick one real knob in a project you own, a prompt string, a config value, a lint rule you keep fighting, and write a scorer for it in five lines. Run ten rounds. If nothing was kept, your evaluator just told you something true for free.
Is $1.2B a normal seed round?
No. Bloomberg's framing, relayed in coverage of the announcement, is that it is one of the largest seed rounds ever, and the valuation was not disclosed. For scale, the post itself lists a team of 43 people. [1] [2]
Can a small team run improvement loops without custom infrastructure?
Yes, at small scale. The four parts, proposer, runner, evaluator, keeper, fit in a script and a test suite. What custom infrastructure buys is parallel throughput and exact control over measurement conditions, which is why the well-funded lab built it first. [1] [2]
Does the invite discount apply to upgrades or renewals?
No. Z.ai's campaign rules say renewals, upgrades, downgrades and follow-up orders are not eligible, and the discount applies once per user to a first paid order. [6]