The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(subagent_host): reformat prompt and test call sites
Steven Enamakel07a9497df8bd
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/prompt.rs b/crates/openhuman-core/src/agent/subagent_host/ops/prompt.rsindex 53377218f6..a63a328031 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/prompt.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/prompt.rs@@ -28,11 +28,7 @@ pub(crate) fn compose_subagent_system_prompt(let framed = format!("{}\n\n{}",base_prompt.trim_end(),- tinyagents_orchestration::subagent::subagent_framing(- role,- spawn_depth,- task_prompt,- )+ tinyagents_orchestration::subagent::subagent_framing(role, spawn_depth, task_prompt,));append_artifact_offload_contract(framed, agent_id, visible_tool_names)}diff --git a/crates/openhuman-core/src/agent/subagent_host/tool_prep_recovery_visibility_tests_tests.rs b/crates/openhuman-core/src/agent/subagent_host/tool_prep_recovery_visibility_tests_tests.rsindex 0e36a4ceaa..d48a0cbe91 100644--- a/crates/openhuman-core/src/agent/subagent_host/tool_prep_recovery_visibility_tests_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/tool_prep_recovery_visibility_tests_tests.rs@@ -68,7 +68,7 @@ fn parent_visibility_caps_wildcard_child_scope() {let mut idx = filter_tool_indices(&t, &ToolScope::Wildcard, &[], None);let parent_visible = ["current_time".to_string()].into_iter().collect();- retain_parent_visible_tool_indices(&mut idx, &t, &parent_visible);+ retain_parent_visible_tool_indices(&mut idx, &t, &parent_visible, false);assert_eq!(names(&idx, &t), vec!["current_time".to_string()]);}diff --git a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rsindex 43f98b73cd..1689b071a7 100644--- a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs@@ -45,14 +45,17 @@ fn explicitly_scoped_nested_spawn_is_retained_only_with_host_grant() {vec![0],"an explicit host grant should preserve the definition's named spawn tool");- assert!(filter_tool_indices_with_nested_spawn(- &tools,- &scope,- &["spawn_subagent".to_owned()],- None,- true,- )- .is_empty(), "the definition denylist must still win over the grant");+ assert!(+ filter_tool_indices_with_nested_spawn(+ &tools,+ &scope,+ &["spawn_subagent".to_owned()],+ None,+ true,+ )+ .is_empty(),+ "the definition denylist must still win over the grant"+ );}#[test]