Orchestration done well:
a hospital and a claims team.
Two real companies split a big job between agents. Each agent has one job and its own desk. A checker reviews the work. A human makes the final call. Read the caveats: every number is the company’s own.
Software · Cockroach Labs · public blog post, 9 October 2026
Cockroach Labs: a hospital for code
Two senior engineers built a “hospital” of AI agents. Each bug or feature request is a patient. Each agent has one job, like a nurse or a doctor. Humans are the bosses.
Their words: “Issues are patients. Merging is discharge. The humans in charge are the Chiefs of Medicine.” The business is a database. A small bug in a migration tool can corrupt a customer’s data. So they wanted quality, not speed, and accepted “bureaucracy, wait times, and cost”.
One patient, start to finish
- A human admits it
- Triage Nurse
- Fellow writes the plan
- Review Attending checks the plan
- Fellow writes the code
- Automatic tests
- Review Attending checks the code
- Discharge Nurse checks every check
- A human approves the merge
The reviewer is a different agent from the one that did the work. The Discharge Nurse does not re-review the code. It checks that each review really happened. The post names these roles plus a few departments (a Charge Nurse, Infection Control, Safety, Research). It does not list a name for every agent.
The rules that made it work
- No code before a plan, no plan without review. A wrong fix costs more than a pause to check.
- The handoff note has a fixed format. A stuck agent does not “try harder”. It writes a structured handoff (I-PASS, borrowed from hospitals). The next agent writes back what it understood before it starts, like a relay runner who repeats the plan before taking the baton.
- Small enough to check. A job above 1,000 lines of code must be split, so that a reviewer can hold all of it in their head.
- A stop rule on rework. After four rework rounds that each find a new blocking problem, or after six rounds, the reviewer must hand off. The post says it is too early for good data.
- Only humans write precedents. Agents must check the human rulings before they escalate.
What it bought
Oracle support, 20249 months, about $160K in engineering time. Engineers wrote the code.
Db2 support, AprilLess than two days, a $4,172 token bill. No human wrote the code.
The post calls this “164x faster, and 38x cheaper”. Read the caveats beside it.
Caveats
- Not like for like: Oracle is engineering salaries; Db2 is the token bill only. Human time, later checking and the cost of building the hospital are not in it.
- No human reviewed the Db2 code in that first test. Agent reviewers did: they sent work back 55 times. At publication, the team was still confirming that the Db2 support is correct.
- After the first week, they turned on human approval for every merge. Only then could they be sure the code was good enough to ship.
- The authors say: “We don’t claim that this is cheaper than a swarm or simpler than a single agent.”
- The post says “in April” and gives no year. All numbers are the company’s own; nobody outside audited them.
What went wrong
- Too much bureaucracy. A one-line text change went five rework rounds and reached the human Chief.
- Rework loops. A one-line fix (issue 1777) took eleven rework rounds over two days.
- Self-made work. Agents filed 1,299 issues for other agents, nearly half of all issues.
- Instructions on the desk. One agent loaded about 29,000 tokens of instructions before it read a line of the work. “Our prompts rotted the way code does.”
Link to the desk. Each stage gets its own folder: the issue, its notes and its role prompt. Only the handoff note moves between desks. That is why its format is fixed.
Insurance · Allianz Project Nemo · Allianz media centre, 3 November 2025
Allianz: seven agents, one human decision
A storm cuts the power. The food in the fridge spoils. The customer files a claim. Seven agents prepare it. A claims professional decides.
Allianz launched Project Nemo in Australia in July 2025, its first agentic AI solution. It handles simple food spoilage claims after a severe-weather power cut, with a threshold of AUD 500. In Allianz’s example, a customer claims AUD 250.
Seven agents, one job each
| Agent | Its job |
|---|---|
| Planner | Starts the workflow. Receives the payout amount from the Payout agent. |
| Cyber | Watches the whole workflow for data security. |
| Coverage | Checks that the policy covers food spoilage in a severe-weather event. |
| Weather | Confirms that a real weather event matches the claim. |
| Fraud | Checks for signs of fraud. |
| Payout | Calculates the payout and reports it to the Planner. |
| Audit | Reviews the process and writes a summary of all agent decisions for a human. |
The human gate. “By design, payout decisions are never automated” (Maria Janssen, Allianz). The agents recommend. A claims professional makes the final payout decision.
What it bought (Allianz says)
80% less timeClaim processing and settlement time, Allianz’s own figure.
Under 5 minutesIn Allianz’s example: from the claim to the final human review.
Allianz also says these claims went “from several days to one day—or even just hours”, and that Nemo went live in under 100 days.
Caveats
- The 80% and the time figures come only from Allianz. Trade press repeats them; that is not an independent check.
- Five minutes is one example, up to the human review. It is not an average.
- The scope is narrow on purpose: simple, high-volume, low-value claims. Travel, motor and property claims are only “under consideration”.
- Allianz does not say in which order the coverage, weather and fraud agents run. A drawing that shows them at the same time is an illustration.
- Allianz does not name the AI model.
Link to the desk (our reading, not Allianz’s words). Each agent needs only its own slice: the policy, the weather data, the fraud signals. No agent holds the whole case. The Audit agent hands the human a short summary, not the whole pile.
Same shape, three places
| Cockroach Labs | Allianz Nemo | Your IC memo | |
|---|---|---|---|
| The lead | The process itself: labels pass each patient to the next stage. A human admits the work. | The Planner agent | You, the team lead |
| Specialists, own desks | Triage Nurse, Fellow | Coverage, Weather, Fraud, Payout | Finance, market and customer, risk |
| The checker | Review Attending (a different agent); Discharge Nurse | Audit agent; Cyber agent on security | The reviewer chat |
| The human gate | Chief of Medicine; human approval for every merge | A claims professional decides every payout | The partner signs |
The mapping is ours. Each element comes from the company’s own description.
Sources, checked 12 November 2026: Adam Storm and Rafi Shamim, “Five months treating bugs like patients and coding agents like a medical team”, Cockroach Labs blog, 9 October 2026, cockroachlabs.com/blog/experiment-running-hospital-code/ · Allianz SE media centre, Project Nemo article, 3 November 2025, allianz.com/en/mediacenter/news/articles/251103-when-the-storm-clears-so-should-the-claim-queue.html. Short quotes only; all other text is our summary. Fondo Norte and Pedala are fictional.