Skip to content

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

chore(tools): remove disabled lsp and worker-thread tools

Steven Enamakel66d71e7de2f7
diff --git a/crates/openhuman-core/src/agent/orchestration/tools.rs b/crates/openhuman-core/src/agent/orchestration/tools.rs
index 67b81f2222..b5f9b57e2d 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools.rs
@@ -5,8 +5,7 @@
//! `spawn_parallel_agents`.
//! - **Control**: `steer_subagent`, `continue_subagent`, `close_subagent`,
//! `wait_subagent`, `wait` / `wait_loop`, `list_subagents`.
-//! - **Delegation**: `DelegateGraphTool`, `ArchetypeDelegationTool`,
-//! and `CollapsedDelegationTool` (`delegate_to`).
+//! - **Delegation**: `DelegateGraphTool` and `ArchetypeDelegationTool`.
//!
//! TinyAgents owns generic control operations; the host control module keeps
//! the product declarations and projections. Worker-thread persistence lives
@@ -20,8 +19,6 @@
mod archetype_delegation;
#[path = "tools/awaiting_user.rs"]
pub(crate) mod awaiting_user;
-#[path = "tools/collapsed_delegation_host.rs"]
-mod collapsed_delegation;
#[path = "tools/continue_subagent_host.rs"]
mod continue_subagent;
#[path = "tools/delegate_graph.rs"]
@@ -67,7 +64,6 @@ pub(crate) fn live_parent_run_context(
}
pub use archetype_delegation::{ArchetypeDelegationTool, DelegationTarget};
-pub use collapsed_delegation::{CollapsedDelegationTool, DelegateTarget, DELEGATE_TO_TOOL_NAME};
pub(crate) use continue_subagent::ContinueSubagentDispatch;
pub use continue_subagent::ContinueSubagentTool;
pub(crate) use delegate_graph::DelegateGraphDispatch;
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/subagent_dispatch_host.rs b/crates/openhuman-core/src/agent/orchestration/tools/subagent_dispatch_host.rs
index 4124c84cbc..d085d17d9e 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/subagent_dispatch_host.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/subagent_dispatch_host.rs
@@ -27,9 +27,6 @@ pub(crate) struct DelegationDispatch {
}
enum DelegationDispatchKind {
- Collapsed {
- targets: Result<Vec<super::collapsed_delegation::DelegateTarget>, String>,
- },
Archetype {
agent_id: String,
},
@@ -41,13 +38,6 @@ impl DelegationDispatch {
delegation_target: Option<String>,
) -> Option<Self> {
let kind = match tool.name() {
- super::collapsed_delegation::DELEGATE_TO_TOOL_NAME => {
- DelegationDispatchKind::Collapsed {
- targets: super::collapsed_delegation::dispatch_targets_from_schema(
- &tool.parameters_schema(),
- ),
- }
- }
// The target is carried by the registered host extension, not
// inferred from an ambient registry or a tool's spelling. This
// keeps hidden packed delegates scoped to the catalogue that
@@ -83,24 +73,6 @@ impl ToolDispatch<(), crate::agent::tinyagents::host::OpenHumanRunContext> for D
let tool_context = ToolExecutionContext::from_run_context(parent, _call_id.clone());
let child = parent.data.child();
match &self.kind {
- DelegationDispatchKind::Collapsed { targets } => {
- let targets = match targets {
- Ok(targets) => targets,
- Err(reason) => {
- return Ok(ToolResult::error(format!(
- "delegate_to: invalid advertised target mapping: {reason}"
- )));
- }
- };
- super::collapsed_delegation::execute_collapsed_delegation_with_live_parent(
- targets,
- arguments,
- Some(&tool_context),
- child,
- Some(parent),
- )
- .await
- }
DelegationDispatchKind::Archetype { agent_id } => {
super::archetype_delegation::execute_archetype_delegation_with_live_parent(
agent_id,
diff --git a/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs b/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs
index f2346db5de..cde5af829c 100644
--- a/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs
@@ -28,7 +28,6 @@ use crate::agent::tinyagents::turn_policy::is_subagent_spawn_or_delegate_tool;
use crate::agent::tools::TodoToolDispatch;
use crate::core::runtime::CoreContext;
use crate::tools::delegate::DelegateToolDispatch;
-use crate::tools::implementations::threads::SpawnWorkerThreadDispatch;
pub(crate) type RegisteredToolDispatch = Arc<dyn ToolDispatch<(), OpenHumanRunContext>>;
@@ -120,7 +119,6 @@ pub(crate) fn typed_dispatch_for(
let dispatch: Arc<dyn ToolDispatch<(), OpenHumanRunContext>> = match name {
"spawn_parallel_agents" => Arc::new(SpawnParallelAgentsDispatch::new(adapter)),
"spawn_async_subagent" => Arc::new(SpawnAsyncSubagentDispatch::new(adapter)),
- "spawn_worker_thread" => Arc::new(SpawnWorkerThreadDispatch::new(adapter)),
"spawn_subagent" => Arc::new(SpawnSubagentDispatch::new(adapter)),
"continue_subagent" => Arc::new(ContinueSubagentDispatch::new(adapter)),
"delegate_graph" => Arc::new(DelegateGraphDispatch::new(adapter)),
diff --git a/crates/openhuman-core/src/tools/impl/system/mod.rs b/crates/openhuman-core/src/tools/impl/system/mod.rs
index f87cbce13f..9b0a559c8e 100644
--- a/crates/openhuman-core/src/tools/impl/system/mod.rs
+++ b/crates/openhuman-core/src/tools/impl/system/mod.rs
@@ -4,7 +4,6 @@
//! `tools/impl/README.md`.
mod install_tool;
-mod lsp;
mod proxy_config;
mod retrieve_tool_output;
mod schedule;
@@ -20,7 +19,6 @@ use crate::tools::implementations::filesystem::gate::security_scoped_to_root;
use tinytools::ToolRunContext;
pub use install_tool::InstallToolTool;
-pub use lsp::{lsp_capability_enabled, LspTool, LSP_ENABLED_ENV};
pub use proxy_config::ProxyConfigTool;
pub use retrieve_tool_output::{retrieve_tool_output_tool, RetrieveToolOutputTool};
pub use schedule::ScheduleTool;
diff --git a/crates/openhuman-core/src/tools/impl/threads/mod.rs b/crates/openhuman-core/src/tools/impl/threads/mod.rs
index a898fb286c..922f0bb0b4 100644
--- a/crates/openhuman-core/src/tools/impl/threads/mod.rs
+++ b/crates/openhuman-core/src/tools/impl/threads/mod.rs
@@ -1,6 +1 @@
//! Agent tools that create or operate on persistent worker threads.
-
-mod spawn_worker_thread;
-
-pub(crate) use spawn_worker_thread::SpawnWorkerThreadDispatch;
-pub use spawn_worker_thread::SpawnWorkerThreadTool;
diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rs
index d217f6f98d..8a9596f0e9 100644
--- a/crates/openhuman-core/src/tools/ops.rs
+++ b/crates/openhuman-core/src/tools/ops.rs
@@ -510,17 +510,6 @@ pub fn all_tools_with_runtime(
tools.extend(composio_tools);
}
- // Coding-harness `lsp` tool (issue #1205) — capability-gated by the
- // OPENHUMAN_LSP_ENABLED env var. The backend (real language-server
- // bridge) is a follow-up; today the gate just controls visibility
- // so agents don't see a method that always errors.
- if crate::tools::implementations::lsp_capability_enabled() {
- tools.push(Box::new(crate::tools::implementations::LspTool::new()));
- tracing::debug!("[lsp] capability gate on — LspTool registered");
- } else {
- tracing::debug!("[lsp] capability gate off (set OPENHUMAN_LSP_ENABLED=1 to register)");
- }
-
// Registered tool sources placed at the end of the catalogue
// (`tools::sources`), after every built-in and before the filters below,
// so they are gated exactly like built-ins. Nothing registered => nothing
diff --git a/crates/openhuman-core/src/tools/orchestrator_tools.rs b/crates/openhuman-core/src/tools/orchestrator_tools.rs
index 170eb1721d..e37ac30af4 100644
--- a/crates/openhuman-core/src/tools/orchestrator_tools.rs
+++ b/crates/openhuman-core/src/tools/orchestrator_tools.rs
@@ -37,12 +37,8 @@ use crate::integrations::composio::ComposioActionTool;
use crate::integrations::ConnectedIntegration;
use tinyagents_definition::SubagentEntry;
-// SpawnWorkerThreadTool import kept commented while the worker-thread spawn is
-// temporarily disabled (see tinyhumansai/openhuman#1624).
use crate::agent::orchestration::tools::ArchetypeDelegationTool;
use crate::agent::orchestration::tools::DelegationTarget;
-#[allow(unused_imports)]
-use crate::tools::implementations::threads::SpawnWorkerThreadTool;
use tinytools::Tool;
/// Synthesise the delegation tool list for an agent based on its
@@ -78,14 +74,6 @@ pub fn collect_orchestrator_tools(
) -> Vec<Box<dyn Tool>> {
let mut tools: Vec<Box<dyn Tool>> = Vec::new();
- // Orchestrator-only tool: spawn_worker_thread.
- // Temporarily disabled — worker threads do not yet have a proper UI
- // showcase (see tinyhumansai/openhuman#1624). Re-enable once the
- // dedicated worker-thread surface lands.
- // if definition.id == "orchestrator" {
- // tools.push(Box::new(SpawnWorkerThreadTool::new()));
- // }
-
for entry in &definition.subagents {
match entry {
SubagentEntry::AgentId(agent_id) => {