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
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,8 @@ export function createBase2(
71
71
!withGemini&&isMax&&'editor-best-of-n-gpt-5',
72
72
!withGemini&&isDefault&&'thinker-best-of-n',
73
73
!withGemini&&isMax&&'thinker-best-of-n-gpt-5',
74
-
(isDefault||isMax)&&'code-reviewer',
74
+
isDefault&&'code-reviewer',
75
+
isMax&&'code-reviewer-best-of-n-gpt-5',
75
76
'context-pruner',
76
77
),
77
78
@@ -125,6 +126,8 @@ Use the spawn_agents tool to spawn specialized agents to help you complete the u
125
126
'- Spawn the thinker-best-of-n-gpt-5 after gathering context to solve complex problems.',
126
127
`- 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.`,
127
128
'- Spawn commanders sequentially if the second command depends on the the first.',
129
+
!isFast&&
130
+
`- Spawn a ${isDefault ? 'code-reviewer' : 'code-reviewer-best-of-n-gpt-5'} to review the changes after you have implemented the changes.`,
128
131
).join('\n ')}
129
132
- **No need to include context:** When prompting an agent, realize that many agents can already see the entire conversation history, so you can be brief in prompting them without needing to include context.
130
133
@@ -229,15 +232,15 @@ ${buildArray(
229
232
!isFast&&
230
233
`- 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.`,
231
234
!isFast&&
232
-
`- 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.${hasNoValidation ? '' : ' You should include at least one step to validate/test your changes: be specific about whether to typecheck, run tests, run lints, etc.'} Skip write_todos for simple tasks like quick edits or answering questions.`,
235
+
`- 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.'} Skip write_todos for simple tasks like quick edits or answering questions.`,
233
236
isFast&&
234
237
'- Implement the changes in one go. Pause after making all the changes to see the tool results of your edits.',
235
238
isFast&&
236
239
'- Do a single typecheck targeted for your changes at most (if applicable for the project). Or skip this step if the change was small.',
237
240
!isFast&&
238
241
`- 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.`,
239
242
!isFast&&
240
-
'- Spawn a code-reviewerto review the changes after you have implemented the changes. (Skip this step only if the change is extremely straightforward and obvious.)',
243
+
`- Spawn a ${isDefault ? 'code-reviewer' : 'code-reviewer-best-of-n-gpt-5'}to review the changes after you have implemented the changes. (Skip this step only if the change is extremely straightforward and obvious.)`,
241
244
!hasNoValidation&&
242
245
`- 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!`,
243
246
`- 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." : ''}`,
0 commit comments