fix: Improved continuation prompt to not make broad todo-items

This commit is contained in:
2026-02-09 15:36:57 -07:00
parent 70c2d411ae
commit b11797ea1c
+7 -5
View File
@@ -453,11 +453,13 @@ impl Agent {
pub fn continuation_prompt(&self) -> String { pub fn continuation_prompt(&self) -> String {
self.config.continuation_prompt.clone().unwrap_or_else(|| { self.config.continuation_prompt.clone().unwrap_or_else(|| {
"[SYSTEM REMINDER - TODO CONTINUATION]\n\ formatdoc! {"
You have incomplete tasks in your todo list. \ [SYSTEM REMINDER - TODO CONTINUATION]
Continue with the next pending item. \ You have incomplete tasks. Rules:
Call tools immediately. Do not explain what you will do." 1. BEFORE marking a todo done: verify the work compiles/works. No premature completion.
.to_string() 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."}
}) })
} }