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/flows/tinyflows/caps/agent.rs,crates/openhuman-core/s
Steven Enamakelbffe82c73474
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/agent.rs b/crates/openhuman-core/src/flows/tinyflows/caps/agent.rsindex 693f0dacb3..36ffd46ab2 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/agent.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/agent.rs@@ -116,6 +116,9 @@ fn max_parallel_harness_agents(raw: Option<&str>) -> usize {/// Which execution path an `agent_ref` routes to (see [`OpenHumanAgentRunner`]).#[derive(Debug, Clone, Copy, PartialEq, Eq)]pub(crate) enum AgentRoute {+ /// A host-registered agent (`agent::host_agents`) — run the full agent+ /// tool loop as that agent, with its host tools, in its context.+ HostAgent,/// A harness `AgentDefinition` exists — run the full agent tool loop.Harness,/// No definition; fall back to the custom-registry persona completion.diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/agent_tests.rs b/crates/openhuman-core/src/flows/tinyflows/caps/agent_tests.rsindex 860305b3a6..446e1119be 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/agent_tests.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/agent_tests.rs@@ -28,3 +28,43 @@ async fn production_harness_ceiling_is_open_and_reusable() {drop(held);assert!(!super::HARNESS_AGENT_SLOTS.is_closed());}++// --- host-registered agents (agent::host_agents) ---++struct FlowsHost;++impl crate::agent::host_agents::HostAgentResolver for FlowsHost {+ fn resolve(&self, agent_id: &str) -> Option<crate::agent::host_agents::HostAgent> {+ if agent_id != "flows-host-agent" {+ return None;+ }+ let mut definition =+ crate::agent::harness::definition::AgentDefinitionRegistry::builtins_only()+ .get("orchestrator")+ .cloned()+ .unwrap();+ definition.id = agent_id.to_string();+ Some(crate::agent::host_agents::HostAgent {+ definition,+ config: crate::config::Config::default(),+ host_tools: None,+ context: crate::core::runtime::CoreContext::for_test(+ crate::core::runtime::DomainSet::full(),+ None,+ ),+ })+ }+}++#[test]+fn a_host_registered_agent_routes_ahead_of_the_registries() {+ let _slot = crate::agent::host_agents::tests::lock();+ let installed: std::sync::Arc<dyn crate::agent::host_agents::HostAgentResolver> =+ std::sync::Arc::new(FlowsHost);+ crate::agent::host_agents::install(std::sync::Arc::clone(&installed));+ let host = super::route_for_agent_ref("flows-host-agent");+ let other = super::route_for_agent_ref("flows-not-a-host-agent");+ crate::agent::host_agents::clear_if(&installed);+ assert_eq!(host, super::AgentRoute::HostAgent);+ assert_eq!(other, super::AgentRoute::RegistryFallback);+}