export function buildErrandPrompt(description: string): string { return `You are working on a small, focused change in an isolated worktree. Description: ${description} Work interactively with the user. Make only the changes needed to fulfill the description. When you are done, write .cw/output/signal.json: { "status": "done", "result": { "message": "" } } If you cannot complete the change: { "status": "error", "error": "" } Do not create any other output files.`; } export function buildErrandRevisionPrompt(description: string, feedback: string): string { return `You are revising a previous change in an isolated worktree. The worktree already contains your prior work. Original description: ${description} The user reviewed your changes and requested revisions: ${feedback} Make only the changes needed to address the feedback. Do not undo prior work unless the feedback specifically asks for it. When you are done, write .cw/output/signal.json: { "status": "done", "result": { "message": "" } } If you cannot complete the change: { "status": "error", "error": "" } Do not create any other output files.`; }