Knowledges 14 min

When Multi-agent Stops Being a Mess

The bottleneck in AI coding is no longer the model, it's human attention. A breakdown of Factory's Missions: validation contracts written before code, serial beating parallel, and picking the right model for each role.

Also in: Tiếng Việt · 中文 · 한국어 · 日本語

When Multi-agent Stops Being a Mess

TL;DR for busy people

Luke Alvoeiro — who previously created Goose (Block's open-source coding agent, now donated to the AI Agentic AI Foundation) and now leads the core agent harness at Factory — just presented a multi-agent architecture called Missions that ran continuously for 16 days in production, with a Slack clone project reaching 90% test coverage. Factory just raised a $150M Series C at a $1.5B valuation (led by Khosla Ventures, with Sequoia/Blackstone participating), with customers including Nvidia, Adobe, Morgan Stanley, EY, MongoDB, Bayer, Adyen.

1. The problem: Why does a great engineer still only ship a few tasks a day?

When Multi-agent Stops Being a Mess

Luke opens with an observation that hits close to home: even the best engineer only moves a few tasks forward each day, even when the backlog has 50 features. Why? Every task demands attention. Every commit needs review. Today's models are smart enough to solve all 50 of those tasks — but there isn't enough human bandwidth to supervise them.

This is a thesis worth chewing on. For the past few years, every conversation about AI coding has revolved around benchmarks: which model writes cleaner code, fixes bugs faster. But if Luke is right, then the competitive edge has shifted from the model layer up to the orchestration layer — and that's exactly the thesis Factory is betting $1.5B on.

The question Factory asked itself: "What if a human decides what to build and then a system figures out how to do so?" An agent can run for hours, for days, and you only need to come back to review the results.

2. A taxonomy of 5 multi-agent patterns — naming the mess

One of the most valuable contributions of the talk is a taxonomy that names the patterns scattered around. This field, as Luke puts it, "is a bit of a mess" — every framework has its own terminology, its own opinions. The five patterns:

When Multi-agent Stops Being a Mess
PatternWhat it isTypical use case
DelegationParent agent spawns a child agent, gets a responseSub-agents, coding tools (the simplest, everyone does it first)
Creator-VerifierOne agent builds, another checksCode review — a fresh context spots bugs more easily than an agent with "cost bias"
Direct CommunicationAgents talk to each other without a coordinatorHard to get right because state is fragmented, no single source of truth
NegotiationAgents negotiate over a shared resourceWhen multiple agents modify the same part of the code base — best when positive-sum
BroadcastOne agent sends info to manyStatus updates, shared constraints — not flashy but essential for continuity

The delegation pattern is exactly what Anthropic describes in the orchestrator-workers cookbook — a central LLM analyzes the task, dynamically splits it into subtasks, and delegates them to specialized workers. It's also the pattern Anthropic used for their multi-agent research system, achieving a 90.2% improvement over single-agent Claude Opus 4 on their internal eval.

A key point Luke stresses: negotiation doesn't have to be adversarial. The best use case is positive-sum trading — agents in a win-win situation. It's a fresh perspective for anyone who used to think multi-agent = competing agents (like me).

3. Missions: 4 of the 5 patterns + a 3-role architecture

When Multi-agent Stops Being a Mess

Missions combines delegation + creator-verifier + broadcast + negotiation (no direct communication — and that's a deliberate choice, explained later). The workflow:

mermaidflowchart LR
  A["User describes the goal"] --> B["Scope via conversation"]
  B --> C["Approve plan"]
  C --> D["System runs for hours, for days"]
The Missions workflow

At the core is a 3-role architecture:

mermaidflowchart LR
  O["Orchestrator: plan + validation contract"] --> W["Worker: implements each feature"]
  W --> H["Structured handoff"]
  H --> V["Validators: scrutiny + user testing"]
  V -->|"not passing"| F["Follow-up features"]
  F --> W
  V -->|"pass"| N["Next milestone"]
The 3 roles of Missions and the validation loop

3.1. Orchestrator — handles planning

When you describe a goal, the orchestrator acts as a sounding board: it asks strategic questions, clarifies fuzzy requirements, and produces a plan that includes:

Features

The features to build.

Milestones

The checkpoints.

Validation contract

Defines "done" before a single line of code is written.

That last one is the key innovation. I'll come back to it in section 4.

3.2. Workers — handle implementation

Each feature is assigned to a worker with clean context, no accumulated baggage. The worker reads the spec, implements, and commits via Git. The next worker inherits a clean code base.

This is why Missions chooses serial execution (analyzed in section 5) — not because they don't want parallelism, but because a code base is shared state.

3.3. Validators — handle verification

Most systems only run lint, type check, tests, maybe plus code review. Missions does all of that PLUS behavior validation — not just "is the code syntactically correct" but "does the feature actually work end-to-end".

4. Validation contract — Missions' most important innovation

This is the part I found most practically valuable, and also the part I've already applied to ClaudeKit.

The problem: tests written AFTER implementation are useless

When Multi-agent Stops Being a Mess

Luke nails a common anti-pattern in vibe coding:

"An agent builds a feature. It writes some tests. The tests pass. There's full coverage. But the tests were shaped by the code, not by what the code was attempting to actually do. Tests written after implementation don't catch bugs. They confirm decisions."
— Luke Alvoeiro

This line deserves to be framed and hung on the wall. When the same agent writes both the code and the tests, the tests are simply evidence for the decisions the agent already made — not an independent check of correctness.

This is exactly the problem recent academic papers point out too: in the Nexus framework (arxiv 2510.26423), the authors call this "specification-based oracles that verify correctness against intended behavior rather than existing implementation" — and they had to build an entire multi-agent pipeline just to solve test oracle synthesis (*).

The fix: a validation contract written before the code

The validation contract is written during planning, before any code is written. It defines correctness independently of the implementation. For a complex project it can be hundreds of assertions, and each feature is assigned one or more of them. Together, all features must cover every assertion.

Locked section: Two kinds of validators run after each milestone

Locked section: 5. Why does serial execution beat parallel? — a lesson about speed

Locked section: Features run serially

Locked section: Within a feature

Locked section: Within validators

Locked section: 6. Structured handoffs — the connective tissue

Locked section: 7. Droid whispering — picking a model for each role

Locked section: Planning

Locked section: Implementation

Locked section: Validation

Locked section: 8. The bitter lesson — the architecture must get better with every model release

Locked section: 9. Real production data — the Slack clone case study

Locked section: 10. Mission Control & async development

Locked section: 11. The economics flip

Locked section: 12. Personal take & implications for ClaudeKit

Locked section: Luke's closing line

Locked section: Citations & Further Reading

The rest is for Knowledges members

Plus 17 more sections (about 10 min) for members

You are reading roughly the first third. Knowledges, Combo and Community plans unlock paid articles in full; the Zuey AI plan reads previews only.