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
fix(subagent): report lineage depth in subagent run started events
Steven Enamakel4f6d4837631d
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter.rsindex 43a35e6428..98a11c93e0 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter.rs@@ -188,6 +188,7 @@ impl SubagentExecutor<crate::agent::tinyagents::host::OpenHumanRunContext> for Omatch invocation {HostInvocation::Agent(definition) => {let native = crate::agent::tinyagents::NativeSubagentRunContext {+ depth: native_run_config.lineage.depth,config: native_run_config,parent_events,name: definition.id.clone(),diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_exec.rs b/crates/openhuman-core/src/agent/tinyagents/turn_exec.rsindex 8bfa137e64..d97dab2c1f 100644--- a/crates/openhuman-core/src/agent/tinyagents/turn_exec.rs+++ b/crates/openhuman-core/src/agent/tinyagents/turn_exec.rs@@ -117,6 +117,7 @@ pub(crate) struct NativeSubagentRunContext {pub config: tinyagents_harness::context::RunConfig,pub parent_events: EventSink,pub name: String,+ pub depth: usize,}impl TurnSpec<'_> {@@ -393,7 +394,7 @@ async fn drive_turn(native.parent_events.emit(tinyagents_harness::events::AgentEvent::SubAgentRunStarted {name: native.name.clone(),- depth: run_context.spawn_depth,+ depth: native.depth,run_id: journal_run_id.clone(),},);