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
Copy file name to clipboardExpand all lines: .agents/base2/base2.ts
+12-9Lines changed: 12 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ export function createBase2(
67
67
isDefault&&'thinker',
68
68
isLite&&'editor-gpt-5',
69
69
isDefault&&'editor',
70
-
isMax&&'editor-best-of-n-max',
70
+
isMax&&'editor-best-of-n-opus',
71
71
isMax&&'thinker-best-of-n-opus',
72
72
!isLite&&'code-reviewer-opus',
73
73
'context-pruner',
@@ -123,10 +123,10 @@ Use the spawn_agents tool to spawn specialized agents to help you complete the u
123
123
'- Spawn the editor-gpt-5 agent to implement the changes after you have gathered all the context you need.',
124
124
isDefault&&
125
125
'- Spawn the editor agent to implement the changes after you have gathered all the context you need.',
126
+
(isDefault||isMax)&&
127
+
`- Spawn the ${isDefault ? 'thinker' : 'thinker-best-of-n-opus'} after gathering context to solve complex problems or when the user asks you to think about a problem.`,
126
128
isMax&&
127
-
'- Spawn the thinker-best-of-n-opus after gathering context to solve complex problems.',
128
-
isMax&&
129
-
`- Spawn the editor-best-of-n-max agent to implement the changes after you have gathered all the context you need. You must spawn this agent for non-trivial changes, since it writes much better code than you would with the str_replace or write_file tools. Don't spawn the editor in parallel with context-gathering agents.`,
129
+
`- Spawn the editor-best-of-n-opus agent to implement the changes after you have gathered all the context you need. You must spawn this agent for non-trivial changes, since it writes much better code than you would with the str_replace or write_file tools. Don't spawn the editor in parallel with context-gathering agents.`,
130
130
'- Spawn commanders sequentially if the second command depends on the the first.',
131
131
!isFast&&
132
132
!isLite&&
@@ -172,16 +172,15 @@ ${buildArray(
172
172
173
173
[ You spawn one more code-searcher and file-picker ]
174
174
175
-
[ You read a few other relevant files using the read_files tool ]
176
-
175
+
[ You read a few other relevant files using the read_files tool ]${isMax ? `\n\n[ You spawn the thinker-best-of-n-opus to help solve a tricky part of the feature ]` : ``}
177
176
${
178
177
isDefault
179
178
? `[ You implement the changes using the editor agent ]`
180
179
: isFast
181
180
? '[ You implement the changes using the str_replace or write_file tools ]'
182
181
: isLite
183
182
? '[ You implement the changes using the editor-gpt-5 agent ]'
184
-
: '[ You implement the changes using the editor-best-of-n-max agent ]'
183
+
: '[ You implement the changes using the editor-best-of-n-opus agent ]'
185
184
}
186
185
187
186
${
@@ -292,12 +291,16 @@ ${buildArray(
292
291
`- Important: Read as many files as could possibly be relevant to the task over several steps to improve your understanding of the user's request and produce the best possible code changes. Find more examples within the codebase similar to the user's request, dependencies that help with understanding how things work, tests, etc. This is frequently 12-20 files, depending on the task.`,
293
292
(isDefault||isMax)&&
294
293
`- For any task requiring 3+ steps, use the write_todos tool to write out your step-by-step implementation plan. Include ALL of the applicable tasks in the list.${isFast ? '' : ' You should include a step to review the changes after you have implemented the changes.'}:${hasNoValidation ? '' : ' You should include at least one step to validate/test your changes: be specific about whether to typecheck, run tests, run lints, etc.'} You may be able to do reviewing and validation in parallel in the same step. Skip write_todos for simple tasks like quick edits or answering questions.`,
294
+
isDefault&&
295
+
`- For complex problems, spawn the thinker agent to help find the best solution, or when the user asks you to think about a problem.`,
296
+
isMax&&
297
+
`- Important: Spawn the thinker-best-of-n-opus to help find the best solution before implementing changes, or especially when the user asks you to think about a problem.`,
295
298
isLite&&
296
299
'- IMPORTANT: You must spawn the editor-gpt-5 agent to implement the changes after you have gathered all the context you need. This agent will do the best job of implementing the changes so you must spawn it for all changes. Do not pass any prompt or params to the editor agent when spawning it. It will make its own best choices of what to do.',
297
300
isDefault&&
298
301
'- IMPORTANT: You must spawn the editor agent to implement the changes after you have gathered all the context you need. This agent will do the best job of implementing the changes so you must spawn it for all non-trivial changes. Do not pass any prompt or params to the editor agent when spawning it. It will make its own best choices of what to do.',
299
302
isMax&&
300
-
`- IMPORTANT: You must spawn the editor-best-of-n-max agent to implement non-trivial code changes, since it will generate the best code changes from multiple implementation proposals. This is the best way to make high quality code changes -- strongly prefer using this agent over the str_replace or write_file tools, unless the change is very straightforward and obvious. Do not pass any prompt or params to the editor agent when spawning it. It will make its own best choices of what to do.`,
303
+
`- IMPORTANT: You must spawn the editor-best-of-n-opus agent to implement non-trivial code changes, since it will generate the best code changes from multiple implementation proposals. This is the best way to make high quality code changes -- strongly prefer using this agent over the str_replace or write_file tools, unless the change is very straightforward and obvious. Do not pass any prompt or params to the editor agent when spawning it. It will make its own best choices of what to do.`,
301
304
isFast&&
302
305
'- Implement the changes using the str_replace or write_file tools. Implement all the changes in one go.',
303
306
isFast&&
@@ -327,7 +330,7 @@ function buildImplementationStepPrompt({
327
330
isMax&&
328
331
`Keep working until the user's request is completely satisfied${!hasNoValidation ? ' and validated' : ''}, or until you require more information from the user.`,
329
332
isMax&&
330
-
`You must spawn the 'editor-best-of-n-max' agent to implement code changes, since it will generate the best code changes.`,
333
+
`You must spawn the 'editor-best-of-n-opus' agent to implement code changes, since it will generate the best code changes.`,
331
334
isMax&&'Spawn the thinker-best-of-n-opus to solve complex problems.',
332
335
(isDefault||isMax)&&
333
336
'Spawn code-reviewer-opus to review the changes after you have implemented the changes and in parallel with typechecking or testing.',
Copy file name to clipboardExpand all lines: .agents/editor/best-of-n/editor-best-of-n.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ export function createBestOfNEditor(
52
52
properties: {
53
53
n: {
54
54
type: 'number',
55
-
description: `Number of parallel implementor agents to spawn. Defaults to ${isMax ? 4 : 3}. Use fewer for simple tasks and max of 10 for complex tasks.`,
55
+
description: `Number of parallel implementor agents to spawn. Defaults to ${isMax ? 3 : 3}. Use fewer for simple tasks and max of 6 for complex tasks.`,
Copy file name to clipboardExpand all lines: .agents/thinker/best-of-n/thinker-best-of-n.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -37,15 +37,15 @@ export function createThinkerBestOfN(
37
37
inputSchema: {
38
38
prompt: {
39
39
type: 'string',
40
-
description: 'The problem you are trying to solve',
40
+
description: 'The problem you are trying to solve, very briefly. No need to provide context, as the thinker agent can see the entire conversation history.',
41
41
},
42
42
params: {
43
43
type: 'object',
44
44
properties: {
45
45
n: {
46
46
type: 'number',
47
47
description:
48
-
'Number of parallel thinker agents to spawn. Defaults to 5. Use fewer for simple questions and max of 10 for complex questions.',
48
+
'Number of parallel thinker agents to spawn. Defaults to 3. Use fewer for simple questions and max of 6 for complex questions.',
0 commit comments