[{"data":1,"prerenderedAt":318},["ShallowReactive",2],{"navigation":3,"\u002Fguide\u002Foptimizations":95,"\u002Fguide\u002Foptimizations-surround":313},[4,22,53,61,68],{"title":5,"path":6,"stem":7,"children":8,"icon":11},"Getting Started","\u002Fgetting-started","1.getting-started\u002F1.index",[9,12,17],{"title":10,"path":6,"stem":7,"icon":11},"Overview","i-lucide-info",{"title":13,"path":14,"stem":15,"icon":16},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":18,"path":19,"stem":20,"icon":21},"Usage","\u002Fgetting-started\u002Fusage","1.getting-started\u002F3.usage","i-lucide-play",{"title":23,"path":24,"stem":25,"children":26,"page":52},"Guide","\u002Fguide","2.guide",[27,32,37,42,47],{"title":28,"path":29,"stem":30,"icon":31},"Features","\u002Fguide\u002Ffeatures","2.guide\u002F1.features","i-lucide-sparkles",{"title":33,"path":34,"stem":35,"icon":36},"Core Concepts","\u002Fguide\u002Fcore-concepts","2.guide\u002F2.core-concepts","i-lucide-brain",{"title":38,"path":39,"stem":40,"icon":41},"Workflow","\u002Fguide\u002Fworkflow","2.guide\u002F3.workflow","i-lucide-workflow",{"title":43,"path":44,"stem":45,"icon":46},"Comparison","\u002Fguide\u002Fcomparison","2.guide\u002F4.comparison","i-lucide-scale",{"title":48,"path":49,"stem":50,"icon":51},"Optimizations","\u002Fguide\u002Foptimizations","2.guide\u002F5.optimizations","i-lucide-zap",false,{"title":54,"path":55,"stem":56,"children":57,"icon":60},"Agents","\u002Fagents","3.agents\u002F1.index",[58],{"title":59,"path":55,"stem":56,"icon":60},"Agent Team","i-lucide-bot",{"title":62,"path":63,"stem":64,"children":65,"icon":67},"Configuration","\u002Fconfiguration","4.configuration\u002F1.index",[66],{"title":62,"path":63,"stem":64,"icon":67},"i-lucide-settings",{"title":69,"path":70,"stem":71,"children":72,"icon":74},"Resources","\u002Fresources","5.resources\u002F1.index",[73,75,80,85,90],{"title":69,"path":70,"stem":71,"icon":74},"i-lucide-book-open",{"title":76,"path":77,"stem":78,"icon":79},"Contributing","\u002Fresources\u002Fcontributing","5.resources\u002F2.contributing","i-lucide-git-pull-request",{"title":81,"path":82,"stem":83,"icon":84},"Production Best Practices","\u002Fresources\u002Foperational-notes","5.resources\u002F3.operational-notes","i-lucide-shield",{"title":86,"path":87,"stem":88,"icon":89},"Local Development","\u002Fresources\u002Flocal-development","5.resources\u002F4.local-development","i-lucide-code",{"title":91,"path":92,"stem":93,"icon":94},"Compatible Tools","\u002Fresources\u002Fcompatible-tools","5.resources\u002F5.compatible-tools","i-lucide-blocks",{"id":96,"title":48,"body":97,"description":306,"extension":307,"links":308,"meta":309,"navigation":310,"path":49,"seo":311,"stem":50,"__hash__":312},"docs\u002F2.guide\u002F5.optimizations.md",{"type":98,"value":99,"toc":298},"minimark",[100,104,109,124,129,132,177,181,188,263,267,276,279,283,294],[101,102,103],"p",{},"Cost-consciousness and performance are core design principles. This page covers optimization across agent execution, context management, and build pipeline.",[105,106,108],"h2",{"id":107},"agent-execution-optimization","Agent Execution Optimization",[110,111,112],"blockquote",{},[101,113,114,118,119,123],{},[115,116,117],"strong",{},"Model routing recommendations"," are on the ",[120,121,122],"a",{"href":55},"Agents page →",". Below covers output hygiene and researcher budgets.",[125,126,128],"h3",{"id":127},"output-hygiene","Output Hygiene",[101,130,131],{},"Agents are configured to minimize token waste:",[133,134,135,154,171],"ul",{},[136,137,138,141,142,146,147,146,150,153],"li",{},[115,139,140],{},"Native tool flags",": Agents use ",[143,144,145],"code",{},"--quiet",", ",[143,148,149],{},"--oneline",[143,151,152],{},"maxResults"," to truncate output at source",[136,155,156,159,160,163,164,163,167,170],{},[115,157,158],{},"Pipeline truncation",": ",[143,161,162],{},"head","\u002F",[143,165,166],{},"tail",[143,168,169],{},"grep"," used only when native flags are insufficient",[136,172,173,176],{},[115,174,175],{},"Context pruning",": The context envelope is filtered per-agent: each agent receives only the sections relevant to its task",[125,178,180],{"id":179},"researcher-budget-controls","Researcher Budget Controls",[101,182,183,184,187],{},"The ",[143,185,186],{},"gem-researcher"," agent has configurable budgets to prevent runaway exploration:",[189,190,195],"pre",{"className":191,"code":192,"language":193,"meta":194,"style":194},"language-yaml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","orchestrator:\n  researcher:\n    max_searches: 10 # Max search calls per task\n    max_files_to_read: 25 # Max files read per task\n    max_depth: 3 # Max exploration depth (follow-up searches)\n","yaml","",[143,196,197,210,218,235,249],{"__ignoreMap":194},[198,199,202,206],"span",{"class":200,"line":201},"line",1,[198,203,205],{"class":204},"swJcz","orchestrator",[198,207,209],{"class":208},"sMK4o",":\n",[198,211,213,216],{"class":200,"line":212},2,[198,214,215],{"class":204},"  researcher",[198,217,209],{"class":208},[198,219,221,224,227,231],{"class":200,"line":220},3,[198,222,223],{"class":204},"    max_searches",[198,225,226],{"class":208},":",[198,228,230],{"class":229},"sbssI"," 10",[198,232,234],{"class":233},"sHwdD"," # Max search calls per task\n",[198,236,238,241,243,246],{"class":200,"line":237},4,[198,239,240],{"class":204},"    max_files_to_read",[198,242,226],{"class":208},[198,244,245],{"class":229}," 25",[198,247,248],{"class":233}," # Max files read per task\n",[198,250,252,255,257,260],{"class":200,"line":251},5,[198,253,254],{"class":204},"    max_depth",[198,256,226],{"class":208},[198,258,259],{"class":229}," 3",[198,261,262],{"class":233}," # Max exploration depth (follow-up searches)\n",[105,264,266],{"id":265},"context-cache-optimization","Context & Cache Optimization",[110,268,269],{},[101,270,271,272,275],{},"Context envelope structure and memory tiers are covered in ",[120,273,274],{"href":34},"Core Concepts →",". This section covers eviction and efficiency settings.",[101,277,278],{},"The context envelope is filtered per-agent (each receives only relevant sections). Facts are persisted only at confidence ≥ 0.85, promoted to durable cache at ≥ 0.90 after ≥ 3 uses. Auto-eviction at 90 days of no access.",[105,280,282],{"id":281},"next","Next",[101,284,285,288,289,288,291],{},[120,286,287],{"href":63},"Configuration →"," · ",[120,290,274],{"href":34},[120,292,293],{"href":39},"Workflow →",[295,296,297],"style",{},"html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}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":194,"searchDepth":201,"depth":212,"links":299},[300,304,305],{"id":107,"depth":212,"text":108,"children":301},[302,303],{"id":127,"depth":220,"text":128},{"id":179,"depth":220,"text":180},{"id":265,"depth":212,"text":266},{"id":281,"depth":212,"text":282},"Best practices for optimizing Gem Team's agent execution, output hygiene, and context caching.","md",null,{},{"icon":51},{"title":48,"description":306},"VaAgoeKVV959Mdn6a12eGF5vhGkth2wISqZoFkcalKI",[314,316],{"title":43,"path":44,"stem":45,"description":315,"icon":46,"children":-1},"How Gem Team adds an engineering process on top of your existing AI coding tools.",{"title":59,"path":55,"stem":56,"description":317,"icon":60,"children":-1},"Complete catalog of Gem Team's specialist agents.",1784549432116]