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
@@ -277,15 +271,13 @@ function buildImplementationInstructionsPrompt({
277
271
isMax,
278
272
isLite,
279
273
hasNoValidation,
280
-
useEditor,
281
274
}: {
282
275
isSonnet: boolean
283
276
isFast: boolean
284
277
isDefault: boolean
285
278
isMax: boolean
286
279
isLite: boolean
287
280
hasNoValidation: boolean
288
-
useEditor: boolean
289
281
}){
290
282
return`Act as a helpful assistant and freely respond to the user's request however would be most helpful to the user. Use your judgement to orchestrate the completion of the user's request using your specialized sub-agents and tools as needed. Take your time and be comprehensive. Don't surprise the user. For example, don't modify files if the user has not asked you to do so at least implicitly.
291
283
@@ -301,14 +293,12 @@ ${buildArray(
301
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.`,
302
294
isLite&&
303
295
'- 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.',
304
-
useEditor&&
296
+
isDefault&&
305
297
'- 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.',
306
298
isMax&&
307
299
`- 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.`,
308
-
(isDefault||isFast)&&
309
-
'- Implement the changes using the str_replace or write_file tools.',
310
300
isFast&&
311
-
'- Implement the changes in one go. Pause after making all the changes to see the tool results of your edits.',
301
+
'- Implement the changes using the str_replace or write_file tools. Implement all the changes in one go.',
312
302
isFast&&
313
303
'- Do a single typecheck targeted for your changes at most (if applicable for the project). Or skip this step if the change was small.',
314
304
(isDefault||isMax)&&
@@ -320,27 +310,27 @@ ${buildArray(
320
310
}
321
311
322
312
functionbuildImplementationStepPrompt({
313
+
isDefault,
323
314
isFast,
324
315
isMax,
325
316
hasNoValidation,
326
317
isSonnet,
327
-
useEditor,
328
318
}: {
319
+
isDefault: boolean
329
320
isFast: boolean
330
321
isMax: boolean
331
322
hasNoValidation: boolean
332
323
isSonnet: boolean
333
-
useEditor: boolean
334
324
}){
335
325
returnbuildArray(
336
326
isMax&&
337
327
`Keep working until the user's request is completely satisfied${!hasNoValidation ? ' and validated' : ''}, or until you require more information from the user.`,
338
-
useEditor&&
339
-
`You must spawn the 'editor' agent to implement code changes, since it will do the best job of implementing the changes.`,
340
328
isMax&&
341
329
`You must spawn the 'editor-best-of-n-max' agent to implement code changes, since it will generate the best code changes.`,
342
330
isMax&&'Spawn the thinker-best-of-n-opus to solve complex problems.',
343
-
`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 have already concluded and summarized the changes in a previous step -- just end your turn.`,
331
+
(isDefault||isMax)&&
332
+
'Spawn code-reviewer-opus to review the changes after you have implemented the changes and in parallel with typechecking or testing.',
333
+
`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 have already concluded and summarized the changes in a previous step -- just end your turn.`,
Copy file name to clipboardExpand all lines: .agents/editor/editor.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ OR for new files or major rewrites:
59
59
${
60
60
model==='gpt-5'
61
61
? ''
62
-
: `IMPORTANT: Before you start writing your implementation, you should use <think> tags to think about the best way to implement the changes. You should think really really hard to make sure you implement the changes in the best way possible. Take as much time as you to think through all the cases to produce the best changes.
62
+
: `Before you start writing your implementation, you should use <think> tags to think about the best way to implement the changes.
63
63
64
64
You can also use <think> tags interspersed between tool calls to think about the best way to implement the changes.
0 commit comments