mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 09:04:26 +00:00
fix(plan-mode): make DONE tag instruction clearer
- Number steps and show id=xxx format - Clearer instruction to output [DONE:id] after each step
This commit is contained in:
parent
b2fc21a8dd
commit
ec786538da
1 changed files with 4 additions and 5 deletions
|
|
@ -356,17 +356,16 @@ Do NOT attempt to make changes - just describe what you would do.`,
|
|||
if (executionMode && todoItems.length > 0) {
|
||||
console.error("[plan-mode] before_agent_start: injecting EXECUTING PLAN context");
|
||||
const remaining = todoItems.filter((t) => !t.completed);
|
||||
const todoList = remaining.map((t) => `- [${t.id}] ${t.text}`).join("\n");
|
||||
const todoList = remaining.map((t, i) => `${i + 1}. (id=${t.id}) ${t.text}`).join("\n");
|
||||
return {
|
||||
message: {
|
||||
customType: "plan-execution-context",
|
||||
content: `[EXECUTING PLAN]
|
||||
Plan mode is OFF. You have FULL access to: read, write, edit, bash.
|
||||
content: `[EXECUTING PLAN - You have FULL tool access]
|
||||
|
||||
Remaining steps:
|
||||
Steps to complete:
|
||||
${todoList}
|
||||
|
||||
IMPORTANT: After completing each step, output [DONE:id] to mark it complete.
|
||||
After completing each step, output [DONE:id] to mark it complete.
|
||||
Example: [DONE:${remaining[0]?.id || "abc123"}]`,
|
||||
display: false,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue