Skip to content

Commit 8713040

Browse files
committed
Revert "freebuff: use thinker-gpt to plan response"
This reverts commit 2684e84.
1 parent 2684e84 commit 8713040

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

agents/base2/base2.ts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -141,16 +141,16 @@ Use the spawn_agents tool to spawn specialized agents to help you complete the u
141141
- **Sequence agents properly:** Keep in mind dependencies when spawning different agents. Don't spawn agents in parallel that depend on each other.
142142
${buildArray(
143143
'- 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.',
144-
// isFree && 'Important: Do not spawn the thinker-gpt agent, unless the user asks. Not everyone has connected their ChatGPT subscription to Codebuff to allow for it.',
145-
isFree &&
146-
'- You must spawn the thinker-gpt agent to plan your response, except for extremely simple requests that are obvious.',
144+
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.',
147145
isDefault &&
148146
'- Spawn the editor agent to implement the changes after you have gathered all the context you need.',
149147
(isDefault || isMax) &&
150148
`- Spawn the ${isDefault ? 'thinker' : 'thinker-best-of-n-opus'} after gathering context to solve complex problems or when the user asks you to think about a problem. (gpt-5-agent is a last resort for complex problems)`,
151149
isMax &&
152150
`- IMPORTANT: You must spawn the editor-multi-prompt 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.`,
153151
isFree &&
152+
'- Implement code changes using the str_replace or write_file tools directly.',
153+
isFree &&
154154
'- Spawn a code-reviewer-lite to review the changes after you have implemented the changes.',
155155
'- Spawn bashers sequentially if the second command depends on the the first.',
156156
isDefault &&
@@ -204,10 +204,8 @@ ${buildArray(
204204
[ You read a few other relevant files using the read_files tool ]${!noAskUser
205205
? `\n\n[ You ask the user for important clarifications on their request or alternate implementation strategies using the ask_user tool ]`
206206
: ''
207-
}${isFree
208-
? `\n\n[ You spawn the thinker-gpt agent to plan your response ]`
209-
: ''
210-
}${isDefault
207+
}
208+
${isDefault
211209
? `[ You implement the changes using the editor agent ]`
212210
: isFast || isFree
213211
? '[ You implement the changes using the str_replace or write_file tools ]'
@@ -339,8 +337,6 @@ ${buildArray(
339337
'- IMPORTANT: You must spawn the editor agent to implement the changes after you have gathered all the context you need. This agent will do the best job of implementing the changes so you must spawn it for all non-trivial changes. Do not pass any prompt or params to the editor agent when spawning it. It will make its own best choices of what to do.',
340338
isMax &&
341339
`- IMPORTANT: You must spawn the editor-multi-prompt 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. You should also prompt it to implement the full task rather than just a single step.`,
342-
isFree &&
343-
'- IMPORTANT: You must spawn the thinker-gpt agent to plan your response after you have gathered all the context you need. This agent will do the best job of thinking and planning your best response so you must spawn it for all non-trivial requests. Do not pass any prompt or params to the editor agent when spawning it. It will make its own best recommendations of what to do.',
344340
isFast &&
345341
'- Implement the changes using the str_replace or write_file tools. Implement all the changes in one go.',
346342
isFast &&
@@ -384,8 +380,6 @@ function buildImplementationStepPrompt({
384380
(isDefault || isMax) &&
385381
`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.`,
386382
isFree &&
387-
`You must spawn a thinker-gpt to plan your response after you have gathered all the relevant context.`,
388-
isFree &&
389383
`You must spawn a code-reviewer-lite to review the changes after you have implemented the changes and in parallel with typechecking or testing.`,
390384
`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." : ''}.`,
391385
!isFast &&

0 commit comments

Comments
 (0)