[{"data":1,"prerenderedAt":122},["ShallowReactive",2],{"term-o\u002Forchestrator-worker-pattern":3,"related-o\u002Forchestrator-worker-pattern":108},{"id":4,"title":5,"acronym":6,"body":7,"category":89,"description":90,"difficulty":91,"extension":92,"letter":93,"meta":94,"navigation":95,"path":96,"related":97,"seo":102,"sitemap":103,"stem":106,"subcategory":6,"__hash__":107},"terms\u002Fterms\u002Fo\u002Forchestrator-worker-pattern.md","Orchestrator-Worker Pattern",null,{"type":8,"value":9,"toc":83},"minimark",[10,15,19,23,26,30,72,76,79],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 - The Vibe Check",[16,17,18],"p",{},"This is a project manager who breaks a big job into tickets, hands each one to a specialist, and stitches the finished pieces back into one result, except the project manager and every specialist are AI agents. Nobody works on the whole problem alone, and the boring coordination overhead of a human team gets automated right along with the work itself.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"The orchestrator-worker pattern is a multi-agent topology where a top-level orchestrator agent decomposes a task, dispatches subtasks to worker subagents running in parallel or in sequence, and aggregates their results into a final output. It's the dominant pattern for parallelizable agentic coding work, such as large-scale refactors across many files or research fan-out across many sources.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","subtasks = orchestrator.plan(task)\nresults = await asyncio.gather(*[\n    worker_agent.run(subtask) for subtask in subtasks\n])\nfinal_report = orchestrator.synthesize(results)\n","python","",[38,39,40,48,54,60,66],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,47],{},"subtasks = orchestrator.plan(task)\n",[41,49,51],{"class":43,"line":50},2,[41,52,53],{},"results = await asyncio.gather(*[\n",[41,55,57],{"class":43,"line":56},3,[41,58,59],{},"    worker_agent.run(subtask) for subtask in subtasks\n",[41,61,63],{"class":43,"line":62},4,[41,64,65],{},"])\n",[41,67,69],{"class":43,"line":68},5,[41,70,71],{},"final_report = orchestrator.synthesize(results)\n",[11,73,75],{"id":74},"when-youll-hear-this","When You'll Hear This",[16,77,78],{},"\"The orchestrator split the refactor into 12 files and ran the workers in parallel.\" \u002F \"One orchestrator, five workers, done in a tenth of the time.\"",[80,81,82],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":50,"depth":50,"links":84},[85,86,87,88],{"id":13,"depth":50,"text":14},{"id":21,"depth":50,"text":22},{"id":28,"depth":50,"text":29},{"id":74,"depth":50,"text":75},"ai","This is a project manager who breaks a big job into tickets, hands each one to a specialist, and stitches the finished pieces back into one result, except...","intermediate","md","o",{},true,"\u002Fterms\u002Fo\u002Forchestrator-worker-pattern",[98,99,100,101],"Subagent","Multi-Agent","Agent Fleet","Agent Swarm",{"title":5,"description":90},{"changefreq":104,"priority":105},"weekly",0.7,"terms\u002Fo\u002Forchestrator-worker-pattern","adW8xK76Dmg-joXCMaMcamrF1C9aH8aJ6Pr5r7BRbvc",[109,113,116,119],{"title":100,"path":110,"acronym":6,"category":89,"difficulty":111,"description":112},"\u002Fterms\u002Fa\u002Fagent-fleet","advanced","An agent fleet is a whole bunch of AI agents running in production — each handling one kind of task, all of them at once.",{"title":101,"path":114,"acronym":6,"category":89,"difficulty":111,"description":115},"\u002Fterms\u002Fa\u002Fagent-swarm","An agent swarm is multiple AI agents working in parallel on different parts of a problem. Like a small dev team, except every member is a model.",{"title":99,"path":117,"acronym":6,"category":89,"difficulty":91,"description":118},"\u002Fterms\u002Fm\u002Fmulti-agent","Multi-agent means multiple AI agents working together, each handling a different task.",{"title":98,"path":120,"acronym":6,"category":89,"difficulty":91,"description":121},"\u002Fterms\u002Fs\u002Fsubagent","A subagent is a junior teammate you delegate a chunk of work to.",1792528105580]