Skip to content

Commit 33e92fd

Browse files
committed
base2: remove inline-file-picker-max, tweak prompts
1 parent a784acc commit 33e92fd

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.agents/base2/base2.ts

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,8 @@ export const createBase2: (
3333
},
3434
outputMode: 'last_message',
3535
includeMessageHistory: true,
36-
toolNames: [
37-
'spawn_agents',
38-
'spawn_agent_inline',
39-
'read_files',
40-
'str_replace',
41-
'write_file',
42-
],
36+
toolNames: ['spawn_agents', 'read_files', 'str_replace', 'write_file'],
4337
spawnableAgents: buildArray(
44-
isMax && 'inline-file-explorer-max',
4538
'file-picker',
4639
'find-all-referencer',
4740
'researcher-web',
@@ -58,7 +51,7 @@ export const createBase2: (
5851
# Core Mandates
5952
6053
- **Tone:** Adopt a professional, direct, and concise tone suitable for a CLI environment.
61-
- **Understand first, act second:** Always gather context and read relevant files BEFORE spawning editors.
54+
- **Understand first, act second:** Always gather context and read relevant files BEFORE editing files.
6255
- **Quality over speed:** Prioritize correctness over appearing productive. Fewer, well-informed agents are better than many rushed ones.
6356
- **Spawn mentioned agents:** If the user uses "@AgentName" in their message, you must spawn that agent.
6457
- **No final summary:** When the task is complete, inform the user in one sentence.
@@ -113,7 +106,7 @@ Continue to spawn layers of agents until have completed the user's request or re
113106
114107
The user asks you to implement a new feature. You respond in multiple steps:
115108
116-
1. Spawn a ${isMax ? 'inline-file-explorer-max' : 'file-picker'} with different prompts to find relevant files; spawn a find-all-referencer to find more relevant files and answer questions about the codebase; spawn 1 docs research to find relevant docs.'
109+
1. Spawn file-pickers with different prompts to find relevant files; spawn a find-all-referencer to find more relevant files and answer questions about the codebase; spawn 1 docs researcher to find relevant docs.
117110
1a. Read all the relevant files using the read_files tool.
118111
2. Spawn one more file picker and one more find-all-referencer with different prompts to find relevant files.
119112
2a. Read all the relevant files using the read_files tool.
@@ -125,20 +118,20 @@ The user asks you to implement a new feature. You respond in multiple steps:
125118
126119
- **Sequence agents properly:** Keep in mind dependencies when spawning different agents. Don't spawn agents in parallel that depend on each other. Be conservative sequencing agents so they can build on each other's insights:
127120
- Spawn file pickers, find-all-referencer, and researchers before making edits.
128-
- Only spawn generate-plan agent after you have gathered all the context you need.
129-
- Only make edits generating a plan.
121+
- Spawn generate-plan agent after you have gathered all the context you need (and not before!).
122+
- Only make edits after generating a plan.
130123
- Reviewers should be spawned after you have made your edits.
131-
- **Once you've gathered all the context you need, create a plan:** Spawn the generate-plan agent to generate a plan for the changes.
132124
- **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.
133125
- **Don't spawn reviewers for trivial changes or quick follow-ups:** You should spawn the reviewer for most changes, but not for little changes or simple follow-ups.
134126
- **Don't spawn editors unless asked to parallelize or use multiple agents:** The editor performs worse at editing and is not to be used most of the time.
135127
136128
## Response guidelines
129+
137130
- **Don't create a summary markdown file:** The user doesn't want markdown files they didn't ask for. Don't create them.
138131
- **Don't include final summary:** Don't include any final summary in your response. Don't describe the changes you made. Just let the user know that you have completed the task briefly.
139132
`,
140133

141-
stepPrompt: `Don't forget to spawn agents that could help, especially: the ${isMax ? 'inline-file-explorer-max' : 'file-picker'} and find-all-referencer to get codebase context, the generate-plan agent to generate a plan for the changes, and the reviewer to review changes.`,
134+
stepPrompt: `Don't forget to spawn agents that could help, especially: the file-picker and find-all-referencer to get codebase context, the generate-plan agent to generate a plan for the changes, and the reviewer to review changes.`,
142135

143136
handleSteps: function* ({ prompt, params }) {
144137
let steps = 0

0 commit comments

Comments
 (0)