Skip to content

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

fix(orchestration): remove unused spawn_async_subagent module

Steven Enamakel4dcf6aa0f03e
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
index bb225b3386..18f386410e 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
@@ -175,7 +175,7 @@ impl Tool for SpawnAsyncSubagentTool {
},
"toolkit": {
"type": "string",
- "description": "Composio toolkit slug; required when agent_id is `integrations_agent`."
+ "description": "Optional Composio toolkit slug (e.g. `gmail`). Narrows the Connected Integrations section of the sub-agent's prompt to that toolkit."
},
"task_title": {
"type": "string",
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
index 58d7db2693..58aadcda12 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
@@ -91,12 +91,6 @@ impl SpawnAsyncSubagentTool {
)));
}
- if definition.id == "integrations_agent" && toolkit_override.is_none() {
- return Ok(ToolResult::error(
- "spawn_async_subagent(integrations_agent): the `toolkit` argument is required",
- ));
- }
-
let parent_session = parent.session_id.clone();
let progress_sink = parent.on_progress.clone();
let parent_thread_id = tool_context
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_parameters.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_parameters.rs
index 6900f7865b..b9a395a378 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_parameters.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_parameters.rs
@@ -57,7 +57,7 @@ fn spawn_subagent_parameters_schema() -> serde_json::Value {
},
"toolkit": {
"type": "string",
- "description": "Composio toolkit slug to scope this spawn to — e.g. `gmail`, `notion`, `slack`. REQUIRED when `agent_id = \"integrations_agent\"`. Narrows the sub-agent's visible Composio actions AND its Connected Integrations prompt section to only that toolkit's catalogue, so the sub-agent's context window only carries the platform it was asked to operate on. Must match a currently-connected integration (see the Delegation Guide)."
+ "description": "Optional Composio toolkit slug (e.g. `gmail`, `notion`). Narrows the Connected Integrations section of the sub-agent's prompt to that toolkit."
},
"dedicated_thread": {
"type": "boolean",