Skip to content

Commit 98c2f15

Browse files
committed
Add note to spawn the best of n editor
1 parent 9a31546 commit 98c2f15

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.agents/base2/base2.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ ${PLACEHOLDER.GIT_CHANGES_PROMPT}
190190
stepPrompt: planOnly
191191
? buildPlanOnlyStepPrompt({})
192192
: buildImplementationStepPrompt({
193+
isFast,
193194
isMax,
194195
isGpt5,
195196
hasNoValidation,
@@ -262,11 +263,13 @@ ${buildArray(
262263
}
263264

264265
function buildImplementationStepPrompt({
266+
isFast,
265267
isMax,
266268
isGpt5,
267269
hasNoValidation,
268270
isSonnet,
269271
}: {
272+
isFast: boolean
270273
isMax: boolean
271274
isGpt5: boolean
272275
hasNoValidation: boolean
@@ -275,6 +278,8 @@ function buildImplementationStepPrompt({
275278
return buildArray(
276279
isMax &&
277280
`Keep working until the user's request is completely satisfied${!hasNoValidation ? ' and validated' : ''}, or until you require more information from the user.`,
281+
!isFast &&
282+
`You must spawn the ${isGpt5 ? 'editor-best-of-n-gpt-5' : 'editor-best-of-n'} agent to implement code changes, since it will generate the best code changes.`,
278283
`After completing the user request, summarize your changes in a sentence 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.`,
279284
isGpt5 &&
280285
`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

Comments
 (0)