Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

agent: Change max subagent depth to 1 for now (#49704)

Ben Brandt35f9c640eea3
diff --git a/crates/agent/src/thread.rs b/crates/agent/src/thread.rs
index 2700235be77..f48e11d6c09 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)]