Skip to content

Commit c080e6f

Browse files
committed
base2 tweaks: give the planner a read-only-commander to find more files
1 parent 3653cb4 commit c080e6f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.agents/base2/editor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
const editor: SecretAgentDefinition = {
99
id: 'editor',
1010
publisher,
11-
model: 'anthropic/claude-4-sonnet-20250522',
11+
model: 'anthropic/claude-sonnet-4',
1212
displayName: 'Code Editor',
1313
spawnerPrompt:
1414
'Expert code editor with access to tools to find and edit files, run terminal commands, and search the web. Can handle small to medium sized tasks, or work off of a plan for more complex tasks. For easy tasks, you can spawn this agent directly rather than invoking a scout or planner first.',
@@ -111,7 +111,7 @@ User: <tool_result>
111111
112112
${PLACEHOLDER.KNOWLEDGE_FILES_CONTENTS}`,
113113

114-
instructionsPrompt: `Implement the requested changes. Feel free to ignore the plan if it seems incorrect.
114+
instructionsPrompt: `Implement the requested changes, using your judgment as needed, but referring to the original <user-message> as the most important source of information.
115115
116116
# Instructions
117117

.agents/base2/planner-factory.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const plannerFactory = (
1414
model,
1515
displayName: 'Peter Plan',
1616
spawnerPrompt:
17-
'Creates comprehensive plans by exploring the codebase, doing research on the web, and thinking deeply. You can also use it get deep answer to any question. This is a slow agent -- prefer to use it for complex tasks that require thinking.',
17+
'Creates comprehensive plans by exploring the codebase, doing research on the web, and thinking deeply. Is a codebase expert. You can also use it get a deep answer to any question. Use this agent for tasks that require thinking.',
1818
inputSchema: {
1919
prompt: {
2020
type: 'string',
@@ -28,6 +28,7 @@ export const plannerFactory = (
2828
'file-explorer',
2929
'web-researcher',
3030
'docs-researcher',
31+
'read-only-commander',
3132
'thinker-gpt-5-high',
3233
],
3334

@@ -39,8 +40,10 @@ ${PLACEHOLDER.KNOWLEDGE_FILES_CONTENTS}`,
3940

4041
instructionsPrompt: `You are gathering information which will be used to create a plan.
4142
42-
- It's helpful to spawn a file-explorer to find all the relevant parts of the codebase. In parallel as part of the same spawn_agents tool call, you may also spawn a web-researcher or docs-researcher to search the web or technical documentation for relevant information.
43-
- After you are satisfied with the information you have gathered from these agents, stop and use the end_turn tool. The plan will be created in a separate step. Do not spawn thinker-gpt-5-high in this step.`,
43+
- It's helpful to spawn a file-explorer and read-only-commander to find all the relevant parts of the codebase. In parallel as part of the same spawn_agents tool call, you may also spawn a web-researcher or docs-researcher to search the web or technical documentation for relevant information. Note: for the read-only-commander, be sure to ask it to list the file paths of all the relevant files for this task as absolute paths (e.g. src/example.ts, packages/components/Example.js, etc.).
44+
- Read all the file paths that are relevant using the read_files tool.
45+
- Read more and more files to get any information that could possibly help you make the best plan. It's good to read 20+ files.
46+
- After you are satisfied with the information you have gathered from these agents, use the set_output tool to describe the relevant information and insights you have. Then stop and use the end_turn tool. The plan will be created in a separate step. Do not spawn thinker-gpt-5-high in this step.`,
4447

4548
handleSteps: function* ({ prompt }) {
4649
// Step 1: Gather information

0 commit comments

Comments
 (0)