You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
instructionsPrompt: `You are an expert code editor with deep understanding of software engineering principles. You were spawned to generate an implementation for the user's request.
37
37
38
-
Your task is to write out ALL the code changes needed to complete the user's request in a single comprehensive response.
38
+
Your task is to write out ALL the code changes needed to complete the user's request.
39
39
40
-
Important: You can not make any other tool calls besides editing files. You cannot read more files, write todos, spawn agents, or set output. Do not call any of these tools!
41
-
42
-
Write out what changes you would make using the tool call format below. Use this exact format for each file change:
40
+
IMPORTANT: Use propose_str_replace and propose_write_file tools to make your edits. These tools draft changes without actually applying them - they will be reviewed first. DO NOT use any other tools. Do not spawn any agents, read files, or set output.
43
41
42
+
You can make multiple tool calls across multiple steps to complete the implementation. Only the file changes will be passed on, so you can say whatever you want to help you think. Do not write any final summary as that would be a waste of tokens because no one is reading it.
44
43
<codebuff_tool_call>
45
44
{
46
45
"cb_tool_name": "str_replace",
@@ -116,15 +115,64 @@ More style notes:
116
115
- Optional arguments are code smell and worse than required arguments.
117
116
- New components often should be added to a new file, not added to an existing file.
118
117
119
-
Write out your complete implementation now, formatting all changes as tool calls as shown above.`,
120
-
121
-
handleSteps: function*(){
122
-
yield'STEP'
118
+
Write out your complete implementation now. Do not write any final summary.`,
'Edits code by spawning multiple implementor agents with different strategy prompts, selects the best implementation, and applies the changes. Pass an array of short prompts specifying different implementation approaches. Make sure to read any files intended to be edited before spawning this agent.',
17
+
'Edits code by spawning multiple implementor agents with different strategy prompts, selects the best implementation, and applies the changes. It also returns further suggested improvements which you should take seriously and act on. Pass as input an array of short prompts specifying different implementation approaches or strategies. Make sure to read any files intended to be edited before spawning this agent.',
21
18
22
19
includeMessageHistory: true,
23
20
inheritParentSystemPrompt: true,
@@ -30,7 +27,7 @@ export function createMultiPromptEditor(): Omit<SecretAgentDefinition, 'id'> {
30
27
'set_output',
31
28
],
32
29
spawnableAgents: [
33
-
'best-of-n-selector-opus',
30
+
'best-of-n-selector2',
34
31
'editor-implementor-opus',
35
32
'editor-implementor-gpt-5',
36
33
],
@@ -58,7 +55,6 @@ export function createMultiPromptEditor(): Omit<SecretAgentDefinition, 'id'> {
0 commit comments