From 4652c65133ae5bcdfef1d221fbb23602971c8449 Mon Sep 17 00:00:00 2001 From: TheArchitectit Date: Tue, 28 Apr 2026 14:55:20 -0500 Subject: [PATCH] fix: default to 2x team mode when no mode or tasks provided Instead of erroring when neither mode nor tasks are specified, default to "2x" (2 Explore + 2 Plan + 2 Verification = 6 agents). Co-authored-by: GLM 5.1 FP8 via Crush --- rust/crates/tools/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rust/crates/tools/src/lib.rs b/rust/crates/tools/src/lib.rs index a13bef4d..1605bc78 100644 --- a/rust/crates/tools/src/lib.rs +++ b/rust/crates/tools/src/lib.rs @@ -1839,11 +1839,12 @@ fn run_team_create(input: TeamCreateInput) -> Result { let team_dir = output_dir.join("teams"); std::fs::create_dir_all(&team_dir).map_err(|e| e.to_string())?; - // Expand mode preset into tasks, or use manual tasks + // Expand mode preset into tasks, or use manual tasks. + // Default to "2x" when neither mode nor tasks are provided. let tasks = if let Some(mode) = &input.mode { expand_team_mode(mode, input.prompt.as_deref().unwrap_or("Explore the codebase and report findings"))? } else if input.tasks.is_empty() { - return Err("either 'mode' or 'tasks' must be provided".to_string()); + expand_team_mode("2x", input.prompt.as_deref().unwrap_or("Explore the codebase and report findings"))? } else { input.tasks.clone() };