From 016ee8055451fb4b7d568a8b52da77184435e58f Mon Sep 17 00:00:00 2001 From: Dhanji Prasanna Date: Sat, 27 Sep 2025 14:28:13 +1000 Subject: [PATCH] cap total subtasks --- crates/g3-core/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/g3-core/src/lib.rs b/crates/g3-core/src/lib.rs index 974175c..6eddc8e 100644 --- a/crates/g3-core/src/lib.rs +++ b/crates/g3-core/src/lib.rs @@ -425,7 +425,7 @@ impl Agent { // Create a specific prompt to split the task let split_prompt = format!( - "Analyze this request and split it into smaller tasks. \ + "Analyze this request and split it into coarse-grained sub-tasks. \ If the request is already simple enough, just return it as is. \ Do not add numbering, bullets, or any other formatting - just the tasks, one per line.\n\n\ Request: {}\n\n\ @@ -436,7 +436,7 @@ impl Agent { let messages = vec![ Message { role: MessageRole::System, - content: "You are a task decomposition assistant. Break down complex requests into logical sub-tasks.".to_string(), + content: "You are a task decomposition assistant. Break down complex requests into coarse-grained logical sub-tasks, no more than 6.".to_string(), }, Message { role: MessageRole::User,