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
chore: files changed crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_surface.rs,c
Steven Enamakel64a1cb5a9cd0
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_surface.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_surface.rsindex 32aac6b4d0..81492d21a8 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_surface.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_surface.rs@@ -122,7 +122,7 @@ async fn steer_reusable_session(.as_ref().ok_or_else(|| "reusable async subagent has no durable parent".to_owned())?;let thread_id = parent.thread_id().map(|id| id.as_str().to_owned());- let owner = crate::agent::tinyagents::tool_registration::subagent_owner_key(+ let owner = context.subagent_owner_scope(&product_parent.workspace_dir,&product_parent.session_id,thread_id.as_deref(),diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rsindex 86bededf6d..597a796709 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs@@ -337,7 +337,7 @@ async fn invoke_driver_tool_with_request(.as_ref().map(|context| context.workspace_dir.as_path()).unwrap_or_else(|| std::path::Path::new(""));- let owner = crate::agent::tinyagents::tool_registration::subagent_owner_key(+ let owner = parent.data.subagent_owner_scope(owner_workspace,&parent_session,thread_id.as_deref(),diff --git a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rsindex 1311b74357..a52d4a2197 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/run_context.rs@@ -393,6 +393,28 @@ impl OpenHumanRunContext {}}+ /// Returns the registry owner for a spawn. Headless turns retain one+ /// root-scoped owner across native child thread identities so settlement+ /// can see the complete descendant tree. Ordinary chat remains scoped to+ /// the immediate parent session and thread.+ pub(crate) fn subagent_owner_scope(+ &self,+ workspace: &std::path::Path,+ parent_session: &str,+ thread_id: Option<&str>,+ ) -> String {+ if self.headless_descendant_settlement {+ if let Some(owner) = &self.headless_descendant_owner {+ return owner.clone();+ }+ }+ crate::agent::tinyagents::tool_registration::subagent_owner_key(+ workspace,+ parent_session,+ thread_id,+ )+ }+/// Pins the harness tool dialect to the one the session prompt speaks.#[must_use]pub(crate) fn with_tool_dialect(