fix: Improved continuation prompt to not make broad todo-items
This commit is contained in:
+7
-5
@@ -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."}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user