mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 10:02:23 +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
609d1751c5
commit
20ce41e767
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) {
|
if (executionMode && todoItems.length > 0) {
|
||||||
console.error("[plan-mode] before_agent_start: injecting EXECUTING PLAN context");
|
console.error("[plan-mode] before_agent_start: injecting EXECUTING PLAN context");
|
||||||
const remaining = todoItems.filter((t) => !t.completed);
|
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 {
|
return {
|
||||||
message: {
|
message: {
|
||||||
customType: "plan-execution-context",
|
customType: "plan-execution-context",
|
||||||
content: `[EXECUTING PLAN]
|
content: `[EXECUTING PLAN - You have FULL tool access]
|
||||||
Plan mode is OFF. You have FULL access to: read, write, edit, bash.
|
|
||||||
|
|
||||||
Remaining steps:
|
Steps to complete:
|
||||||
${todoList}
|
${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"}]`,
|
Example: [DONE:${remaining[0]?.id || "abc123"}]`,
|
||||||
display: false,
|
display: false,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue