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 worktree_action_dir from subagent options
Steven Enamakel680704a1ecc6
diff --git a/crates/openhuman-core/src/agent/orchestration/delegation.rs b/crates/openhuman-core/src/agent/orchestration/delegation.rsindex 18f255978e..0a7a4223f9 100644--- a/crates/openhuman-core/src/agent/orchestration/delegation.rs+++ b/crates/openhuman-core/src/agent/orchestration/delegation.rs@@ -323,9 +323,6 @@ fn delegation_subagent_options(workspace_descriptor: Option<WorkspaceDescriptor>,run_context: crate::agent::tinyagents::host::OpenHumanRunContext,) -> SubagentRunOptions {- let worktree_action_dir = workspace_descriptor- .as_ref()- .map(|descriptor| descriptor.root.clone());SubagentRunOptions {skill_filter_override: None,context: None,@@ -336,7 +333,6 @@ fn delegation_subagent_options(worker_thread_id: None,initial_history: None,checkpoint_dir: None,- worktree_action_dir,workspace_descriptor,run_queue: None,message_run_queue: None,diff --git a/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent_host.rs b/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent_host.rsindex dc9519b555..acd0d25905 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent_host.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent_host.rs@@ -417,9 +417,6 @@ impl ContinueSubagentTool {let workspace_descriptor = tool_context.and_then(|ctx| ctx.workspace().cloned()).or_else(|| run_context.workspace.clone());- let worktree_action_dir = workspace_descriptor- .as_ref()- .map(|descriptor| descriptor.root.clone());if let Some(descriptor) = workspace_descriptor.as_ref() {tracing::debug!(task_id = %task_id,@@ -442,7 +439,6 @@ impl ContinueSubagentTool {worker_thread_id: checkpoint.worker_thread_id.clone(),initial_history: None,checkpoint_dir: Some(checkpoint_dir.clone()),- worktree_action_dir,workspace_descriptor,run_queue: None,message_run_queue: None,diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_host_impl.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_host_impl.rsindex 7cdf4ea31d..87352b624b 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_host_impl.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_host_impl.rs@@ -432,9 +432,6 @@ impl SpawnAsyncSubagentTool {worker_thread_id: background_worker_thread_id,initial_history,checkpoint_dir: None,- worktree_action_dir: workspace_descriptor- .as_ref()- .map(|descriptor| descriptor.root.clone()),workspace_descriptor,run_queue: None,message_run_queue: None,diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rsindex 08ab01817c..19c27d4b72 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs@@ -285,9 +285,6 @@ impl SpawnSubagentTool {}let workspace_descriptor = tool_context.and_then(|ctx| ctx.workspace().cloned());- let worktree_action_dir = workspace_descriptor- .as_ref()- .map(|descriptor| descriptor.root.clone());if let Some(descriptor) = workspace_descriptor.as_ref() {tracing::debug!(task_id = %task_id,@@ -312,7 +309,6 @@ impl SpawnSubagentTool {worker_thread_id: worker_thread_id.clone(),initial_history: None,checkpoint_dir: None,- worktree_action_dir,workspace_descriptor,run_queue: None,message_run_queue: None,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.rsindex 6b063448b7..4b0fc50e3f 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@@ -335,9 +335,6 @@ pub(crate) async fn dispatch_subagent_with_live_parent(prompt.chars().count());- let worktree_action_dir = parent_workspace_descriptor- .as_ref()- .map(|descriptor| descriptor.root.clone());if let Some(descriptor) = parent_workspace_descriptor.as_ref() {tracing::debug!(agent_id,@@ -360,7 +357,6 @@ pub(crate) async fn dispatch_subagent_with_live_parent(worker_thread_id: None,initial_history: None,checkpoint_dir: None,- worktree_action_dir,workspace_descriptor: parent_workspace_descriptor,run_queue: None,message_run_queue: None,diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rsindex 882760eb26..a17ad7086e 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs@@ -25,10 +25,9 @@ use crate::agent_registry::host_definition::{AgentDefinition, AgentDefinitionReguse crate::inference::provider::AGENT_TURN_MAX_OUTPUT_TOKENS;use tinyagents_definition::{validate_tier_transition, AgentTier, IterationPolicy, PromptSource,- SandboxMode as AgentSandboxMode,};use tinyagents_harness::context::{current_run_depth, with_run_depth, RunConfig, RunDepth};-use tinytools::{SandboxMode as TinyagentsSandboxMode, ToolSpec, WorkspaceDescriptor};+use tinytools::ToolSpec;use tinytools_std::file_state::with_file_state_agent_id;use super::prompt::compose_subagent_system_prompt;@@ -283,8 +282,8 @@ pub(crate) async fn run_subagent_direct_with_native_context(// tool through HostOperationContext.//let mut parent_for_subagent = parent.clone();- if options.workspace_descriptor.is_some() {- parent_for_subagent.workspace_descriptor = options.workspace_descriptor.clone();+ if let Some(descriptor) = options.workspace_descriptor.clone() {+ parent_for_subagent.workspace_descriptor = Some(descriptor);}let run_result = Box::pin(with_run_depth(RunDepth { depth: attempted_depth, max_depth }, async {with_file_state_agent_id(task_id.clone(), async {diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests_slug_filter_typed_mode_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests_slug_filter_typed_mode_tests.rsindex a0a14c0c34..7516c978c0 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests_slug_filter_typed_mode_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests_slug_filter_typed_mode_tests.rs@@ -173,7 +173,6 @@ async fn typed_mode_returns_text_through_runner() {worker_thread_id: None,initial_history: None,checkpoint_dir: None,- worktree_action_dir: None,run_queue: None,message_run_queue: None,},@@ -404,7 +403,6 @@ async fn typed_mode_filters_tools_by_skill_filter() {worker_thread_id: None,initial_history: None,checkpoint_dir: None,- worktree_action_dir: None,run_queue: None,message_run_queue: None,},