Skip to content

Commit 55d5a8a

Browse files
committed
Rename editor
1 parent 52f80c5 commit 55d5a8a

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

.agents/base2/base2.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ export function createBase2(
7070
'researcher-web',
7171
'researcher-docs',
7272
'commander',
73-
isDefault && 'best-of-n-editor',
74-
isGpt5 && 'best-of-n-editor-gpt-5',
73+
isDefault && 'editor-best-of-n',
74+
isGpt5 && 'editor-best-of-n-gpt-5',
7575
isDefault && 'thinker-best-of-n',
7676
isGpt5 && 'thinker-best-of-n-gpt-5',
7777
'context-pruner',
@@ -124,7 +124,7 @@ Use the spawn_agents tool to spawn specialized agents to help you complete the u
124124
- **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:
125125
- Spawn file pickers, code-searcher, directory-lister, glob-matcher, commanders, and web/docs researchers before making edits.
126126
${buildArray(
127-
`- Spawn a ${isGpt5 ? 'best-of-n-editor-gpt-5' : 'best-of-n-editor'} agent to implement the changes after you have gathered all the context you need.`,
127+
`- Spawn a ${isGpt5 ? 'editor-best-of-n-gpt-5' : 'editor-best-of-n'} agent to implement the changes after you have gathered all the context you need.`,
128128
).join('\n ')}
129129
- **Spawn with the correct prompt and/or params:** Each agent has a schema for the input it expects. The prompt is a string, and the params is a json object. Some agents require prompts and/or params, and some require you to NOT include any input prompt or params.
130130
- **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.
@@ -228,7 +228,7 @@ ${buildArray(
228228
`- Important: Read as many files as could possibly be relevant to the task to improve your understanding of the user's request and produce the best possible code changes. This is frequently 12-20 files, depending on the task.`,
229229
`- For multi-step tasks, use the write_todos tool to write out your step-by-step implementation plan. Include ALL of the applicable tasks in the list.${hasNoValidation ? '' : ' You should include at least one step to validate/test your changes: be specific about whether to typecheck, run tests, run lints, etc.'} Skip write_todos for trivial tasks like single-line edits or simple questions.`,
230230
!isFast &&
231-
`- You must spawn the ${isGpt5 ? 'best-of-n-editor-gpt-5' : 'best-of-n-editor'} agent to implement non-trivial code changes, since it will generate the best code changes from multiple implementation proposals. This is the best way to make high quality code changes -- strongly prefer using this agent over the str_replace or write_file tools, unless the change is very small and trivial.`,
231+
`- You must spawn the ${isGpt5 ? 'editor-best-of-n-gpt-5' : 'editor-best-of-n'} agent to implement non-trivial code changes, since it will generate the best code changes from multiple implementation proposals. This is the best way to make high quality code changes -- strongly prefer using this agent over the str_replace or write_file tools, unless the change is very small and trivial.`,
232232
!hasNoValidation &&
233233
`- Test your changes${isMax ? '' : ' briefly'} by running appropriate validation commands for the project (e.g. typechecks, tests, lints, etc.).${isMax ? ' Start by type checking the specific area of the project that you are editing and then test the entire project if necessary.' : ' If you can, only typecheck/test the area of the project that you are editing, rather than the entire project.'} You may have to explore the project to find the appropriate commands. Don't skip this step!`,
234234
`- Inform the user that you have completed the task in one sentence or a few short bullet points.${isSonnet ? " Don't create any markdown summary files or example documentation files, unless asked by the user." : ''}`,
@@ -311,7 +311,7 @@ On subsequent turns with the user, you should rewrite the spec to reflect the us
311311

312312
function buildPlanOnlyStepPrompt({}: {}) {
313313
return buildArray(
314-
`Your are in plan mode. Do not make any file changes. Do not call write_file or str_replace. Do not spawn the best-of-n-editor agent. Do not use the write_todos tool.`,
314+
`Your are in plan mode. Do not make any file changes. Do not call write_file or str_replace. Do not spawn the editor-best-of-n agent. Do not use the write_todos tool.`,
315315
).join('\n')
316316
}
317317

.agents/base2/best-of-n/best-of-n-editor-gpt-5.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { createBestOfNEditor } from './editor-best-of-n'
2+
3+
const definition = {
4+
...createBestOfNEditor('gpt-5'),
5+
id: 'editor-best-of-n-gpt-5',
6+
}
7+
export default definition

.agents/base2/best-of-n/best-of-n-editor.ts renamed to .agents/base2/best-of-n/editor-best-of-n.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,6 @@ function* handleStepsGpt5({
341341

342342
const definition = {
343343
...createBestOfNEditor('sonnet'),
344-
id: 'best-of-n-editor',
344+
id: 'editor-best-of-n',
345345
}
346346
export default definition

.agents/base2/task-researcher/base2-gpt-5-worker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const definition: SecretAgentDefinition = {
1818
'researcher-web',
1919
'researcher-docs',
2020
'commander',
21-
'best-of-n-editor-gpt-5',
21+
'editor-best-of-n-gpt-5',
2222
'context-pruner',
2323
),
2424

@@ -32,7 +32,7 @@ The user asks you to implement a new feature. You respond in multiple steps:
3232
3333
- Gather context on the user's request by spawning agents and reading files.
3434
- Use the write_todos tool to write out your step-by-step implementation plan.
35-
- Use the best-of-n-editor-gpt-5 tool to implement the changes. This is the best way to make high quality code changes -- strongly prefer using this agent over the str_replace or write_file tool.
35+
- Use the editor-best-of-n-gpt-5 tool to implement the changes. This is the best way to make high quality code changes -- strongly prefer using this agent over the str_replace or write_file tool.
3636
- For smaller fixes, use the str_replace or write_file tool to make the changes.
3737
- Test your changes by running appropriate validation commands for the project (e.g. typechecks, tests, lints, etc.). You may have to explore the project to find the appropriate commands.`,
3838

0 commit comments

Comments
 (0)