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
@@ -136,7 +128,7 @@ Use the spawn_agents tool to spawn specialized agents to help you complete the u
136
128
${buildArray(
137
129
'- Spawn context-gathering agents (file pickers, code-searcher, directory-lister, glob-matcher, and web/docs researchers) before making edits.',
138
130
!withImplementorGpt5&&
139
-
`- Spawn a ${isGpt5 ? 'editor-best-of-n-gpt-5' : 'editor-best-of-n'} 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.`,
131
+
`- Spawn a ${isMax ? 'editor-best-of-n-gpt-5' : 'editor-best-of-n'} 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.`,
140
132
withImplementorGpt5&&
141
133
`- Spawn a editor-implementor-gpt-5 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.`,
142
134
'- Spawn commanders sequentially if the second command depends on the the first.',
@@ -244,7 +233,6 @@ function buildImplementationInstructionsPrompt({
244
233
withDecisionMaker,
245
234
}: {
246
235
isSonnet: boolean
247
-
isGpt5: boolean
248
236
isFast: boolean
249
237
isDefault: boolean
250
238
isMax: boolean
@@ -274,7 +262,7 @@ ${buildArray(
274
262
'- Do a single typecheck targeted for your changes at most (if applicable for the project). Or skip this step if the change was small.',
275
263
!isFast&&
276
264
!withImplementorGpt5&&
277
-
`- IMPORTANT: You must spawn the ${isGpt5 ? 'editor-best-of-n-gpt-5' : 'editor-best-of-n'} 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.`,
265
+
`- IMPORTANT: You must spawn the ${isMax ? 'editor-best-of-n-gpt-5' : 'editor-best-of-n'} 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.`,
278
266
withImplementorGpt5&&
279
267
`- IMPORTANT: You must spawn the editor-implementor-gpt-5 agent to implement non-trivial code changes, since it will generate the best code changes using a smarter reasoning model. 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.`,
280
268
hasCodeReviewer&&
@@ -284,21 +272,18 @@ ${buildArray(
284
272
!hasNoValidation&&
285
273
`- Test your changes${isMax ? '' : ' briefly'} by running appropriate validation commands for the project (e.g. typechecks, tests, lints, etc.).${isMax ? ' Start by type checking the specific area of the project that you are editing and then test the entire project if necessary.' : ' If you can, only typecheck/test the area of the project that you are editing, rather than the entire project.'} You may have to explore the project to find the appropriate commands. Don't skip this step!`,
286
274
`- Inform the user that you have completed the task in one sentence or a few short bullet points.${isSonnet ? " Don't create any markdown summary files or example documentation files, unless asked by the user." : ''}`,
287
-
isGpt5&&`- Use the task_completed tool.`,
288
275
).join('\n')}`
289
276
}
290
277
291
278
functionbuildImplementationStepPrompt({
292
279
isFast,
293
280
isMax,
294
-
isGpt5,
295
281
hasNoValidation,
296
282
isSonnet,
297
283
withImplementorGpt5,
298
284
}: {
299
285
isFast: boolean
300
286
isMax: boolean
301
-
isGpt5: boolean
302
287
hasNoValidation: boolean
303
288
isSonnet: boolean
304
289
withImplementorGpt5: boolean
@@ -307,10 +292,8 @@ function buildImplementationStepPrompt({
307
292
isMax&&
308
293
`Keep working until the user's request is completely satisfied${!hasNoValidation ? ' and validated' : ''}, or until you require more information from the user.`,
309
294
!isFast&&
310
-
`You must spawn the ${withImplementorGpt5 ? 'editor-implementor-gpt-5' : isGpt5 ? 'editor-best-of-n-gpt-5' : 'editor-best-of-n'} agent to implement code changes, since it will generate the best code changes.`,
295
+
`You must spawn the ${withImplementorGpt5 ? 'editor-implementor-gpt-5' : isMax ? 'editor-best-of-n-gpt-5' : 'editor-best-of-n'} agent to implement code changes, since it will generate the best code changes.`,
311
296
`After completing the user request, summarize your changes in a sentence${isFast ? '' : ' or a few short bullet points'}.${isSonnet ? " Don't create any summary markdown files or example documentation files, unless asked by the user." : ''}. Don't repeat yourself -- especially if you already summarized your changes then just end your turn.`,
312
-
isGpt5&&
313
-
`IMPORTANT: You must include at least one tool call ("<codebuff_tool_call>") per message response. If you are completely done with the user's request or require more information from the user, you must call the task_completed tool to end your turn.`,
0 commit comments