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
The user asks you to implement a new feature. You respond in multiple steps:
30
30
31
-
- Gather context on the user's request
31
+
- Gather context on the user's request by spawning agents and reading files.
32
32
- Use the write_todos tool to write out your step-by-step implementation plan.
33
33
- Use the best-of-n-orchestrator 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.
34
34
- For smaller fixes, use the str_replace or write_file tool to make the changes.
35
-
- 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.
36
-
- End your turn.`,
35
+
- 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.`,
'Analyzes multiple implementation proposals and selects the best one',
17
19
18
-
toolNames: ['set_output'],
19
-
spawnableAgents: [],
20
+
includeMessageHistory: true,
21
+
inheritParentSystemPrompt: true,
20
22
21
-
inputSchema: {
22
-
params: {
23
-
type: 'object',
24
-
properties: {
25
-
implementations: {
26
-
type: 'array',
27
-
items: {
28
-
type: 'object',
29
-
properties: {
30
-
id: {type: 'string'},
31
-
content: {type: 'string'},
23
+
toolNames: ['set_output'],
24
+
spawnableAgents: [],
25
+
26
+
inputSchema: {
27
+
params: {
28
+
type: 'object',
29
+
properties: {
30
+
implementations: {
31
+
type: 'array',
32
+
items: {
33
+
type: 'object',
34
+
properties: {
35
+
id: {type: 'string'},
36
+
content: {type: 'string'},
37
+
},
38
+
required: ['id','content'],
32
39
},
33
-
required: ['id','content'],
34
40
},
35
41
},
42
+
required: ['implementations'],
36
43
},
37
-
required: ['implementations'],
38
44
},
39
-
},
40
-
outputMode: 'structured_output',
41
-
outputSchema: {
42
-
type: 'object',
43
-
properties: {
44
-
implementationId: {
45
-
type: 'string',
46
-
description: 'The id of the chosen implementation',
45
+
outputMode: 'structured_output',
46
+
outputSchema: {
47
+
type: 'object',
48
+
properties: {
49
+
implementationId: {
50
+
type: 'string',
51
+
description: 'The id of the chosen implementation',
52
+
},
47
53
},
54
+
required: ['implementationId'],
48
55
},
49
-
required: ['implementationId'],
50
-
},
51
56
52
-
instructionsPrompt: `As part of the best-of-n workflow of agents, you are the implementation selector agent.
57
+
instructionsPrompt: `As part of the best-of-n workflow of agents, you are the implementation selector agent.
53
58
54
59
## Task Instructions
55
60
@@ -79,9 +84,21 @@ Try to select an implementation that fulfills all the requirements in the user's
79
84
80
85
## Response Format
81
86
82
-
If needed, use <think> tags to briefly consider the implementations and their strengths and weaknesses.
87
+
${
88
+
isSonnet
89
+
? `Use <think> tags to briefly consider the implementations as needed to pick the best implementation.
90
+
91
+
If the best one is obvious or the implementations are very similar, you may not need to think very much (a few words suffice) or you may not need to use think tags at all, just pick the best one and output it. You have a dual goal of picking the best implementation and being fast (using as few words as possible).
92
+
93
+
Then, do not write any other explanations AT ALL. You should directly output a single tool call to set_output with the selected implementationId.`
94
+
: `Output a single tool call to set_output with the selected implementationId. Do not write anything else.`
95
+
}`,
96
+
}
97
+
}
83
98
84
-
Then, do not write any other explanations AT ALL. You should directly output a single tool call to set_output with the selected implementationId.`,
0 commit comments