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(subagent_host): improve local directory resolution for agent prompts
Steven Enamakelec761f4c359b
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rsindex 40ee472ed9..d7ae735fd3 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs@@ -571,7 +571,12 @@ async fn run_typed_mode(// (not per turn) keeps the sub-agent system// prompt byte-stable for prefix caching.let agents_md = if parent.agent_config.agents_md_enabled {- let local_dir = config.as_ref().ok().map(|c| c.action_dir.clone());+ let local_dir = options+ .workspace_descriptor+ .as_ref()+ .or(parent.workspace_descriptor.as_ref())+ .map(|descriptor| descriptor.root.clone())+ .or_else(|| config.as_ref().ok().map(|c| c.action_dir.clone()));match local_dir {Some(dir) => crate::agent::prompts::load_agents_md_layers(&parent.workspace_dir, &dir),None => {