Coding agents as a hospital: Cockroach's five-month results

Share
Coding agents as a hospital: Cockroach's five-month results

The agentic-coding debate keeps being framed as speed versus trust. Cockroach Labs just published the most detailed trust-first ledger yet — five months of numbers, including the parts that didn't work.

Cockroach Labs ran its codebase like a teaching hospital for five months and says the pipeline merged well over a million lines of code with seven total reverts. In the setup the company calls MOLT Sinai, GitHub issues are patients, merging is discharge, and the humans in charge are Chiefs of Medicine. The core rule is that no agent writes code before its plan is reviewed: a Fellow agent reproduces the problem and posts a treatment plan, a separate Review Attending agent — running a prompt built to find fault rather than fix — approves or rejects it, and only then does work start. A Discharge Nurse at the end doesn't re-review the change at all; it verifies that the review happened properly, checking for an approval, a filled-in review template, no unresolved threads and green CI. The company says it can reconstruct why any of 1,238 pull requests merged from the issue trail alone, and that over the run it spent just over $135,000 in Claude tokens — about $84 per average issue.

The headline result is one sprint: full IBM Db2 support for its database-migration tool, built from a single GitHub issue in under two days for $4,172 in tokens. Cockroach says the equivalent Oracle work in 2024 took nine months and around $160,000 in engineering time, which its own math puts at 164 times faster and 38 times cheaper. The company is candid about the asterisk: no human reviewed the Db2 code during that initial test, and confirming it is still ongoing; since the first week, human approval has been required before anything ships to customers. The pipeline also generated much of its own work — nearly half of the 1,299 issues filed in the repo were filed by the hospital for the hospital, and 85% of the commits to the framework repo were authored by the pipeline itself. The model now runs in four Cockroach repositories.

The failure section is the part worth reading. A one-line fix went through eleven rework rounds over two days — comment hygiene, a false PR claim, rebases, flaky CI — until the safety review that documented it admitted the review loop had no circuit breaker for non-convergence; a fix that forces escalation after four consecutive rounds with new blocking findings has since merged. The instruction files rot like code: an audit of 25 skill files totalling roughly 100,000 words found 23% was removable redundancy, with the Discharge Nurse loading about 29,000 tokens of rules before reading a line of the pull request. And the bureaucracy is real — a confirmed duplicate issue still needed a human because the review protocol had no outcome for closing one.

The claim that matters isn't the speed, it's the metric swap. Most agent-automation experiments optimize pull requests per hour; Cockroach explicitly asked how many of its merges the team "would have been embarrassed to have merged ourselves," which is why the pipeline is slow, layered and expensive on purpose. An industry roundup this month had Cockroach's co-founder arguing that code review is heading toward obsolescence — the hospital paper is the evidence file for that argument, warts included. The open wound the authors name themselves: the hospital doesn't teach. Junior engineers don't get the judgment reps that writing and defending plans build, and their proposed fix — humans writing plans that the agents critique — isn't built yet.

What to watch: whether the framework escapes Cockroach's four repos, and whether any competitor publishes a matching ledger with a human-reviewed baseline.

Would you ship agent-written database code on a seven-revert track record — and who signs off when the reviewer is also an agent? Tell us in the comments.

Read more

Today in AI — October 10, 2026

Today in AI — October 10, 2026

A day where the boring machinery took center stage: proof checkers, order books, warehouses and the humble text message — plus fresh arguments about who gets to declare any of it safe. Models & Research * Mathematicians get a reliability primer for the Lean Theorem Prover. A guest post by Thomas Hales on Terence Tao's blog walks through what Lean actually guarantees — and devotes itself to the "Summer of Soundness Bugs," the string of kernel bugs found this summer that let false proofs thr

Malvertising: fake Claude installers ride Bing redirects

Malvertising: fake Claude installers ride Bing redirects

Claude's popularity has made it a lure — and today's campaign shows how much trust an ad can borrow. One story, dissected. Hackers are running a fake Claude download page through Google Ads, and the trick is that the ad's destination looks like a Microsoft domain. Security researchers at Push Security, who dubbed the technique "Adception," found a sponsored Google result targeting people searching for "claude mac" whose click URL was a legitimate Bing search-results redirect — so the ad passe

Nadella calls for an AI emergency brake humans control

Nadella calls for an AI emergency brake humans control

Microsoft's CEO spent Saturday redefining what "trusting" a frontier model means — and his answer borrows straight from enterprise security: assume it's already compromised. Satya Nadella is calling for advanced AI systems to be built with containment, independent controls, and an "emergency brake" that lets authorized people pause or shut a model down mid-task. In a post on X, the Microsoft CEO argued that companies deploying frontier AI should not simply take model makers' word for how safe

Nvidia in talks for Reflection AI deal, possibly an acquihire

Nvidia in talks for Reflection AI deal, possibly an acquihire

Two stories today both come down to how the big labs get their hands on talent and technology — one at the billion-dollar scale, one at the filing-receipt scale. Nvidia is in talks to acquire Reflection AI or deepen its existing stake in the open-weights startup, according to the Financial Times — and the shape of the deal may matter as much as the price. The FT reports the talks are early, that an agreement could come in the coming weeks, and that it may still fall apart; Reuters and Bloomber