Example: the research-lead flow
A research-lead agent decomposes a question, spawns web-researcher
sub-agents in parallel, has a verifier check the findings, and writes the
final answer to the shared workspace.
Step by step
- Question — "compare Qdrant, Weaviate and Milvus."
- Plan —
research-leadbreaks it into sub-topics (todo_write). - Research in parallel —
run_agentsspawns oneweb-researcherper database; each runsweb_searchin its own session (page reading is delegated tourl-reader, see below). - Verify — a
verifierconfirms or refutes the findings. - Report —
workspace_writeproducesreport.md.
One level deeper: web-researcher → url-reader
Each web-researcher can itself delegate: one url-reader sub-agent per URL,
so a noisy page is read in isolation and only the relevant excerpts return.