diff --git a/crates/agent/src/thread.rs b/crates/agent/src/thread.rs index 2700235be77e624ba2944215924da95c6bffd17e..f48e11d6c09da2a3ed3286b7f68b6b59f03fdb51 100644 --- a/crates/agent/src/thread.rs +++ b/crates/agent/src/thread.rs @@ -60,7 +60,7 @@ use uuid::Uuid; const TOOL_CANCELED_MESSAGE: &str = "Tool canceled by user"; pub const MAX_TOOL_NAME_LENGTH: usize = 64; -pub const MAX_SUBAGENT_DEPTH: u8 = 4; +pub const MAX_SUBAGENT_DEPTH: u8 = 1; /// Context passed to a subagent thread for lifecycle management #[derive(Clone, Debug, Serialize, Deserialize)]