Petr Molchanov

Multi-agent orchestrator pattern: one thinks, many work

Multi-agent systems

  • multi-agent-systems
  • orchestrator
  • claude-code
  • subagents
  • llm-cost

The multi-agent orchestrator pattern splits an LLM system into two kinds of work. One expensive model plans, writes hypotheses, delegates and checks results. Cheaper subagents do the mechanical work: API calls, scraping, parsing, code and rendering.

I call the rule behind it the Orchestrator Law. I wrote it into the constitution of my company due diligence agent, and this post shows how it works, where it broke, and a checklist you can copy.

TL;DR

What is the multi-agent orchestrator pattern?

It is a multi-agent system architecture where one model owns the reasoning and many workers own the I/O. The orchestrator never touches raw data. It reads short summaries, decides what to check next, and sends the next batch of tasks.

The idea is old in software. A tech lead who writes every SQL query by hand has no time to think about the design. LLM agents have the same problem, plus one more: every token the top model reads costs top-model money and fills its context window.

In my system the orchestrator is the main Claude Code session on the top model. The workers are Claude Code subagents, each defined in a Markdown file with its own prompt, tools and pinned model. The official docs list “control costs by routing tasks to faster, cheaper models like Haiku” as one reason to use subagents. That is the whole economic idea in one line.

The Orchestrator Law

The Orchestrator Law is a short section in the project’s CLAUDE.md. It says what the top model may do and what it must delegate.

The orchestrator may:

The orchestrator must not:

The law ends with a self-check the model runs at the end of every turn: “Did I do mechanical work myself? If yes, delegate.”

Why so strict? A mixed rule like “delegate when it makes sense” fails quietly. The top model is good at almost everything, so it always finds a reason to “just quickly” parse that file. A flat ban is easier to follow and easier to audit.

How does model tiering work across agents?

Model tiering means each agent gets the cheapest model that can do its job well, and the choice is pinned in the agent’s frontmatter. It is never left to chance or to whatever the main session runs.

My rule of thumb:

Here is the real roster of the research agent, with neutral names for the data sources:

Agent Model Job
orchestrator top model plans, writes and validates hypotheses, delegates, merges
company-core haiku company registry record, industry codes, directors, founders, financial filings by year
graph-affil sonnet ownership graph up to 4 levels (nodes and edges)
projects-discovery sonnet what the company actually built, with role and confidence, plus a list of what it did not do
counterparties sonnet who pays the company: court records, public procurement customers, owner-linked clients
risk-signals sonnet bankruptcy, court cases, enforcement debt, tax debt, blacklists
construction sonnet permits, delays, industry rating, guild membership
news-web sonnet news and reputation events, dated, with sentiment
hypothesis-verify sonnet checks one hypothesis with 1 to 3 targeted pulls, returns a verdict

Two more roles run as general-purpose Sonnet agents during a full run: one maps who designs the group’s buildings, one builds the contacts layer.

I have no token or cost logs for this project, so I can’t give you a savings number. The logic is still simple. Collectors read the bulky stuff: raw API responses, HTML pages, ownership graphs that can reach thousands of nodes. If the top model read all of that, you would pay top-tier prices for the cheapest part of the job. With the split, the orchestrator reads short JSON summaries and spends its tokens on decisions.

The 6-phase investigation loop

The loop is what turns parallel data collection into an investigation. Each phase has a clear owner, and the orchestrator decides when to move on or go back.

user: "investigate <name | website | registry ID>"
            |
            v
ORCHESTRATOR (top model): plans, writes hypotheses, validates
  forbidden: API calls, scraping, parsing, code, HTML
            |
  Phase 1  identity and core -> one registry ID (a gate)
            |
  Phase 2  parallel fan-out, one message, one file per agent:
           company-core  graph-affil  projects  counterparties
           risk  construction  news-web  designer  contacts
            |
  Phase 3  orchestrator picks hypotheses from the catalog
            |
  Phase 4  N x hypothesis-verify, in parallel
            |  new lead? -> back to phase 2 or 3
            v
  Phase 5  distress score, synthesis, timeline
            |
  Phase 6  report agent -> one self-contained HTML file

Two details matter more than the diagram.

Independent tasks go out in one message. All collectors in phase 2 start in the same turn, so they run in parallel instead of one after another.

Each agent writes its own file. A collector writes research/<id>-<layer>.json and nothing else. Two agents never write to the same file, so there are no write collisions and no half-merged JSON. The orchestrator merges later, after it validates.

Phase 1 is a gate. I learned that the hard way. Once, the identification step found only a look-alike company with a one-letter name difference. It even wrote “target not confirmed”, and the orchestrator still launched 5 to 7 parallel collectors on the wrong entity. An unconfirmed identity multiplies waste by the number of agents. Now the rule is: no confirmed registry ID, no fan-out.

The verify step is where the orchestrator earns its price. In two investigations it logged 8 corrections where collectors disagreed or made mistakes. Examples: a former company name read as a separate contractor, a procedural filing read as a bankruptcy signal, and parent-only accounts mistaken for group results. A corrections[] field is cheap, and it proves the validator role does real work.

Where did the pattern break?

It broke in two places, and both are more useful than the parts that worked.

The orchestrator did mechanical work anyway

The law was in CLAUDE.md. The model broke it.

In a side project inside the same repo, one layer “was being built by a subagent but was actually written directly in the primary session”. Two investigations also got their own bespoke report builders, 781 and 872 lines long, instead of using the generic renderer. That is a lot of top-model output spent on mechanical code.

The lesson: rules in a prompt help, but they don’t enforce anything. The fix is tool permissions per role. If the orchestrator has no Write or Bash tool, it can’t write the report builder, no matter how helpful it wants to be. And invest once in a generic renderer, so there is no reason to build a new one.

Subagents invented their own JSON shapes

Every collector had an output contract. In practice, subagents still improvised:

“Ingested ok” meant nothing without row counts. The fix was exact file names and a flat schema in every subagent prompt, plus a SELECT check after ingest. The better fix is to validate each layer at the boundary with JSON Schema or Zod and fail loudly.

This is the deeper point. A cheap model follows the shape you show it, and it fills gaps with its own guesses. The orchestrator can catch some of that, but a schema check catches it for free and every time.

A smaller failure: shared quotas

Parallel collectors share the same API quotas. On one run they drained a 100-requests-per-day free tier together before the collectors finished. In multi-agent systems the scarce resource is often a shared quota. Cache every response and route quota-bound calls through one agent or the cache.

Does it work in a real run?

Yes. The full research agent ran 5 real investigations. Each one produced an HTML report where every claim has a source and a confidence tag, and all findings went into a 14-table SQLite knowledge base.

The biggest run was a pre-pitch check on a large developer group. The agent mapped an ownership graph of 209 companies and 329 links and found the group’s in-house design bureau. The client was surprised that we knew about it. The whole run took about 2 hours, not counting the code and agent tooling I keep improving between runs. I tell the full story, including why we still lost the deal, in the AI research agent case study.

When should you use this pattern, and when not?

Use the orchestrator pattern when the work has many independent, bulky data tasks and a reasoning step on top. Skip it when one model can hold the whole task in its context.

Use it when:

Skip it when:

A checklist you can copy

This is what I would set up on day one for any new multi-agent system:

  1. Write the orchestrator’s allow list and deny list. Plan, hypothesize, delegate, validate, merge. No APIs, no scraping, no parsing, no code, no rendering.
  2. Enforce it with tool permissions. Remove Write and Bash from the orchestrator role where your agent framework allows it.
  3. Add the end-of-turn self-check. “Did I do mechanical work myself? If yes, delegate.”
  4. Pin a model in every agent’s frontmatter. Haiku for extraction, Sonnet for collection and code, the top model only for hard reasoning.
  5. Give every subagent a fixed output schema and an exact file name. One file per agent, so parallel writes never collide.
  6. Validate at the boundary. JSON Schema or Zod on every layer, and fail loudly. Check row counts after any ingest.
  7. Make identity a gate. No confirmed key, no fan-out.
  8. Launch independent tasks in one message. Sequential launches waste wall-clock time.
  9. Log corrections. A corrections[] field shows what the validator caught.
  10. Cache everything and protect shared quotas. Check the cache before every provider call.

A short summary of the research agent and its stack is on my projects page.

Key takeaways

Building agents too? I like comparing notes: email or Telegram.