Orchestrator-workers

exploration tokenscondensed report
Subagent 1reportSubagent 2reportSubagent 3reportOrchestrator
  1. The orchestrator decomposes and delegates.
  2. Subagents explore in isolated context windows.
  3. Each condenses its trajectory into a report.
  4. The orchestrator synthesizes from reports only.
Notes & references

Use when

Breadth-first, read-heavy research.

Avoid

Tightly coupled edits: token cost multiplies with subagents.

plan = lead.split(question)          # 3 clear parts

notes = await gather(*[
    subagent(part, tools=[search, read])  # own context
    for part in plan
])

return lead.combine(question, notes)      # reads notes only