From b11797ea1ce89d0f8a8cfc2f45baabb596176e38 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Mon, 9 Feb 2026 15:36:57 -0700 Subject: [PATCH] fix: Improved continuation prompt to not make broad todo-items --- src/config/agent.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/config/agent.rs b/src/config/agent.rs index 1a4852f..bbb793e 100644 --- a/src/config/agent.rs +++ b/src/config/agent.rs @@ -453,11 +453,13 @@ impl Agent { pub fn continuation_prompt(&self) -> String { self.config.continuation_prompt.clone().unwrap_or_else(|| { - "[SYSTEM REMINDER - TODO CONTINUATION]\n\ - You have incomplete tasks in your todo list. \ - Continue with the next pending item. \ - Call tools immediately. Do not explain what you will do." - .to_string() + formatdoc! {" + [SYSTEM REMINDER - TODO CONTINUATION] + You have incomplete tasks. Rules: + 1. BEFORE marking a todo done: verify the work compiles/works. No premature completion. + 2. If a todo is broad (e.g. \"implement X and implement Y\"): break it into specific subtasks FIRST using todo__add, then work on those.\n\ + 3. Each todo should be atomic and be \"single responsibility\" - completable in one focused action. + 4. Continue with the next pending item now. Call tools immediately."} }) }