Skip to content

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

feat(agent): add subagent continuation and spawn tools

Steven Enamakela1b09f7918d6
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent.rs
index 98a22a62ce..99c35186bb 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent.rs
@@ -598,7 +598,7 @@ impl ContinueSubagentTool {
worktree_path: None,
changed_files: Vec::new(),
dirty_status: None,
- stop: super::incomplete_stop(&reason),
+ stop: crate::agent::orchestration::tools::dispatch::incomplete_stop(&reason),
})
.await;
}
@@ -615,7 +615,7 @@ impl ContinueSubagentTool {
user, or take a different approach.",
outcome.task_id, outcome.agent_id, outcome.output,
);
- Ok(super::stopped_subagent_result(
+ Ok(crate::agent::orchestration::tools::dispatch::stopped_subagent_result(
"continue_subagent",
&outcome.agent_id,
&outcome.task_id,
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs
index 27cae36c46..c1bd6b248d 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs
@@ -482,7 +482,7 @@ impl SpawnSubagentTool {
worktree_path: None,
changed_files: Vec::new(),
dirty_status: None,
- stop: super::incomplete_stop(&reason),
+ stop: crate::agent::orchestration::tools::dispatch::incomplete_stop(&reason),
})
.await;
}
@@ -501,7 +501,7 @@ impl SpawnSubagentTool {
delegation unchanged.",
outcome.task_id, outcome.agent_id, outcome.output,
);
- Ok(super::stopped_subagent_result(
+ Ok(crate::agent::orchestration::tools::dispatch::stopped_subagent_result(
"spawn_subagent",
&outcome.agent_id,
&outcome.task_id,