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
'Include paths to files that will help the agent implement or decide the step',
51
+
},
44
52
},
45
53
required: ['title','prompt','type'],
46
54
},
47
55
},
48
-
notes: {type: 'string'},
56
+
notes: {
57
+
type: 'string',
58
+
description:
59
+
'Any notes for the future orchestator agent. What you want to accomplish with these steps, why you chose them, and what you want to accomplish next. Also, estimate the remaining number of steps needed to complete the task.',
60
+
},
49
61
},
50
62
required: ['isDone','nextSteps','notes'],
51
63
},
@@ -61,20 +73,12 @@ Important: you *must* make at least one tool call, via <codebuff_tool_call> synt
61
73
- If only one step is needed next, return a single-item array.
62
74
- Mark isDone=true only when the overall task is truly complete.
63
75
64
-
Return JSON via set_output with:
65
-
{
66
-
isDone: boolean,
67
-
nextSteps: [
68
-
{
69
-
title: string,
70
-
prompt: string, // exact prompt to give to the implementor or decision maker
71
-
type: 'implementation' | 'decision', // whether this is a coding task or decision
72
-
successCriteria?: string[] // 3-6 bullet checks that show this step is done
- It's better to make small changes at a time and validate them as you go. Writing a lot of code without testing it or typechecking it or validating it in some way is not good!
78
+
- Keep the scope of your changes as small as possible.
79
+
- Try to complete your task in as few steps as possible.
80
+
- There is a time limit on the number of steps you can take. If you reach the limit, you will be cut off prematurely before the task is complete.
81
+
- Prefer not to parallelize steps if they are at all related, because you can get a better result by doing them sequentially.
78
82
`,
79
83
stepPrompt: `Important: you *must* make at least one tool call, via <codebuff_tool_call> syntax, in every response message!`,
? `<reminder>You are approaching the MAXIMUM NUMBER OF ITERATIONS! You have ${remainingIterations} iterations left to complete the task, or at least get it into a working state. You must try to wrap up the task in the remaining iterations or be cut off!</system_remender>`
100
+
: `<reminder>You have ${remainingIterations} steps left to complete the task.</reminder>`
101
+
96
102
// 3) Execute all steps in parallel
97
103
constexecutionAgents=steps.map((step)=>{
98
104
if(step.type==='decision'){
99
105
return{
100
-
agent_type: 'base2-fast',
101
-
prompt: `DECISION TASK: ${step.prompt}\n\nThis is a decision-making step, not an implementation step. Your job is to research options, analyze trade-offs, and make a clear recommendation with rationale. Write out your decision in the last message. Do not create a file with your decision.`,
106
+
agent_type: 'base2-with-files-input',
107
+
prompt: `DECISION TASK: ${step.prompt}\n\nThis is a decision-making step, not an implementation step. Your job is to research options, analyze trade-offs, and make a clear recommendation with rationale. Write out your decision in the last message. Do not create a file with your decision.${reminder}`,
0 commit comments