Skip to content

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

refactor(tools): remove delegate tool integration

Steven Enamakeld5cd68ffbeae
diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rs
index 8a9596f0e9..9fe098cb9c 100644
--- a/crates/openhuman-core/src/tools/ops.rs
+++ b/crates/openhuman-core/src/tools/ops.rs
@@ -1,11 +1,9 @@
#[cfg(feature = "mcp")]
use super::implementations::network::{McpListServersTool, McpListToolsTool};
use super::*;
-use crate::config::{Config, DelegateAgentConfig};
+use crate::config::Config;
use crate::modules::tinybox::host_runtime::{NativeRuntime, RuntimeAdapter};
use crate::security::{AuditLogger, SecurityPolicy};
-use crate::tools::delegate::DelegateTool;
-use std::collections::HashMap;
use std::sync::Arc;
use tinyagents_harness::tools::{CurrentTimeTool, ResolveTimeTool};
use tinytools::Tool;
@@ -54,7 +52,6 @@ pub fn all_tools(
browser_config: &crate::config::BrowserConfig,
http_config: &crate::config::HttpRequestConfig,
action_dir: &std::path::Path,
- agents: &HashMap<String, DelegateAgentConfig>,
root_config: &crate::config::Config,
) -> Vec<Box<dyn Tool>> {
all_tools_with_runtime(
@@ -65,7 +62,6 @@ pub fn all_tools(
browser_config,
http_config,
action_dir,
- agents,
root_config,
None,
)
@@ -82,7 +78,6 @@ pub fn all_tools_with_runtime(
browser_config: &crate::config::BrowserConfig,
http_config: &crate::config::HttpRequestConfig,
action_dir: &std::path::Path,
- agents: &HashMap<String, DelegateAgentConfig>,
root_config: &crate::config::Config,
approval_workspace_root: Option<&std::path::Path>,
) -> Vec<Box<dyn Tool>> {
@@ -471,34 +466,6 @@ pub fn all_tools_with_runtime(
// Image metadata is always available for user-provided images.
tools.push(Box::new(ImageInfoTool::new(security.clone())));
- // Add delegation tool when agents are configured
- if !agents.is_empty() {
- let delegate_agents: HashMap<String, DelegateAgentConfig> = agents
- .iter()
- .map(|(name, cfg)| (name.clone(), cfg.clone()))
- .collect();
- tools.push(Box::new(DelegateTool::new_with_options(
- delegate_agents,
- security.clone(),
- crate::inference::provider::ProviderRuntimeOptions {
- auth_profile_override: None,
- openhuman_dir: root_config
- .config_path
- .parent()
- .map(std::path::PathBuf::from),
- secrets_encrypt: root_config.secrets.encrypt,
- reasoning_enabled: root_config.runtime.reasoning_enabled,
- },
- )));
- }
-
- // Sources placed after the delegation tool (a host's place and market-data
- // tools), ahead of the Composio tools.
- tools.extend(crate::tools::sources::build_registered_tool_sources(
- &source_ctx,
- Some(crate::tools::sources::ANCHOR_AFTER_DELEGATE),
- ));
-
let composio_tools = crate::integrations::composio::all_composio_agent_tools(root_config);
if composio_tools.is_empty() {
tracing::debug!("[integrations] composio unavailable — skipping");