Skip to content

Commit 5825196

Browse files
committed
Prefer spawn agents tool to spawn agent inline
1 parent 7650ff0 commit 5825196

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.agents/prompts/base-prompts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export const baseAgentUserInputPrompt = (model: Model) => {
232232

233233
"If there are multiple ways the user's request could be interpreted that would lead to very different outcomes, ask at least one clarifying question that will help you understand what they are really asking for, and then use the end_turn tool.",
234234

235-
'Use the spawn_agents tool to spawn agents to help you complete the user request. You can spawn as many agents as you want.',
235+
'Use the spawn_agents tool (and not spawn_agent_inline!) to spawn agents to help you complete the user request. You can spawn as many agents as you want.',
236236

237237
'It is a good idea to spawn a file explorer agent first to explore the codebase from different perspectives. Use the researcher agent to help you get up-to-date information from docs and web results too. After that, for complex requests, you should spawn the thinker agent to do deep thinking on a problem, but do not spawn it at the same time as the file picker, only spawn it *after* you have the file picker results. Finally, you must spawn the reviewer agent to review your code changes.',
238238
"Important: you *must* read as many files with the read_files tool as possible from the results of the file picker agents. Don't be afraid to read 20 files. The more files you read, the better context you have on the codebase and the better your response will be.",

backend/src/tools/definitions/tool/spawn-agent-inline.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Spawn a single agent that runs within the current message history.
1010
The spawned agent sees all previous messages and any messages it adds
1111
are preserved when control returns to you.
1212
13+
You should prefer to use the spawn_agents tool unless instructed otherwise. This tool is only for special cases.
14+
1315
This is useful for:
1416
- Delegating specific tasks while maintaining context
1517
- Having specialized agents process information inline

0 commit comments

Comments
 (0)