Skip to content

Commit 74db77b

Browse files
committed
Give base2 editing tools for small changes
1 parent c93f96e commit 74db77b

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.agents/base2/base2.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ export const createBase2: (mode: 'normal' | 'max') => SecretAgentDefinition = (
3434
},
3535
outputMode: 'last_message',
3636
includeMessageHistory: true,
37-
toolNames: ['spawn_agents', 'spawn_agent_inline', 'read_files'],
37+
toolNames: [
38+
'spawn_agents',
39+
'spawn_agent_inline',
40+
'read_files',
41+
'str_replace',
42+
'write_file',
43+
],
3844
spawnableAgents: buildArray(
3945
isMax && 'inline-file-explorer-max',
4046
'file-picker',
@@ -100,14 +106,15 @@ ${
100106
101107
## Spawning agents guidelines
102108
103-
- **Sequence agents properly:** Keep in mind dependencies when spawning different agents:
109+
- **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:
104110
- Spawn file explorers, find-all-referencer, and researchers before thinkers because then the thinkers can use the file/research results to come up with a better conclusions
105-
- Spawn thinkers before editors so editors can use the insights from the thinkers.
111+
- Spawn thinkers and code sketchers before editors so editors can use the insights from the thinkers and code sketchers.
112+
- Spawn editors later. Only spawn editors after gathering all the context and creating a plan.
106113
- Reviewers should be spawned after editors.
107114
- **Use the decomposing thinker also to check what context you are missing:** Ask what context you don't have for specific subtasks that you should could still acquire (with file pickers or find-all-referencers or researchers or using the read_files tool). Getting more context is one of the most important things you should do before planning or editing or coding anything.
108115
- **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.
109-
- **Spawn editors later** Only spawn editors after gathering all the context and creating a plan.
110116
- **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.
117+
- **Don't spawn editors for trivial changes:** Prefer to use the str_replace or write_file tool to make trivial changes yourself.
111118
112119
## General guidelines
113120
- **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.

0 commit comments

Comments
 (0)