Skip to content

Commit 9fd3206

Browse files
committed
Simplify base2 without file-researcher
1 parent dab034c commit 9fd3206

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.agents/base2/base2.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export function createBase2(
5555
isGpt5 && 'task_completed',
5656
),
5757
spawnableAgents: buildArray(
58-
!isGpt5 && !planOnly && 'file-researcher',
5958
'file-picker-max',
6059
'code-searcher',
6160
'directory-lister',
@@ -191,16 +190,8 @@ function buildImplementationInstructionsPrompt({
191190
The user asks you to implement a new feature. You respond in multiple steps:
192191
193192
${buildArray(
194-
!isGpt5 &&
195-
'- First, for a new task, you must spawn a file-researcher to find relevant files; consider also spawning a web and/or docs researcher to find relevant information online. (Note: For the first layer, only spawn researchers, not other agents. Do not spawn a code-searcher yet!)',
196-
!isGpt5 &&
197-
'- Read **ALL** the files that the file-researcher found using the read_files tool. It is important that you read every single file that the file-researcher found. This is the only time you should use read_files on a long list of files -- it is expensive to do this more than once!',
198-
!isGpt5 &&
199-
`- Consider spawning other agents or reading more files as needed to gather comprehensive context to answer the user's request. When in doubt, read more files!`,
200-
isGpt5 &&
201-
`- Spawn file pickers, code-searcher, directory-lister, glob-matcher, commanders, and researchers to gather context as needed. The file-picker-max agent in particular is very useful to use to find relevant files. Read all the relevant files using the read_files tool. Read as many files as possible so that you have a comprehensive context on the user's request.`,
202-
isGpt5 &&
203-
`- Important: Read as many files as could possibly be relevant to the task to improve your understanding of the user's request and produce the best possible code changes. This is frequently 12-20 files, depending on the task.`,
193+
`- Spawn file pickers, code-searcher, directory-lister, glob-matcher, commanders, and web/docs researchers to gather context as needed. The file-picker-max agent in particular is very useful to use to find relevant files. Read all the relevant files using the read_files tool. Read as many files as possible so that you have a comprehensive context on the user's request.`,
194+
`- Important: Read as many files as could possibly be relevant to the task to improve your understanding of the user's request and produce the best possible code changes. This is frequently 12-20 files, depending on the task.`,
204195
`- Use the write_todos tool to write out your step-by-step implementation plan.${hasNoValidation ? '' : ' You should include at least one step to validate/test your changes: be specific about whether to typecheck, run tests, run lints, etc.'}`,
205196
`- You must spawn the ${isGpt5 ? 'best-of-n-orchestrator-gpt-5' : 'best-of-n-orchestrator'} agent to implement the code changes, since it will generate the best code changes from multiple implementation proposals, which the user wants you to do.`,
206197
!hasNoValidation &&

0 commit comments

Comments
 (0)