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(agent): remove parallel agent spawning functionality
Steven Enamakel86eedbc2a94c
diff --git a/crates/openhuman-core/src/agent/orchestration/mod.rs b/crates/openhuman-core/src/agent/orchestration/mod.rsindex c1156c4457..9df00d63dc 100644--- a/crates/openhuman-core/src/agent/orchestration/mod.rs+++ b/crates/openhuman-core/src/agent/orchestration/mod.rs@@ -24,11 +24,9 @@ pub(crate) mod fleet_tools;#[path = "parent_context/builder.rs"]pub(crate) mod parent_context;pub(crate) mod running_subagents;-pub(crate) mod spawn_parallel;pub(crate) mod subagent_events;pub(crate) mod subagent_sessions;pub mod tools;-pub mod worktree;#[cfg(test)]#[path = "background_completions_tenant_tests.rs"]@@ -43,4 +41,3 @@ mod background_delivery_tenant_tests;pub async fn release_background_completion_stores() -> usize {background_completions::release_all().await}-pub use worktree::OpenHumanWorktreeIsolation;diff --git a/crates/openhuman-core/src/agent/orchestration/tools.rs b/crates/openhuman-core/src/agent/orchestration/tools.rsindex b5f9b57e2d..7f4f797fe7 100644--- a/crates/openhuman-core/src/agent/orchestration/tools.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools.rs@@ -1,8 +1,7 @@//! Declares OpenHuman's product orchestration surfaces over TinyAgents.//!//! Tools, by role:-//! - **Spawn**: `spawn_subagent`, `spawn_async_subagent`,-//! `spawn_parallel_agents`.+//! - **Spawn**: `spawn_subagent` and `spawn_async_subagent`.//! - **Control**: `steer_subagent`, `continue_subagent`, `close_subagent`,//! `wait_subagent`, `wait` / `wait_loop`, `list_subagents`.//! - **Delegation**: `DelegateGraphTool` and `ArchetypeDelegationTool`.@@ -27,8 +26,6 @@ mod delegate_graph;mod dispatch;#[path = "tools/spawn_async_subagent_surface.rs"]mod spawn_async_subagent;-#[path = "tools/spawn_parallel_agents.rs"]-mod spawn_parallel_agents;#[path = "tools/spawn_subagent_surface.rs"]mod spawn_subagent;#[path = "tools/subagent_abort_report.rs"]@@ -70,7 +67,5 @@ pub(crate) use delegate_graph::DelegateGraphDispatch;pub use delegate_graph::DelegateGraphTool;pub(crate) use spawn_async_subagent::SpawnAsyncSubagentDispatch;pub use spawn_async_subagent::{scope_spawn_async_subagent_spec, SpawnAsyncSubagentTool};-pub(crate) use spawn_parallel_agents::SpawnParallelAgentsDispatch;-pub use spawn_parallel_agents::SpawnParallelAgentsTool;pub(crate) use spawn_subagent::SpawnSubagentDispatch;pub use spawn_subagent::SpawnSubagentTool;diff --git a/crates/openhuman-core/src/agent/registration.rs b/crates/openhuman-core/src/agent/registration.rsindex cde2154394..785073bc2a 100644--- a/crates/openhuman-core/src/agent/registration.rs+++ b/crates/openhuman-core/src/agent/registration.rs@@ -2,7 +2,7 @@use super::orchestration::tools::{CloseSubagentTool, ContinueSubagentTool, DelegateGraphTool, ListSubagentsTool,- SpawnAsyncSubagentTool, SpawnParallelAgentsTool, SpawnSubagentTool, SteerSubagentTool,+ SpawnAsyncSubagentTool, SpawnSubagentTool, SteerSubagentTool,WaitSubagentTool,};use super::tools::{PlanExitTool, TodoTool};@@ -45,7 +45,6 @@ pub(crate) fn dialogue_tools(action_dir: &Path, root_config: &Config) -> Vec<BoxBox::new(WaitSubagentTool::new()),Box::new(CloseSubagentTool::new()),Box::new(ContinueSubagentTool::new()),- Box::new(SpawnParallelAgentsTool::new()),// Multi-stage durable delegation (issue #4249, Phase 3): runs the chosen// sub-agent through the tinyagents plan→execute→review→finalize graph,// checkpointed to the session DB. Heavier than spawn_subagent; fordiff --git a/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs b/crates/openhuman-core/src/agent/tinyagents/tool_registration.rsindex 720598f460..3013eb75f4 100644--- a/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs+++ b/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs@@ -20,7 +20,7 @@ use tinytools::{Tool, ToolCallOptions, ToolResult, ToolRunContext};use crate::agent::orchestration::tools::{ContinueSubagentDispatch, DelegateGraphDispatch, DelegationDispatch,- SpawnAsyncSubagentDispatch, SpawnParallelAgentsDispatch, SpawnSubagentDispatch,+ SpawnAsyncSubagentDispatch, SpawnSubagentDispatch,};use crate::agent::tinyagents::host::run_context::HostOperationContext;use crate::agent::tinyagents::host::OpenHumanRunContext;@@ -117,7 +117,6 @@ pub(crate) fn typed_dispatch_for(delegation_target: Option<String>,) -> Option<Arc<dyn ToolDispatch<(), OpenHumanRunContext>>> {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_subagent" => Arc::new(SpawnSubagentDispatch::new(adapter)),"continue_subagent" => Arc::new(ContinueSubagentDispatch::new(adapter)),diff --git a/crates/openhuman-core/src/agent_runs/mod.rs b/crates/openhuman-core/src/agent_runs/mod.rsindex ae23072692..d5288499cc 100644--- a/crates/openhuman-core/src/agent_runs/mod.rs+++ b/crates/openhuman-core/src/agent_runs/mod.rs@@ -6,7 +6,6 @@ pub(crate) mod replay;mod schemas;pub(crate) mod subagent_control;mod subagent_finalize;-pub(crate) mod worktree_schemas;pub(crate) use command_center::{all_command_center_controller_schemas, all_command_center_registered_controllers,@@ -16,10 +15,6 @@ pub(crate) use subagent_control::{all_controller_schemas as all_subagent_control_controller_schemas,all_registered_controllers as all_subagent_control_registered_controllers,};-pub(crate) use worktree_schemas::{- all_controller_schemas as all_worktree_controller_schemas,- all_registered_controllers as all_worktree_registered_controllers,-};/// Registers the agent-run lifecycle projection for detached sub-agent events.pub(crate) fn register_subagent_finalize_subscriber(config: &crate::config::Config) {@@ -31,7 +26,6 @@ pub(crate) fn all_orchestration_registered_controllers() -> Vec<crate::core::all::RegisteredController> {let mut controllers = Vec::new();controllers.extend(all_command_center_registered_controllers());- controllers.extend(all_worktree_registered_controllers());controllers.extend(all_subagent_control_registered_controllers());controllers}@@ -40,7 +34,6 @@ pub(crate) fn all_orchestration_registered_controllers(pub(crate) fn all_orchestration_controller_schemas() -> Vec<crate::core::ControllerSchema> {let mut schemas = Vec::new();schemas.extend(all_command_center_controller_schemas());- schemas.extend(all_worktree_controller_schemas());schemas.extend(all_subagent_control_controller_schemas());schemas}diff --git a/crates/openhuman-core/src/tools/ops_tool_groups.rs b/crates/openhuman-core/src/tools/ops_tool_groups.rsindex 528b103a2c..b6e8d43113 100644--- a/crates/openhuman-core/src/tools/ops_tool_groups.rs+++ b/crates/openhuman-core/src/tools/ops_tool_groups.rs@@ -148,7 +148,6 @@ pub(crate) fn tool_group(name: &str) -> crate::core::all::DomainGroup {| "wait_loop"| "request_plan_review"| "plan_exit"- | "spawn_parallel_agents"){return DomainGroup::Agent;diff --git a/crates/openhuman-core/src/tools/toolpacks/registry.rs b/crates/openhuman-core/src/tools/toolpacks/registry.rsindex 6698d6dea9..d7c6303918 100644--- a/crates/openhuman-core/src/tools/toolpacks/registry.rs+++ b/crates/openhuman-core/src/tools/toolpacks/registry.rs@@ -387,7 +387,7 @@ pub const PACKS: &[ToolPack] = &[/// because they look like an obvious 1.6k-token candidate.////// `steer_subagent`, `wait_subagent`, `close_subagent`, `list_subagents`,-/// `continue_subagent`, `wait`, `wait_loop` and `spawn_parallel_agents` are+/// `continue_subagent`, `wait`, and `wait_loop` are/// needed *reactively*, mid-turn — exactly when an async worker returns or/// pauses on `ask_user_clarification`. A load round-trip at that moment is the/// worst possible time to add one, and a `continue_subagent` the model cannot@@ -403,7 +403,6 @@ pub(crate) const DELIBERATELY_UNPACKED_FLEET_TOOLS: &[&str] = &["continue_subagent","wait","wait_loop",- "spawn_parallel_agents",];/// The lookup surface over [`PACKS`] handed to the generic `use_skill` tool