[{"data":1,"prerenderedAt":192},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fv2\u002Fagent\u002Fsrc":3},{"id":4,"title":5,"body":6,"description":183,"extension":184,"meta":185,"navigation":187,"path":188,"seo":189,"stem":190,"__hash__":191},"docs\u002Fdocs\u002Fv2\u002Fagent\u002Fsrc\u002Findex.md","src\u002F",{"type":7,"value":8,"toc":180},"minimark",[9,13,20,101,107,112,121,141,157,165,176],[10,11,5],"h1",{"id":12},"src",[14,15,16,19],"p",{},[17,18,5],"code",{}," is the agent's brain. It contains the standing boot prompt that defines who the\nagent is, tools the agent can call, prompts it can load as context, and scripts that\norchestrate work.",[21,22,27],"pre",{"className":23,"code":24,"language":25,"meta":26,"style":26},"language-bash shiki shiki-themes dark-plus","src\u002F\n├── prompts\u002F          # reusable context templates\n│   └── components\u002F   # shared Vue fragments, auto-imported\n├── scripts\u002F          # TypeScript automations\n├── tools\u002F            # async functions → agent-callable tools\n└── boot.vue          # standing system prompt\n","bash","",[17,28,29,38,52,67,78,89],{"__ignoreMap":26},[30,31,34],"span",{"class":32,"line":33},"line",1,[30,35,37],{"class":36},"sCudf","src\u002F\n",[30,39,41,44,48],{"class":32,"line":40},2,[30,42,43],{"class":36},"├──",[30,45,47],{"class":46},"sKc5r"," prompts\u002F",[30,49,51],{"class":50},"sOLPB","          # reusable context templates\n",[30,53,55,58,61,64],{"class":32,"line":54},3,[30,56,57],{"class":36},"│",[30,59,60],{"class":46},"   └──",[30,62,63],{"class":46}," components\u002F",[30,65,66],{"class":50},"   # shared Vue fragments, auto-imported\n",[30,68,70,72,75],{"class":32,"line":69},4,[30,71,43],{"class":36},[30,73,74],{"class":46}," scripts\u002F",[30,76,77],{"class":50},"          # TypeScript automations\n",[30,79,81,83,86],{"class":32,"line":80},5,[30,82,43],{"class":36},[30,84,85],{"class":46}," tools\u002F",[30,87,88],{"class":50},"            # async functions → agent-callable tools\n",[30,90,92,95,98],{"class":32,"line":91},6,[30,93,94],{"class":36},"└──",[30,96,97],{"class":46}," boot.vue",[30,99,100],{"class":50},"          # standing system prompt\n",[14,102,103,104,106],{},"Everything in ",[17,105,5],{}," is discovered by filename — no registration, no config.",[108,109,111],"h2",{"id":110},"the-parts","The parts",[14,113,114,120],{},[115,116,117],"strong",{},[17,118,119],{},"boot.vue"," defines the agent's identity, working practices, and standing orientation.\nKeep it stable — request-specific context belongs in prompts, not here. In local\ndevelopment it hot-reloads for future work without rewriting existing thread history.",[14,122,123,128,129,132,133,136,137,140],{},[115,124,125],{},[17,126,127],{},"tools\u002F"," — every exported async function in a ",[17,130,131],{},".ts"," file becomes a tool the agent\ncan call. The filename is the namespace: ",[17,134,135],{},"tools\u002Fgithub.ts"," → ",[17,138,139],{},"github.*",". JSDoc becomes\nthe agent's description of the function.",[14,142,143,148,149,152,153,156],{},[115,144,145],{},[17,146,147],{},"prompts\u002F"," — named context templates loaded at invocation time. Static (",[17,150,151],{},".md",") for\nstable instructions, dynamic (",[17,154,155],{},".vue",") for instructions that incorporate live data fetched\nat render time.",[14,158,159,164],{},[115,160,161],{},[17,162,163],{},"scripts\u002F"," — the primary authoring unit. TypeScript files that load prompts, call\nthe agent, process results, and do follow-on work. Run from the CLI, the TUI palette,\nHTTP routes, or programmatically.",[14,166,167,172,173,175],{},[115,168,169],{},[17,170,171],{},"prompts\u002Fcomponents\u002F"," — reusable Vue fragments auto-imported globally into ",[17,174,119],{},"\nand all dynamic prompts. No import statements needed.",[177,178,179],"style",{},"html pre.shiki code .sCudf, html code.shiki .sCudf{--shiki-default:#DCDCAA}html pre.shiki code .sKc5r, html code.shiki .sKc5r{--shiki-default:#CE9178}html pre.shiki code .sOLPB, html code.shiki .sOLPB{--shiki-default:#6A9955}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);}",{"title":26,"searchDepth":40,"depth":40,"links":181},[182],{"id":110,"depth":40,"text":111},"src\u002F is the agent's brain. It contains the standing boot prompt that defines who the\nagent is, tools the agent can call, prompts it can load as context, and scripts that\norchestrate work.","md",{"icon":186},"vscode-icons:folder-type-src",true,"\u002Fdocs\u002Fv2\u002Fagent\u002Fsrc",{"title":5,"description":183},"docs\u002Fv2\u002Fagent\u002Fsrc\u002Findex","4-zMIhkH1ddEeMrMata2szNHQnL_8X0ix2IaHJF6uw8",1785671806404]