By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
A research system produced a twelve-page report in forty minutes for about six dollars. Two sections disagreed about the same quarter's revenue. The coordinator had split the work cleanly and merged it badly.
It sent every subagent the same instruction, research the market, then joined the three replies in order. Nothing compared them. Each subagent did exactly what it was asked.
The coordinator is not a dispatcher. It owns the plan, the budget and the merge. The subagents own one question each.
Write the ownership down before you write prompts. Most multi-agent failures are ownership failures in disguise.
| Component | Owns | Must not own |
|---|---|---|
| Coordinator | The goal, the decomposition, the budget, the merge rule, the final answer | The research itself |
| Subagent | One question, its own tool calls, a structured finding | The plan, the budget, or another agent's findings |
| Merge step | Comparison, conflict flags, provenance, the decision to escalate | A tie-break invented to hide a conflict |
A coordinator that also does the research has too much context to judge the research. Keep the judgement and the labour in different places.
Parallel subagents pay off when tasks do not read each other's output. Search, document extraction and warehouse queries fit. Drafting the report does not, because it needs every finding.
The branch is the part most designs skip. When two reliable sources disagree, the system needs a named owner for the conflict. Here the merge step flags it and a person resolves it. A coordinator that quietly picks the larger number has invented a policy.
A brief is a short, deliberate package. It is not a summary of everything you know. It is the smallest set of facts a subagent needs to answer one question, plus the shape you need back.
| Field | Example | Why it matters |
|---|---|---|
| Goal | Find 2025 revenue for the three peers | One question, not a topic |
| Facts | Currency, fiscal year, tickers | Removes guesses the subagent would otherwise make |
| Constraints | cite a filing URL for every figure | Turns a preference into a testable rule |
| Return keys | claims, sources, gaps | Makes the merge mechanical |
If you cannot write the brief in a dozen lines, the subagent's question is too broad. Split it.
BRIEF_KEYS = ("goal", "facts", "must_cite", "return_keys")
def delegate(brief, run_subagent):
missing = [key for key in BRIEF_KEYS if key not in brief]
if missing:
raise ValueError(f"incomplete brief: {missing}")
reply = run_subagent(brief)
absent = [key for key in brief["return_keys"] if key not in reply]
if absent:
raise ValueError(f"subagent returned no {absent}")
return reply
def fake_search_subagent(brief):
# Stands in for a spawned subagent: it sees only the brief.
return {
"claims": ["revenue grew 12%"],
"sources": ["https://example.com/filing"],
"gaps": [],
}
brief = {
"goal": "Find the latest annual revenue for the three peer companies.",
"facts": {"currency": "USD", "fiscal_year": 2025},
"must_cite": True,
"return_keys": ("claims", "sources", "gaps"),
}
print(delegate(brief, fake_search_subagent))Both checks run before any expensive work. A subagent launched with a missing return contract burns tokens and comes back unusable.
A friendly paragraph cannot be merged. Ask for a small object with fixed keys: the claim, the value, the source, a confidence, and what was not checked. Validate it in the coordinator. Re-ask once, then record the gap instead of filling it.
Do this on paper before you touch code.
which two files implement billing retries?the reader, add the missing merge rule before you write any prompt.Key takeaways
A coordinator owns the plan, the budget and the merge; each subagent owns one question.
Fan out only across independent work; drafting waits for every finding.
Send a compact brief with facts and return keys, not the full transcript.
Require a structured return so the merge can compare, cite and flag conflicts.
Give every disagreement a named owner; a quiet tie-break is an invented policy.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.