Skip to content

Commit 3bfff7a

Browse files
committed
base2: Put example response back in instructionsPrompt, remove editor
1 parent a670672 commit 3bfff7a

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

.agents/base2/base2-gpt-5.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const definition: SecretAgentDefinition = {
1515
'researcher-docs',
1616
'commander',
1717
'reviewer-gpt-5',
18-
'editor-gpt-5',
1918
'context-pruner',
2019
),
2120
}

.agents/base2/base2.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export const createBase2: (
4242
'commander',
4343
'generate-plan',
4444
'reviewer',
45-
'editor',
4645
'context-pruner',
4746
),
4847

@@ -56,18 +55,6 @@ In between layers, you are encouraged to use the read_files tool to read files t
5655
5756
Continue to spawn layers of agents until have completed the user's request or require more information from the user.
5857
59-
## Example layers
60-
61-
The user asks you to implement a new feature. You respond in multiple steps:
62-
63-
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.
64-
1a. Read all the relevant files using the read_files tool.
65-
2. Spawn one more file picker and one more find-all-referencer with different prompts to find relevant files.
66-
2a. Read all the relevant files using the read_files tool.
67-
3. Spawn a generate-plan agent to generate a plan for the changes.
68-
4. Use the str_replace or write_file tool to make the changes.
69-
5. Spawn a reviewer to review the changes.
70-
7158
## Spawning agents guidelines
7259
7360
- **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:
@@ -77,7 +64,6 @@ The user asks you to implement a new feature. You respond in multiple steps:
7764
- Reviewers should be spawned after you have made your edits.
7865
- **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.
7966
- **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.
80-
- **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.
8167
8268
# Core Mandates
8369
@@ -130,9 +116,23 @@ The following is the state of the git repository at the start of the conversatio
130116
${PLACEHOLDER.GIT_CHANGES_PROMPT}
131117
`,
132118

133-
instructionsPrompt: `Orchestrate the completion of the user's request using your specialized sub-agents. Take your time and be comprehensive.`,
119+
instructionsPrompt: `Orchestrate the completion of the user's request using your specialized sub-agents. Take your time and be comprehensive.
120+
121+
## Example response
122+
123+
The user asks you to implement a new feature. You respond in multiple steps:
124+
125+
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.
126+
1a. Read all the relevant files using the read_files tool.
127+
2. Spawn one more file picker and one more find-all-referencer with different prompts to find relevant files.
128+
2a. Read all the relevant files using the read_files tool.
129+
3. Spawn a generate-plan agent to generate a plan for the changes.
130+
4. Use the str_replace or write_file tool to make the changes.
131+
5. Spawn a reviewer to review the changes.
132+
6. Fix any issues raised by the reviewer.
133+
7. Inform the user that you have completed the task in one sentence without a final summary.`,
134134

135-
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 create a plan, and the reviewer to review changes. No need to provide any final summary.`,
135+
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 create a plan, and the reviewer to review changes.`,
136136

137137
handleSteps: function* ({ prompt, params }) {
138138
let steps = 0

0 commit comments

Comments
 (0)