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
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,8 @@ Use the spawn_agents tool to spawn specialized agents to help you complete the u
112
112
- **Sequence agents properly:** Keep in mind dependencies when spawning different agents. Don't spawn agents in parallel that depend on each other.
113
113
${buildArray(
114
114
'- Spawn context-gathering agents (file pickers, code-searcher, directory-lister, glob-matcher, and web/docs researchers) before making edits.',
115
+
isMax&&
116
+
'- Spawn the thinker-best-of-n-gpt-5 after gathering context to solve complex problems.',
115
117
`- 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.`,
116
118
'- Spawn commanders sequentially if the second command depends on the the first.',
117
119
).join('\n ')}
@@ -247,6 +249,7 @@ function buildImplementationStepPrompt({
247
249
`Keep working until the user's request is completely satisfied${!hasNoValidation ? ' and validated' : ''}, or until you require more information from the user.`,
248
250
!isFast&&
249
251
`You must spawn the ${isMax ? 'editor-best-of-n-gpt-5' : 'editor-best-of-n'} agent to implement code changes, since it will generate the best code changes.`,
252
+
isMax&&'Spawn the thinker-best-of-n-gpt-5 to solve complex problems.',
250
253
`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.`,
@@ -37,19 +41,11 @@ export function createThinkerBestOfN(
37
41
},
38
42
},
39
43
},
40
-
outputMode: 'structured_output',
44
+
outputMode: 'last_message',
41
45
42
46
instructionsPrompt: `You are one agent within the thinker-best-of-n. You were spawned to generate deep thinking about the user's request.
43
-
44
-
Your task is to think deeply, step by step, about the user request and how best to approach it.
45
-
46
-
Consider edge cases, potential issues, and alternative approaches. Also, propose reading files or spawning agents to get more context that would be helpful for solving the problem.
47
-
48
-
Come up with a list of insights that would help someone arrive at the best solution.
49
-
50
-
Try not to be too prescriptive or confident in one solution. Instead, give clear arguments and reasoning.
51
-
52
-
You must be extremely concise and to the point.
47
+
48
+
Answer the user's query to the best of your ability and be extremely concise and to the point.
53
49
54
50
**Important**: Do not use any tools! You are only thinking!`,
0 commit comments