[{"data":1,"prerenderedAt":212},["ShallowReactive",2],{"term-p\u002Fplan-and-execute":3,"related-p\u002Fplan-and-execute":198},{"id":4,"title":5,"acronym":6,"body":7,"category":180,"description":181,"difficulty":182,"extension":183,"letter":16,"meta":184,"navigation":185,"path":186,"related":187,"seo":192,"sitemap":193,"stem":196,"subcategory":6,"__hash__":197},"terms\u002Fterms\u002Fp\u002Fplan-and-execute.md","Plan-and-Execute",null,{"type":8,"value":9,"toc":174},"minimark",[10,15,19,23,26,30,163,167,170],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 - The Vibe Check",[16,17,18],"p",{},"Plan-and-execute is writing the full grocery list before you enter the store instead of wandering the aisles improvising item by item. A planning step lays out every step up front, then a separate execution step just works through the list, only stopping to replan if something on the shelf turns out to be missing. Less wandering, fewer wasted trips down the aisle.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Plan-and-execute is an agent architecture that separates planning from execution: a planning step, often using a stronger or more expensive model, produces an ordered task list, and a cheaper executor model or subagent works through each step in turn, with the plan revised only when execution deviates from what was expected. It reduces token cost and infinite-looping risk compared to agents that re-reason from scratch at every single step.",[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-yaml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","plan:\n  - step: \"Read failing test output\"\n    tool: run_tests\n  - step: \"Locate root cause in payment.service.ts\"\n    tool: read_file\n  - step: \"Apply fix and add regression test\"\n    tool: edit_file\n  - step: \"Re-run full suite\"\n    tool: run_tests\n","yaml","",[38,39,40,53,75,86,102,112,128,138,154],"code",{"__ignoreMap":36},[41,42,45,49],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"swJcz","plan",[41,50,52],{"class":51},"sMK4o",":\n",[41,54,56,59,62,65,68,72],{"class":43,"line":55},2,[41,57,58],{"class":51},"  -",[41,60,61],{"class":47}," step",[41,63,64],{"class":51},":",[41,66,67],{"class":51}," \"",[41,69,71],{"class":70},"sfazB","Read failing test output",[41,73,74],{"class":51},"\"\n",[41,76,78,81,83],{"class":43,"line":77},3,[41,79,80],{"class":47},"    tool",[41,82,64],{"class":51},[41,84,85],{"class":70}," run_tests\n",[41,87,89,91,93,95,97,100],{"class":43,"line":88},4,[41,90,58],{"class":51},[41,92,61],{"class":47},[41,94,64],{"class":51},[41,96,67],{"class":51},[41,98,99],{"class":70},"Locate root cause in payment.service.ts",[41,101,74],{"class":51},[41,103,105,107,109],{"class":43,"line":104},5,[41,106,80],{"class":47},[41,108,64],{"class":51},[41,110,111],{"class":70}," read_file\n",[41,113,115,117,119,121,123,126],{"class":43,"line":114},6,[41,116,58],{"class":51},[41,118,61],{"class":47},[41,120,64],{"class":51},[41,122,67],{"class":51},[41,124,125],{"class":70},"Apply fix and add regression test",[41,127,74],{"class":51},[41,129,131,133,135],{"class":43,"line":130},7,[41,132,80],{"class":47},[41,134,64],{"class":51},[41,136,137],{"class":70}," edit_file\n",[41,139,141,143,145,147,149,152],{"class":43,"line":140},8,[41,142,58],{"class":51},[41,144,61],{"class":47},[41,146,64],{"class":51},[41,148,67],{"class":51},[41,150,151],{"class":70},"Re-run full suite",[41,153,74],{"class":51},[41,155,157,159,161],{"class":43,"line":156},9,[41,158,80],{"class":47},[41,160,64],{"class":51},[41,162,85],{"class":70},[11,164,166],{"id":165},"when-youll-hear-this","When You'll Hear This",[16,168,169],{},"\"Plan-and-execute cut our token spend in half compared to reasoning at every step.\" \u002F \"The planner drafted eight steps up front, then the executor just ran through them.\"",[171,172,173],"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 .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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":55,"depth":55,"links":175},[176,177,178,179],{"id":13,"depth":55,"text":14},{"id":21,"depth":55,"text":22},{"id":28,"depth":55,"text":29},{"id":165,"depth":55,"text":166},"ai","Plan-and-execute is writing the full grocery list before you enter the store instead of wandering the aisles improvising item by item.","intermediate","md",{},true,"\u002Fterms\u002Fp\u002Fplan-and-execute",[188,189,190,191],"Agent Loop","Orchestrator-Worker Pattern","ReAct Pattern","Multi-Agent",{"title":5,"description":181},{"changefreq":194,"priority":195},"weekly",0.7,"terms\u002Fp\u002Fplan-and-execute","fblcCLpDiNa-s15-UtPk5tEZ2vhbJdCLUbbslYdAAyo",[199,202,205,208],{"title":188,"path":200,"acronym":6,"category":180,"difficulty":182,"description":201},"\u002Fterms\u002Fa\u002Fagent-loop","The agent loop is the heartbeat of any AI coding agent: think, act, look, repeat.",{"title":191,"path":203,"acronym":6,"category":180,"difficulty":182,"description":204},"\u002Fterms\u002Fm\u002Fmulti-agent","Multi-agent means multiple AI agents working together, each handling a different task.",{"title":189,"path":206,"acronym":6,"category":180,"difficulty":182,"description":207},"\u002Fterms\u002Fo\u002Forchestrator-worker-pattern","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...",{"title":190,"path":209,"acronym":6,"category":180,"difficulty":210,"description":211},"\u002Fterms\u002Fr\u002Freact-pattern","advanced","ReAct is thinking out loud while doing chores. 'I think the milk is in the fridge, let me check, yep it's here, now I'll grab it.",1792528108735]