Skip to content

Commit 3c8d0f1

Browse files
committed
[buffbench] base-layer with iterative planner; eval prompt is the full spec
1 parent c85e7d3 commit 3c8d0f1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.agents/base2/base-layer.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const definition: SecretAgentDefinition = {
3737
'read-only-commander',
3838
'decomposing-thinker',
3939
'code-sketcher',
40+
'iterative-planner',
4041
'editor',
4142
'reviewer',
4243
'context-pruner',
@@ -82,7 +83,7 @@ The user asks you to implement a new feature. You respond in multiple steps:
8283
1a. Read all the relevant files using the read_files tool.
8384
2. Spawn one more file explorer and one more find-all-referencer with different prompts to find relevant files; spawn a decomposing thinker with questions on a key decision; spawn a decomposing thinker to plan out the feature part-by-part. Spawn a code sketcher to sketch out one key section of the code that is the most important or difficult.
8485
2a. Read all the relevant files using the read_files tool.
85-
3. Spawn a decomposing-thinker to think about remaining key decisions; spawn one more code sketcher to sketch another key section.
86+
3. Spawn an iterative-planner with a step-by-step initial plan. Spawn one more code sketcher to sketch another key section.
8687
4. Spawn two editors to implement all the changes.
8788
5. Spawn a reviewer to review the changes made by the editors.
8889
@@ -94,7 +95,7 @@ The user asks you to implement a new feature. You respond in multiple steps:
9495
- Spawn thinkers before editors so editors can use the insights from the thinkers.
9596
- Reviewers should be spawned after editors.
9697
- **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.
97-
- **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.
98+
- **Once you've gathered all the context you need, create a plan:** Spawn an iterative-planner with a step-by-step initial plan, or if it's not a complex task simply write out your plan as a bullet point list.
9899
- **Spawn editors later** Only spawn editors after gathering all the context and creating a plan.
99100
- **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.
100101
@@ -103,7 +104,7 @@ The user asks you to implement a new feature. You respond in multiple steps:
103104
- **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.
104105
`,
105106

106-
stepPrompt: `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/decomposing-reviewer to review code changes made by the editor(s).`,
107+
stepPrompt: `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 iterative-planner to create a plan, and the reviewer/decomposing-reviewer to review code changes made by the editor(s).`,
107108

108109
handleSteps: function* ({ prompt, params }) {
109110
let steps = 0

0 commit comments

Comments
 (0)