[{"data":1,"prerenderedAt":499},["ShallowReactive",2],{"navigation_docs":3,"-advanced-multi-agent-patterns":129,"-advanced-multi-agent-patterns-surround":494},[4,28,62,94,100,125],{"title":5,"path":6,"stem":7,"children":8,"order":11,"icon":27},"Getting Started","/getting-started","1.getting-started/index",[9,12,17,22],{"title":10,"path":6,"stem":7,"order":11},"What is Gangsta Agents?",1,{"title":13,"path":14,"stem":15,"order":16},"Installation","/getting-started/installation","1.getting-started/installation",2,{"title":18,"path":19,"stem":20,"order":21},"Quickstart — Your First Heist","/getting-started/quickstart","1.getting-started/quickstart",3,{"title":23,"path":24,"stem":25,"order":26},"The 1% Rule","/getting-started/the-1-percent-rule","1.getting-started/the-1-percent-rule",4,"i-lucide-rocket",{"title":29,"path":30,"stem":31,"children":32,"order":11,"icon":61},"Core Concepts","/core-concepts","2.core-concepts/index",[33,34,39,43,48,52,56],{"title":29,"path":30,"stem":31,"order":11},{"title":35,"path":36,"stem":37,"order":38},"Intent Routing","/core-concepts/intent-routing","2.core-concepts/intent-routing",5,{"title":40,"path":41,"stem":42,"order":26},"Omerta — The Five Laws","/core-concepts/omerta","2.core-concepts/omerta",{"title":44,"path":45,"stem":46,"order":47},"Spec-Driven Development","/core-concepts/spec-driven-dev","2.core-concepts/spec-driven-dev",7,{"title":49,"path":50,"stem":51,"order":16},"The Gangsta Agents Family Hierarchy","/core-concepts/the-borgata","2.core-concepts/the-borgata",{"title":53,"path":54,"stem":55,"order":21},"The Heist Pipeline","/core-concepts/the-heist","2.core-concepts/the-heist",{"title":57,"path":58,"stem":59,"order":60},"The Ledger","/core-concepts/the-ledger","2.core-concepts/the-ledger",6,"i-lucide-brain",{"title":63,"icon":64,"path":65,"stem":66,"children":67},"Heist Pipeline","i-lucide-workflow","/heist-pipeline","3.heist-pipeline",[68,70,74,78,82,86,90],{"title":53,"path":65,"stem":69,"order":11},"3.heist-pipeline/index",{"title":71,"path":72,"stem":73,"order":16},"Reconnaissance","/heist-pipeline/reconnaissance","3.heist-pipeline/1.reconnaissance",{"title":75,"path":76,"stem":77,"order":21},"The Grilling","/heist-pipeline/the-grilling","3.heist-pipeline/2.the-grilling",{"title":79,"path":80,"stem":81,"order":26},"The Sit-Down","/heist-pipeline/the-sit-down","3.heist-pipeline/3.the-sit-down",{"title":83,"path":84,"stem":85,"order":38},"Resource Development","/heist-pipeline/resource-development","3.heist-pipeline/4.resource-development",{"title":87,"path":88,"stem":89,"order":60},"Execution","/heist-pipeline/the-hit","3.heist-pipeline/5.the-hit",{"title":91,"path":92,"stem":93,"order":47},"The Delivery","/heist-pipeline/laundering","3.heist-pipeline/6.laundering",{"title":95,"path":96,"stem":97,"children":98},"Skills Reference","/skills","4.skills/index",[99],{"title":95,"path":96,"stem":97},{"title":101,"icon":102,"path":103,"stem":104,"children":105},"Advanced","i-lucide-zap","/advanced","5.advanced",[106,109,113,117,121],{"title":107,"path":103,"stem":108,"order":11},"Advanced Topics","5.advanced/index",{"title":110,"path":111,"stem":112,"order":26},"Checkpoint Recovery","/advanced/checkpoint-recovery","5.advanced/checkpoint-recovery",{"title":114,"path":115,"stem":116,"order":38},"Contributing","/advanced/contributing","5.advanced/contributing",{"title":118,"path":119,"stem":120,"order":16},"Writing Custom Skills","/advanced/custom-skills","5.advanced/custom-skills",{"title":122,"path":123,"stem":124,"order":21},"Multi-Agent Patterns","/advanced/multi-agent-patterns","5.advanced/multi-agent-patterns",{"title":126,"path":127,"stem":128,"order":60},"Glossary","/glossary","6.glossary",{"id":130,"title":122,"body":131,"description":487,"extension":488,"links":489,"meta":490,"navigation":491,"path":123,"seo":492,"stem":124,"__hash__":493},"docs/5.advanced/multi-agent-patterns.md",{"type":132,"value":133,"toc":474},"minimark",[134,138,142,147,157,160,166,179,184,205,212,215,219,230,235,252,256,262,272,277,291,295,300,306,310,321,325,330,336,340,351,355,358,364,389,392,396,462],[135,136,122],"h1",{"id":137},"multi-agent-patterns",[139,140,141],"p",{},"When a Heist involves multiple files, multiple domains, or multiple concerns, the Gangsta Agents hierarchy provides structured patterns for multi-agent coordination.",[143,144,146],"h2",{"id":145},"the-two-orchestration-skills","The Two Orchestration Skills",[148,149,151,152,156],"h3",{"id":150},"underboss-gangstathe-underboss","Underboss (",[153,154,155],"code",{},"gangsta:the-underboss",")",[139,158,159],{},"The COO. Handles task decomposition and resource allocation.",[139,161,162],{},[163,164,165],"strong",{},"When to invoke:",[167,168,169,173,176],"ul",{},[170,171,172],"li",{},"Complex features that span multiple files or domains",[170,174,175],{},"Tasks that have clear dependency chains",[170,177,178],{},"When you need an Execution Plan broken into parallel work packages",[139,180,181],{},[163,182,183],{},"What the Underboss does:",[185,186,187,190,193,196,199,202],"ol",{},[170,188,189],{},"Analyzes the Contract",[170,191,192],{},"Decomposes work into discrete packages",[170,194,195],{},"Maps dependencies between packages",[170,197,198],{},"Assigns territories (domains) to Crew Leads",[170,200,201],{},"Estimates budgets per package",[170,203,204],{},"Produces the Execution Plan",[148,206,208,209,156],{"id":207},"crew-lead-gangstathe-capo","Crew Lead (",[153,210,211],{},"gangsta:the-capo",[139,213,214],{},"The domain crew lead. Orchestrates work within a territory.",[139,216,217],{},[163,218,165],{},[167,220,221,224,227],{},[170,222,223],{},"When a territory has multiple related tasks",[170,225,226],{},"When a domain needs coordinated changes across multiple files",[170,228,229],{},"When sub-tasks within a territory need sequencing",[139,231,232],{},[163,233,234],{},"What the Crew Lead does:",[185,236,237,240,243,246,249],{},[170,238,239],{},"Receives territory assignment from the Underboss",[170,241,242],{},"Sequences tasks within the territory",[170,244,245],{},"Dispatches Workers for individual tasks",[170,247,248],{},"Enforces quality standards within the territory",[170,250,251],{},"Reports completion status",[143,253,255],{"id":254},"pattern-1-parallel-territories","Pattern 1: Parallel Territories",[139,257,258,261],{},[163,259,260],{},"Best for:"," Features that touch independent domains (e.g., frontend + backend)",[263,264,269],"pre",{"className":265,"code":267,"language":268},[266],"language-text","Underboss\n├── Territory A (Frontend) → Crew Lead A → Worker 1, Worker 2\n├── Territory B (Backend) → Crew Lead B → Worker 3\n└── Territory C (Database) → Crew Lead C → Worker 4\n","text",[153,270,267],{"__ignoreMap":271},"",[139,273,274],{},[163,275,276],{},"Workflow:",[185,278,279,282,285,288],{},[170,280,281],{},"Underboss decomposes the Contract into 3 territories",[170,283,284],{},"Each Crew Lead sequences their territory's tasks",[170,286,287],{},"Workers execute in parallel across territories",[170,289,290],{},"No cross-territory dependencies — maximum parallelism",[143,292,294],{"id":293},"pattern-2-sequential-dependencies","Pattern 2: Sequential Dependencies",[139,296,297,299],{},[163,298,260],{}," Features with hard dependencies (e.g., database schema must exist before API endpoints)",[263,301,304],{"className":302,"code":303,"language":268},[266],"Underboss\n├── Phase 1: Territory A (Schema) → Crew Lead A → Worker 1\n│   (gate: schema complete)\n├── Phase 2: Territory B (API) → Crew Lead B → Worker 2\n│   (gate: API complete)\n└── Phase 3: Territory C (Frontend) → Crew Lead C → Worker 3\n",[153,305,303],{"__ignoreMap":271},[139,307,308],{},[163,309,276],{},[185,311,312,315,318],{},[170,313,314],{},"Underboss identifies dependency chain",[170,316,317],{},"Crew Leads execute sequentially, each waiting for the previous to complete",[170,319,320],{},"Each phase has a gate — next phase doesn't start until current one is verified",[143,322,324],{"id":323},"pattern-3-mixed-parallel-sequential","Pattern 3: Mixed Parallel-Sequential",[139,326,327,329],{},[163,328,260],{}," Most real-world features (some things can run in parallel, others can't)",[263,331,334],{"className":332,"code":333,"language":268},[266],"Underboss\n├── Phase 1: [Territory A (DB) | Territory B (Config)]  ← parallel\n│   (gate: both complete)\n├── Phase 2: [Territory C (API) | Territory D (Tests)]  ← parallel\n│   (gate: both complete)\n└── Phase 3: Territory E (Integration)  ← sequential\n",[153,335,333],{"__ignoreMap":271},[139,337,338],{},[163,339,276],{},[185,341,342,345,348],{},[170,343,344],{},"Within each phase, territories run in parallel",[170,346,347],{},"Phases run sequentially (phase 2 waits for phase 1)",[170,349,350],{},"The Execution Plan documents the dependency graph",[143,352,354],{"id":353},"communication-protocol","Communication Protocol",[139,356,357],{},"All inter-agent communication follows Omerta Law #1 (The Introduction Rule):",[139,359,360,363],{},[163,361,362],{},"Workers never communicate directly with each other."," All communication flows through files:",[167,365,366,372,378,384],{},[170,367,368,371],{},[163,369,370],{},"Contracts"," → define what to build",[170,373,374,377],{},[163,375,376],{},"Execution Plans"," → define how to build it",[170,379,380,383],{},[163,381,382],{},"Checkpoints"," → track progress",[170,385,386,388],{},[163,387,57],{}," → preserve knowledge",[139,390,391],{},"This prevents the \"telephone game\" problem where messages distort through chains of agents.",[143,393,395],{"id":394},"choosing-the-right-pattern","Choosing the Right Pattern",[397,398,399,415],"table",{},[400,401,402],"thead",{},[403,404,405,409,412],"tr",{},[406,407,408],"th",{},"Situation",[406,410,411],{},"Pattern",[406,413,414],{},"Orchestration",[416,417,418,430,441,452],"tbody",{},[403,419,420,424,427],{},[421,422,423],"td",{},"Single file, single concern",[421,425,426],{},"Sequential",[421,428,429],{},"Crew Lead only",[403,431,432,435,438],{},[421,433,434],{},"Multiple independent concerns",[421,436,437],{},"Parallel Territories",[421,439,440],{},"Underboss + Crew Leads",[403,442,443,446,449],{},[421,444,445],{},"Dependent stages",[421,447,448],{},"Sequential Dependencies",[421,450,451],{},"Underboss",[403,453,454,457,460],{},[421,455,456],{},"Mixed dependencies",[421,458,459],{},"Mixed",[421,461,440],{},[463,464,467,470,471,473],"callout",{"icon":465,"type":466},"i-lucide-lightbulb","info",[163,468,469],{},"Tip:"," If you're unsure which pattern to use, invoke ",[153,472,155],{}," during Resource Development. The Underboss will analyze the Contract and recommend the appropriate pattern in the Execution Plan.",{"title":271,"searchDepth":16,"depth":16,"links":475},[476,482,483,484,485,486],{"id":145,"depth":16,"text":146,"children":477},[478,480],{"id":150,"depth":21,"text":479},"Underboss (gangsta:the-underboss)",{"id":207,"depth":21,"text":481},"Crew Lead (gangsta:the-capo)",{"id":254,"depth":16,"text":255},{"id":293,"depth":16,"text":294},{"id":323,"depth":16,"text":324},{"id":353,"depth":16,"text":354},{"id":394,"depth":16,"text":395},"How to use the Underboss and Crew Lead for task decomposition and territory orchestration.","md",null,{},{"order":21},{"title":122,"description":487},"5Je1DAQGjglDVYghckrvGI-nNnS5Ck98btqsvG7eA_0",[495,497],{"title":118,"path":119,"stem":120,"description":496,"order":16,"children":-1},"Create your own Gangsta skills using the SKILL.md format and register them with your AI tool.",{"title":126,"path":127,"stem":128,"description":498,"order":60,"children":-1},"Plain-English definitions of every term used in Gangsta Agents — because clarity beats jargon.",1776673363026]