Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(subagent-host): make spawn depth required in system prompt

Steven Enamakel4c932ac67e90
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/prompt.rs b/crates/openhuman-core/src/agent/subagent_host/ops/prompt.rs
index 739ed9063e..cc8fac677e 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/prompt.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/prompt.rs
@@ -16,7 +16,7 @@ pub(crate) fn compose_subagent_system_prompt(
agent_id: &str,
visible_tool_names: &HashSet<String>,
task_prompt: &str,
- spawn_depth: Option<usize>,
+ spawn_depth: usize,
) -> String {
let framed = format!(
"{}\n\n{}",
diff --git a/scripts/ci/check-openhuman-rust-layout.mjs b/scripts/ci/check-openhuman-rust-layout.mjs
index 8992330815..a517db4824 100644
--- a/scripts/ci/check-openhuman-rust-layout.mjs
+++ b/scripts/ci/check-openhuman-rust-layout.mjs
@@ -34,7 +34,7 @@ const LEGACY_LIMIT_ENTRIES = [
// a follow-up without reintroducing an old harness/session exception.
["crates/openhuman-core/src/agent/session_host/builder/factory.rs", 964],
["crates/openhuman-core/src/agent/subagent_host/lifecycle.rs", 754],
- ["crates/openhuman-core/src/agent/subagent_host/ops/runner.rs", 1041],
+ ["crates/openhuman-core/src/agent/subagent_host/ops/runner.rs", 1040],
["crates/openhuman-core/src/web_chat/progress_bridge.rs", 1117],
// These established external test modules grew with upstream coverage. Pin
// their current sizes while follow-up work separates their test concerns.