Skip to content

Commit ea9b8d5

Browse files
committed
Insruct gpt-5-agent to spawn multiple agents in parallel
1 parent ff7454b commit ea9b8d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

agents/gpt-5-agent.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ const definition: SecretAgentDefinition = {
4444
'write_file',
4545
],
4646

47+
instructionsPrompt: `Tips: Use the spawn_agents tool to spawn agents to help you complete the user request. file-picker is really good at finding relevant files in the codebase and so a good one to start with. You should spawn multiple agents in parallel when possible to speed up the process. (e.g. spawn 3 file-pickers + 1 code-searcher + 1 researcher-web in one spawn_agents call or 3 commanders in one spawn_agents call). Read multiple files at once to speed up the process and get more context.`,
48+
4749
handleSteps: function* ({ params }) {
4850
const filePaths = params?.filePaths as string[] | undefined
4951

0 commit comments

Comments
 (0)