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
'An extremely short (1 sentence) description of why this implementation was chosen',
72
72
},
73
+
suggestedImprovements: {
74
+
type: 'string',
75
+
description:
76
+
'A summary of suggested improvements from non-chosen implementations that could enhance the selected implementation. You can also include any new ideas you have to improve upon the selected implementation. Leave empty if no valuable improvements were found.',
After selecting the best implementation, look at each non-chosen implementation and identify any valuable aspects that could enhance the selected implementation. These might include:
109
+
- More elegant code patterns or abstractions
110
+
- Simplified logic or reuse of existing code
111
+
- Additional edge case handling
112
+
- Better naming or organization
113
+
- Useful comments or documentation
114
+
- Additional features that align with the user's request
115
+
116
+
Only include improvements that are genuinely valuable and compatible with the selected implementation. If a non-chosen implementation has no useful improvements to offer, don't include it.
117
+
98
118
## User Request
99
119
100
120
For context, here is the original user request again:
@@ -108,10 +128,10 @@ Try to select an implementation that fulfills all the requirements in the user's
108
128
109
129
${
110
130
isSonnet||isOpus
111
-
? `Use <think> tags to write out your thoughts about the implementations as needed to pick the best implementation. IMPORTANT: You should think really really hard to make sure you pick the absolute best implementation! As soon as you know for sure which implementation is the best, you should output your choice.
131
+
? `Use <think> tags to write out your thoughts about the implementations as needed to pick the best implementation. IMPORTANT: You should think really really hard to make sure you pick the absolute best implementation! Also analyze the non-chosen implementations for any valuable techniques or approaches that could improve the selected one.
112
132
113
-
Then, do not write any other explanations AT ALL. You should directly output a single tool call to set_output with the selected implementationId and short reason.`
114
-
: `Output a single tool call to set_output with the selected implementationId. Do not write anything else.`
133
+
Then, do not write any other explanations AT ALL. You should directly output a single tool call to set_output with the selected implementationId, short reason, and suggestedImprovements array.`
134
+
: `Output a single tool call to set_output with the selected implementationId, reason, and suggestedImprovements. Do not write anything else.`
Copy file name to clipboardExpand all lines: .agents/editor/best-of-n/editor-multi-prompt2.ts
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ export function createMultiPromptEditor(): Omit<SecretAgentDefinition, 'id'> {
13
13
model: 'anthropic/claude-opus-4.5',
14
14
displayName: 'Multi-Prompt Editor',
15
15
spawnerPrompt:
16
-
'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.',
16
+
'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.',
0 commit comments