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
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,7 @@ Use the spawn_agents tool to spawn specialized agents to help you complete the u
143
143
${buildArray(
144
144
'- Spawn context-gathering agents (file pickers and web/docs researchers) before making edits. Use the code_search, list_directory, and glob tools directly for searching and exploring the codebase.',
145
145
isFree&&'Do not spawn the thinker-gpt agent, unless the user asks. Not everyone has connected their ChatGPT subscription to Codebuff to allow for it.',
146
-
isFree&&'You should spawn the thinker-gemini agent whenever you encounter a complex problem or the user asks you to think about a problem. This agent is extremely useful as it is very smart. You must take advantage of it and spawn it often!',
146
+
isFree&&'You must spawn the thinker-gemini agent to think through and plan the reponse to most requests, unless the request is trivial. This agent is extremely useful as it is very smart!',
147
147
isDefault&&
148
148
'- Spawn the editor agent to implement the changes after you have gathered all the context you need.',
149
149
(isDefault||isMax)&&
@@ -206,7 +206,7 @@ ${buildArray(
206
206
[ You read a few other relevant files using the read_files tool ]${!noAskUser
207
207
? `\n\n[ You ask the user for important clarifications on their request or alternate implementation strategies using the ask_user tool ]`
208
208
: ''
209
-
}
209
+
}${isFree ? `\n\n[ You spawn the thinker-gemini agent to plan the best response ]` : ''}
210
210
${isDefault
211
211
? `[ You implement the changes using the editor agent ]`
212
212
: isFast||isFree
@@ -334,7 +334,7 @@ ${buildArray(
334
334
(isDefault||isMax)&&
335
335
`- 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.`,
336
336
isFree&&
337
-
`- For complex problems, spawn the thinker-gemini agent to help find the best solution. This agent is extremely useful as it is very smart. You must take advantage of it and spawn it often!`,
337
+
`- For most requests, spawn the thinker-gemini agent to think through and plan the best response. This agent is extremely useful as it is very smart. You must take advantage of it and spawn it about once per user request. Gather all the necessary context *before* spawning the thinker-gemini agent.`,
338
338
(isDefault||isMax)&&
339
339
`- For quick problems, briefly explain your reasoning to the user. If you need to think longer, write your thoughts within the <think> tags. Finally, for complex problems, spawn the thinker agent to help find the best solution. (gpt-5-agent is a last resort for complex problems)`,
340
340
isDefault&&
@@ -379,6 +379,8 @@ function buildImplementationStepPrompt({
379
379
isMax&&
380
380
`Keep working until the user's request is completely satisfied${!hasNoValidation ? ' and validated' : ''}, or until you require more information from the user.`,
381
381
'You must use the skill tool to load any potentially relevant skills.',
382
+
isFree&&
383
+
`You must spawn the thinker-gemini agent once per user request to plan the best response.`,
382
384
isMax&&
383
385
`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.`,
0 commit comments