[{"data":1,"prerenderedAt":493},["ShallowReactive",2],{"navigation_docs":3,"-advanced-multi-agent-patterns":125,"-advanced-multi-agent-patterns-surround":490},[4,28,62,94,100],{"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?",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 Borgata 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},"The Hit","/heist-pipeline/the-hit","3.heist-pipeline/5.the-hit",{"title":91,"path":92,"stem":93,"order":47},"Laundering","/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",{"id":126,"title":122,"body":127,"description":483,"extension":484,"links":485,"meta":486,"navigation":487,"path":123,"seo":488,"stem":124,"__hash__":489},"docs/5.advanced/multi-agent-patterns.md",{"type":128,"value":129,"toc":470},"minimark",[130,134,138,143,153,156,162,175,180,201,208,211,215,226,231,248,252,258,268,273,287,291,296,302,306,317,321,326,332,336,347,351,354,360,385,388,392,458],[131,132,122],"h1",{"id":133},"multi-agent-patterns",[135,136,137],"p",{},"When a Heist involves multiple files, multiple domains, or multiple concerns, the Gangsta hierarchy provides structured patterns for multi-agent coordination.",[139,140,142],"h2",{"id":141},"the-two-orchestration-skills","The Two Orchestration Skills",[144,145,147,148,152],"h3",{"id":146},"underboss-gangstathe-underboss","Underboss (",[149,150,151],"code",{},"gangsta:the-underboss",")",[135,154,155],{},"The COO. Handles task decomposition and resource allocation.",[135,157,158],{},[159,160,161],"strong",{},"When to invoke:",[163,164,165,169,172],"ul",{},[166,167,168],"li",{},"Complex features that span multiple files or domains",[166,170,171],{},"Tasks that have clear dependency chains",[166,173,174],{},"When you need a War Plan broken into parallel work packages",[135,176,177],{},[159,178,179],{},"What the Underboss does:",[181,182,183,186,189,192,195,198],"ol",{},[166,184,185],{},"Analyzes the Contract",[166,187,188],{},"Decomposes work into discrete packages",[166,190,191],{},"Maps dependencies between packages",[166,193,194],{},"Assigns territories (domains) to Capos",[166,196,197],{},"Estimates tributes (resource budgets) per package",[166,199,200],{},"Produces the War Plan",[144,202,204,205,152],{"id":203},"capo-gangstathe-capo","Capo (",[149,206,207],{},"gangsta:the-capo",[135,209,210],{},"The crew lead. Orchestrates work within a territory.",[135,212,213],{},[159,214,161],{},[163,216,217,220,223],{},[166,218,219],{},"When a territory has multiple related tasks",[166,221,222],{},"When a domain needs coordinated changes across multiple files",[166,224,225],{},"When sub-tasks within a territory need sequencing",[135,227,228],{},[159,229,230],{},"What the Capo does:",[181,232,233,236,239,242,245],{},[166,234,235],{},"Receives territory assignment from the Underboss",[166,237,238],{},"Sequences tasks within the territory",[166,240,241],{},"Dispatches Soldiers for individual tasks",[166,243,244],{},"Enforces quality standards within the territory",[166,246,247],{},"Reports completion status",[139,249,251],{"id":250},"pattern-1-parallel-territories","Pattern 1: Parallel Territories",[135,253,254,257],{},[159,255,256],{},"Best for:"," Features that touch independent domains (e.g., frontend + backend)",[259,260,265],"pre",{"className":261,"code":263,"language":264},[262],"language-text","Underboss\n├── Territory A (Frontend) → Capo A → Soldier 1, Soldier 2\n├── Territory B (Backend) → Capo B → Soldier 3\n└── Territory C (Database) → Capo C → Soldier 4\n","text",[149,266,263],{"__ignoreMap":267},"",[135,269,270],{},[159,271,272],{},"Workflow:",[181,274,275,278,281,284],{},[166,276,277],{},"Underboss decomposes the Contract into 3 territories",[166,279,280],{},"Each Capo sequences their territory's tasks",[166,282,283],{},"Soldiers execute in parallel across territories",[166,285,286],{},"No cross-territory dependencies — maximum parallelism",[139,288,290],{"id":289},"pattern-2-sequential-dependencies","Pattern 2: Sequential Dependencies",[135,292,293,295],{},[159,294,256],{}," Features with hard dependencies (e.g., database schema must exist before API endpoints)",[259,297,300],{"className":298,"code":299,"language":264},[262],"Underboss\n├── Phase 1: Territory A (Schema) → Capo A → Soldier 1\n│   (gate: schema complete)\n├── Phase 2: Territory B (API) → Capo B → Soldier 2\n│   (gate: API complete)\n└── Phase 3: Territory C (Frontend) → Capo C → Soldier 3\n",[149,301,299],{"__ignoreMap":267},[135,303,304],{},[159,305,272],{},[181,307,308,311,314],{},[166,309,310],{},"Underboss identifies dependency chain",[166,312,313],{},"Capos execute sequentially, each waiting for the previous to complete",[166,315,316],{},"Each phase has a gate — next phase doesn't start until current one is verified",[139,318,320],{"id":319},"pattern-3-mixed-parallel-sequential","Pattern 3: Mixed Parallel-Sequential",[135,322,323,325],{},[159,324,256],{}," Most real-world features (some things can run in parallel, others can't)",[259,327,330],{"className":328,"code":329,"language":264},[262],"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",[149,331,329],{"__ignoreMap":267},[135,333,334],{},[159,335,272],{},[181,337,338,341,344],{},[166,339,340],{},"Within each phase, territories run in parallel",[166,342,343],{},"Phases run sequentially (phase 2 waits for phase 1)",[166,345,346],{},"The War Plan documents the dependency graph",[139,348,350],{"id":349},"communication-protocol","Communication Protocol",[135,352,353],{},"All inter-agent communication follows Omerta Law #1 (The Introduction Rule):",[135,355,356,359],{},[159,357,358],{},"Agents never talk to each other directly."," All communication flows through files:",[163,361,362,368,374,380],{},[166,363,364,367],{},[159,365,366],{},"Contracts"," → define what to build",[166,369,370,373],{},[159,371,372],{},"War Plans"," → define how to build it",[166,375,376,379],{},[159,377,378],{},"Checkpoints"," → track progress",[166,381,382,384],{},[159,383,57],{}," → preserve knowledge",[135,386,387],{},"This prevents the \"telephone game\" problem where messages distort through chains of agents.",[139,389,391],{"id":390},"choosing-the-right-pattern","Choosing the Right Pattern",[393,394,395,411],"table",{},[396,397,398],"thead",{},[399,400,401,405,408],"tr",{},[402,403,404],"th",{},"Situation",[402,406,407],{},"Pattern",[402,409,410],{},"Orchestration",[412,413,414,426,437,448],"tbody",{},[399,415,416,420,423],{},[417,418,419],"td",{},"Single file, single concern",[417,421,422],{},"Sequential",[417,424,425],{},"Capo only",[399,427,428,431,434],{},[417,429,430],{},"Multiple independent concerns",[417,432,433],{},"Parallel Territories",[417,435,436],{},"Underboss + Capos",[399,438,439,442,445],{},[417,440,441],{},"Dependent stages",[417,443,444],{},"Sequential Dependencies",[417,446,447],{},"Underboss",[399,449,450,453,456],{},[417,451,452],{},"Mixed dependencies",[417,454,455],{},"Mixed",[417,457,436],{},[459,460,463,466,467,469],"callout",{"icon":461,"type":462},"i-lucide-lightbulb","info",[159,464,465],{},"Tip:"," If you're unsure which pattern to use, invoke ",[149,468,151],{}," during Resource Development. The Underboss will analyze the Contract and recommend the appropriate pattern in the War Plan.",{"title":267,"searchDepth":16,"depth":16,"links":471},[472,478,479,480,481,482],{"id":141,"depth":16,"text":142,"children":473},[474,476],{"id":146,"depth":21,"text":475},"Underboss (gangsta:the-underboss)",{"id":203,"depth":21,"text":477},"Capo (gangsta:the-capo)",{"id":250,"depth":16,"text":251},{"id":289,"depth":16,"text":290},{"id":319,"depth":16,"text":320},{"id":349,"depth":16,"text":350},{"id":390,"depth":16,"text":391},"How to use the Underboss and Capo for task decomposition and territory orchestration.","md",null,{},{"order":21},{"title":122,"description":483},"a_fw_yFRUETktIQD7JY8613h1vYSFXCxzCHxpjk2eBY",[491,485],{"title":118,"path":119,"stem":120,"description":492,"order":16,"children":-1},"Create your own Gangsta skills using the SKILL.md format and register them with your AI tool.",1776282626914]