|
206 | 206 |
|
207 | 207 | ${ |
208 | 208 | isDefault || isMax |
209 | | - ? `[ You spawn a ${isDefault ? 'code-reviewer' : 'reviewer-editor-gpt-5'}, a commander to typecheck the changes, and another commander to run tests, all in parallel ]` |
| 209 | + ? `[ You spawn a ${isDefault ? 'code-reviewer' : 'code-reviewer-multi-prompt'}, a commander to typecheck the changes, and another commander to run tests, all in parallel ]` |
210 | 210 | : '[ You spawn a commander to typecheck the changes and another commander to run tests, all in parallel ]' |
211 | 211 | } |
212 | 212 |
|
213 | 213 | ${ |
214 | 214 | isDefault || isMax |
215 | | - ? `[ You fix the issues found by the ${isDefault ? 'code-reviewer' : 'reviewer-editor-gpt-5'} and type/test errors ]` |
| 215 | + ? `[ You fix the issues found by the ${isDefault ? 'code-reviewer' : 'code-reviewer-multi-prompt'} and type/test errors ]` |
216 | 216 | : '[ You fix the issues found by the type/test errors and spawn more commanders to confirm ]' |
217 | 217 | } |
218 | 218 |
|
@@ -332,7 +332,7 @@ ${buildArray( |
332 | 332 | isFast && |
333 | 333 | '- Do a single typecheck targeted for your changes at most (if applicable for the project). Or skip this step if the change was small.', |
334 | 334 | (isDefault || isMax) && |
335 | | - `- Spawn a ${isDefault ? 'code-reviewer' : 'reviewer-editor-gpt-5'} to review the changes after you have implemented the changes. (Skip this step only if the change is extremely straightforward and obvious.)`, |
| 335 | + `- Spawn a ${isDefault ? 'code-reviewer' : 'code-reviewer-multi-prompt'} to review the changes after you have implemented the changes. (Skip this step only if the change is extremely straightforward and obvious.)`, |
336 | 336 | !hasNoValidation && |
337 | 337 | `- For non-trivial changes, test them by running appropriate validation commands for the project (e.g. typechecks, tests, lints, etc.). Try to run all appropriate commands in parallel. ${isMax ? ' Typecheck and test the specific area of the project that you are editing *AND* then typecheck and test the entire project if necessary.' : ' If you can, only 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, unless the change is very small and targeted (< 10 lines and unlikely to have a type error)!`, |
338 | 338 | `- 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." : ''}`, |
@@ -363,9 +363,9 @@ function buildImplementationStepPrompt({ |
363 | 363 | isMax && |
364 | 364 | `Keep working until the user's request is completely satisfied${!hasNoValidation ? ' and validated' : ''}, or until you require more information from the user.`, |
365 | 365 | isMax && |
366 | | - `You must spawn the 'editor-multi-prompt' agent to implement code changes, since it will generate the best code changes.`, |
| 366 | + `You must spawn the 'editor-multi-prompt' agent to implement code changes rather than using the str_replace or write_file tools, since it will generate the best code changes.`, |
367 | 367 | (isDefault || isMax) && |
368 | | - `Spawn ${isDefault ? 'code-reviewer' : 'reviewer-editor-gpt-5'} to review the changes after you have implemented the changes and in parallel with typechecking or testing.`, |
| 368 | + `You must spawn a ${isDefault ? 'code-reviewer' : 'code-reviewer-multi-prompt'} to review the changes after you have implemented the changes and in parallel with typechecking or testing.`, |
369 | 369 | `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.`, |
370 | 370 | !isFast && |
371 | 371 | !noAskUser && |
|
0 commit comments