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 Enamakel78d36720bb14
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 99c35186bb..7558863483 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent.rs
@@ -10,6 +10,7 @@
use crate::agent::harness::definition::AgentDefinitionRegistry;
use crate::agent::progress::AgentProgress;
+use crate::agent::orchestration::tools::dispatch::{incomplete_stop, stopped_subagent_result};
use crate::agent::subagent_host::{
continue_subagent, continue_subagent_with_parent, load_subagent_checkpoint, SubagentRunOptions,
SubagentRunStatus,
@@ -598,7 +599,7 @@ impl ContinueSubagentTool {
worktree_path: None,
changed_files: Vec::new(),
dirty_status: None,
- stop: crate::agent::orchestration::tools::dispatch::incomplete_stop(&reason),
+ stop: incomplete_stop(&reason),
})
.await;
}
@@ -615,7 +616,7 @@ impl ContinueSubagentTool {
user, or take a different approach.",
outcome.task_id, outcome.agent_id, outcome.output,
);
- Ok(crate::agent::orchestration::tools::dispatch::stopped_subagent_result(
+ Ok(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 c1bd6b248d..b6aa076b8f 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: crate::agent::orchestration::tools::dispatch::incomplete_stop(&reason),
+ stop: incomplete_stop(&reason),
})
.await;
}
@@ -501,7 +501,7 @@ impl SpawnSubagentTool {
delegation unchanged.",
outcome.task_id, outcome.agent_id, outcome.output,
);
- Ok(crate::agent::orchestration::tools::dispatch::stopped_subagent_result(
+ Ok(stopped_subagent_result(
"spawn_subagent",
&outcome.agent_id,
&outcome.task_id,