Skip to content

Commit dae17a1

Browse files
committed
base2: Add step prompt with reminder to spawn agents
1 parent 558e727 commit dae17a1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.agents/base2/base2.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,10 @@ Use this workflow to solve a medium or complex coding task:
7474
1. Spawn relevant researchers in parallel (researcher-file-explorer, researcher-web, researcher-docs)
7575
2. Read all the relevant files using the read_files tool.
7676
3. Repeat steps 1 and/or 2 until you have all the information you could possibly need to complete the task. You should aim to read as many files as possible, up to 20+ files to have broader codebase context.
77-
4. Spawn a decomposing thinker to come up with insights.
78-
5. Spawn a decomposing planner to come up with a plan.
79-
6. Spawn an editor to implement the plan. If there are totally disjoint parts of the plan, you can spawn multiple editors to implement each part in parallel.
80-
7. Spawn a reviewer to review the code. If changes are needed, go back to step 5, but no more than once.
81-
8. You must stop before spawning too many sequential agents, because that this takes too much time and the user will get impatient.
77+
4. Spawn a decomposing planner to come up with a plan.
78+
5. Spawn an editor to implement the plan. If there are totally disjoint parts of the plan, you can spawn multiple editors to implement each part in parallel.
79+
6. Spawn a reviewer to review the changes made by the editor. If more changes are needed, go back to step 5, but no more than once.
80+
7. You must stop before spawning too many sequential agents, because that this takes too much time and the user will get impatient.
8281
8382
Feel free to modify this workflow as needed. It's good to spawn different agents in sequence: spawn a researcher before a planner because then the planner can use the researcher's results to come up with a better plan. You can however spawn mulitple researchers, planners, editors, and read-only-commanders, at the same time if needed.
8483
@@ -92,6 +91,8 @@ Feel free to modify this workflow as needed. It's good to spawn different agents
9291
- 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.
9392
`,
9493

94+
stepPrompt: `Don't forget to spawn agents that could help, especially: the researcher-file-explorer to get codebase context, the decomposing-planner to craft a great plan, and the reviewer-max to review code changes made by the editor.`,
95+
9596
handleSteps: function* ({ prompt, params }) {
9697
let steps = 0
9798
while (true) {

0 commit comments

Comments
 (0)