Skip to content

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

refactor(agent): remove delegate tool from checks

Steven Enamakeld7f602a0d8d1
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.rs
index 2fd1bb8139..d69b269d86 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
@@ -13,7 +13,6 @@ fn child_tool_surface_never_contains_any_spawn_or_continuation_tool() {
.iter()
.copied()
.chain([
- "delegate",
"delegate_researcher",
"continue_subagent",
])
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_policy.rs b/crates/openhuman-core/src/agent/tinyagents/turn_policy.rs
index 542a3e59f4..0d9c5bca64 100644
--- a/crates/openhuman-core/src/agent/tinyagents/turn_policy.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/turn_policy.rs
@@ -155,10 +155,10 @@ pub(crate) fn tool_call_limit(max_iterations: usize, cap: Option<usize>) -> usiz
/// must never be able to invoke (issue #4452), re-asserted at registration as
/// defense-in-depth so a misconfigured allowlist cannot reintroduce sub-agent
/// spawning into a nested run. It shares TinyAgents' canonical spawn names and
-/// the host's fixed delegation controls; the caller-side strip additionally
+/// the host's fixed continuation control; the caller-side strip additionally
/// resolves unprefixed `delegate_name` overrides through the registry.
pub(crate) fn is_subagent_spawn_or_delegate_tool(name: &str) -> bool {
- const HOST_SPAWN_TOOL_NAMES: &[&str] = &["delegate", "continue_subagent"];
+ const HOST_SPAWN_TOOL_NAMES: &[&str] = &["continue_subagent"];
tinyagents_definition::SPAWN_TOOL_NAMES.contains(&name)
|| HOST_SPAWN_TOOL_NAMES.contains(&name)
diff --git a/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs b/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs
index 08d32ef9bd..802753e2db 100644
--- a/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs
+++ b/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs
@@ -81,7 +81,6 @@ fn tool_group_classifies_gate_and_harness_families() {
"ask_user_clarification",
"wait",
"wait_loop",
- "delegate",
"todo",
] {
assert_eq!(tool_group(name), DomainGroup::Agent);