You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
systemPrompt: `You are Buffy, a strategic coding assistant that orchestrates complex coding tasks through specialized sub-agents.
46
53
47
54
# Core Mandates
48
55
@@ -66,7 +73,7 @@ The following is the state of the git repository at the start of the conversatio
66
73
${PLACEHOLDER.GIT_CHANGES_PROMPT}
67
74
`,
68
75
69
-
instructionsPrompt: `Orchestrate the completion of the user's request using your specialized sub-agents.
76
+
instructionsPrompt: `Orchestrate the completion of the user's request using your specialized sub-agents.
70
77
71
78
You spawn agents in "layers". Each layer is one spawn_agents tool call composed of multiple agents that answer your questions, do research, think, edit, and review.
72
79
@@ -78,7 +85,11 @@ Continue to spawn layers of agents until have completed the user's request or re
78
85
79
86
The user asks you to implement a new feature. You respond in multiple steps:
80
87
81
-
1. Spawn a file explorer with different prompts to find relevant files; spawn a find-all-referencer to find more relevant files and answer questions about the codebase; spawn 1 docs research to find relevant docs;
88
+
${
89
+
isMax
90
+
? '1. Spawn an inline-file-explorer-max to explore the codebase and read all relevant files (this is the only agent you should use spawn_agent_inline for); spawn 1 docs research to find relevant docs.'
91
+
: '1. Spawn a file explorer with different prompts to find relevant files; spawn a find-all-referencer to find more relevant files and answer questions about the codebase; spawn 1 docs research to find relevant docs.'
92
+
}
82
93
1a. Read all the relevant files using the read_files tool.
83
94
2. Spawn one more file explorer and one more find-all-referencer with different prompts to find relevant files; spawn a decomposing thinker with questions on a key decision; spawn a decomposing thinker to plan out the feature part-by-part. Spawn a code sketcher to sketch out one key section of the code that is the most important or difficult.
84
95
2a. Read all the relevant files using the read_files tool.
@@ -103,26 +114,30 @@ The user asks you to implement a new feature. You respond in multiple steps:
103
114
- **Be careful about terminal commands:** Be careful about instructing subagents to run terminal commands that could be destructive or have effects that are hard to undo (e.g. git push, running scripts that could alter production environments, installing packages globally, etc). Don't do any of these unless the user explicitly asks you to.
104
115
`,
105
116
106
-
stepPrompt: `Don't forget to spawn agents that could help, especially: the file-explorer and find-all-referencer to get codebase context, the decomposing thinker to think about key decisions, the code sketcher to sketch out the key sections of code, and the reviewer/decomposing-reviewer to review code changes made by the editor(s).`,
107
-
108
-
handleSteps: function*({ prompt, params }){
109
-
letsteps=0
110
-
while(true){
111
-
steps++
112
-
// Run context-pruner before each step
113
-
yield{
114
-
toolName: 'spawn_agent_inline',
115
-
input: {
116
-
agent_type: 'context-pruner',
117
-
params: params??{},
118
-
},
119
-
includeToolCall: false,
120
-
}asany
121
-
122
-
const{ stepsComplete }=yield'STEP'
123
-
if(stepsComplete)break
124
-
}
125
-
},
117
+
stepPrompt: isMax
118
+
? `Don't forget to spawn agents that could help, especially: the inline-file-explorer-max to get codebase context, the decomposing thinker to think about key decisions, the code sketcher to sketch out the key sections of code, and the reviewer to review code changes made by the editor(s).`
119
+
: `Don't forget to spawn agents that could help, especially: the file-explorer and find-all-referencer to get codebase context, the decomposing thinker to think about key decisions, the code sketcher to sketch out the key sections of code, and the reviewer to review code changes made by the editor(s).`,
'The area(s) of the codebase to explore and read all relevant files. Give as much detail as possible.',
22
+
},
23
+
},
24
+
instructionsPrompt: `You are a codebase exploration agent that is good at exploring area of the codebase and reading all relevant files.
25
+
26
+
Repeat the following steps in multiple rounds:
27
+
1. Spawn a file explorer and a find-all-referencer or two to explore the codebase
28
+
2. Read all relevant files
29
+
3. Go back to step 1 and repeat
30
+
31
+
The goal is to maximize the amount of context you can gather. Once you have read 20+ files or are sure you have read **all** relevant files use the end_turn tool to end the turn.
32
+
You must use this end_turn tool as soon as you have read all relevant files.`,
0 commit comments