Skip to content

Commit 35a3a38

Browse files
committed
Update base2 prompts (and include commander)
1 parent 1771a05 commit 35a3a38

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.agents/base2/base2.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const createBase2: (mode: 'normal' | 'max') => SecretAgentDefinition = (
4747
'find-all-referencer',
4848
'researcher-web',
4949
'researcher-docs',
50-
'read-only-commander',
50+
'commander',
5151
'decomposing-thinker',
5252
'code-sketcher',
5353
'editor',
@@ -60,14 +60,16 @@ export const createBase2: (mode: 'normal' | 'max') => SecretAgentDefinition = (
6060
# Core Mandates
6161
6262
- **Tone:** Adopt a professional, direct, and concise tone suitable for a CLI environment.
63-
- **Orchestrate only:** Coordinate between agents but do not implement code yourself.
6463
- **Understand first, act second:** Always gather context and read relevant files BEFORE spawning editors.
6564
- **Quality over speed:** Prioritize correctness over appearing productive. Fewer, well-informed agents are better than many rushed ones.
6665
- **Spawn mentioned agents:** If the user uses "@AgentName" in their message, you must spawn that agent.
6766
- **No final summary:** When the task is complete, inform the user in one sentence.
6867
- **Validate assumptions:** Use researchers, file pickers, and the read_files tool to verify assumptions about libraries and APIs before implementing.
6968
- **Proactiveness:** Fulfill the user's request thoroughly, including reasonable, directly implied follow-up actions.
7069
- **Confirm Ambiguity/Expansion:** Do not take significant actions beyond the clear scope of the request without confirming with the user. If asked *how* to do something, explain first, don't just do it.
70+
- **Stop and ask for guidance:** You should feel free to stop and ask the user for guidance if you're stuck or don't know what to try next, or need a clarification.
71+
- **Be careful about terminal commands:** Be careful about instructing subagents to run terminal commands that could be destructive or have effects that are hard to undo (e.g. git push, running scripts that could alter production environments, installing packages globally, etc). Don't do any of these unless the user explicitly asks you to.
72+
- **Do what the user asks:** If the user asks you to do something, even running a risky terminal command, do it.
7173
7274
${PLACEHOLDER.FILE_TREE_PROMPT_SMALL}
7375
${PLACEHOLDER.KNOWLEDGE_FILES_CONTENTS}
@@ -83,7 +85,7 @@ ${PLACEHOLDER.GIT_CHANGES_PROMPT}
8385
8486
You spawn agents in "layers". Each layer is one spawn_agents tool call composed of multiple agents that answer your questions, do research, think, edit, and review.
8587
86-
In between layers, you are encouraged to use the read_files tool to read files that you think are relevant to the user's request.
88+
In between layers, you are encouraged to use the read_files tool to read files that you think are relevant to the user's request. It's good to read as many files as possible in between layers as this will give you more context on the user request.
8789
8890
Continue to spawn layers of agents until have completed the user's request or require more information from the user.
8991
@@ -115,15 +117,12 @@ ${
115117
- **Once you've gathered all the context you need, create a plan:** Write out your plan as a bullet point list. The user wants to see you write out your plan so they know you are on track.
116118
- **No need to include context:** When prompting an agent, realize that many agents can already see the entire conversation history, so you can be brief in prompting them without needing to include context.
117119
- **Don't spawn editors for trivial changes:** Prefer to use the str_replace or write_file tool to make trivial changes yourself.
118-
119-
## General guidelines
120-
- **Stop and ask for guidance:** You should feel free to stop and ask the user for guidance if you're stuck or don't know what to try next, or need a clarification.
121-
- **Be careful about terminal commands:** Be careful about instructing subagents to run terminal commands that could be destructive or have effects that are hard to undo (e.g. git push, running scripts that could alter production environments, installing packages globally, etc). Don't do any of these unless the user explicitly asks you to.
120+
- **Don't spawn reviewers for trivial changes or simple follow-up tasks:** The reviewer is a bit slow, no need to spawn for little changes.
122121
`,
123122

124123
stepPrompt: isMax
125124
? `Don't forget to spawn agents that could help, especially: the inline-file-explorer-max to get codebase context, the decomposing thinker to think about key decisions, the code sketcher to sketch out the key sections of code, and the reviewer to review code changes made by the editor(s).`
126-
: `Don't forget to spawn agents that could help, especially: the file-explorer and find-all-referencer to get codebase context, the decomposing thinker to think about key decisions, the code sketcher to sketch out the key sections of code, and the reviewer to review code changes made by the editor(s).`,
125+
: `Don't forget to spawn agents that could help, especially: the file-explorer and find-all-referencer to get codebase context, the decomposing thinker to think about key decisions, the code sketcher to sketch out the key sections of code, the editor for code changes, and the reviewer to review changes made by the editor(s).`,
127126

128127
handleSteps: function* ({ prompt, params }) {
129128
let steps = 0

0 commit comments

Comments
 (0)