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(agent): default tool scope to wildcard for library agents
Steven Enamakel3d46fda53981
diff --git a/crates/openhuman-embed/src/agent/definition.rs b/crates/openhuman-embed/src/agent/definition.rsindex 6fb86efb63..c6f4d6e6b0 100644--- a/crates/openhuman-embed/src/agent/definition.rs+++ b/crates/openhuman-embed/src/agent/definition.rs@@ -4,9 +4,13 @@//! [`AgentDefinition`](openhuman_core::agent::harness::definition::AgentDefinition)//! so the library surface does not track that thirty-field struct//! field-by-field. The default is the built-in orchestrator's definition-//! under the agent's own id — the same dynamic prompt, wildcard tools and-//! delegation surface the desktop's main agent runs with — and each setter-//! overrides one aspect of it.+//! under the agent's own id — the same dynamic prompt and delegation+//! surface the desktop's main agent runs with — except that **every+//! registered tool is visible** ([`ToolScopeSpec::Wildcard`]). The desktop+//! orchestrator names its direct tools and delegates the rest (MCP bridge,+//! integrations) to specialists; a library agent that declared an MCP+//! server expects to call it, so the host narrows with+//! [`AgentDefinitionSpec::tools`] rather than widening.use openhuman_core::agent::harness::definition::{AgentDefinition, AgentDefinitionRegistry, PromptSource, SandboxMode, ToolScope,@@ -126,12 +130,10 @@ impl AgentDefinitionSpec {if let Some(prompt) = self.system_prompt {def.system_prompt = PromptSource::Inline(prompt);}- if let Some(scope) = self.tools {- def.tools = match scope {- ToolScopeSpec::Wildcard => ToolScope::Wildcard,- ToolScopeSpec::Named(names) => ToolScope::Named(names),- };- }+ def.tools = match self.tools.unwrap_or(ToolScopeSpec::Wildcard) {+ ToolScopeSpec::Wildcard => ToolScope::Wildcard,+ ToolScopeSpec::Named(names) => ToolScope::Named(names),+ };def.disallowed_tools.extend(self.disallowed_tools);def.sandbox_mode = match self.sandbox {SandboxModeSpec::None => SandboxMode::None,diff --git a/crates/openhuman-embed/src/agent/definition_tests.rs b/crates/openhuman-embed/src/agent/definition_tests.rsindex 51dcecbf2f..98eb5f70c9 100644--- a/crates/openhuman-embed/src/agent/definition_tests.rs+++ b/crates/openhuman-embed/src/agent/definition_tests.rs@@ -6,6 +6,7 @@ fn default_is_the_orchestrator_under_the_agents_id() {assert_eq!(def.id, "alpha");assert_eq!(def.display_name(), "alpha");assert!(matches!(def.system_prompt, PromptSource::Dynamic(_)));+ assert!(matches!(def.tools, ToolScope::Wildcard));assert_eq!(def.sandbox_mode, SandboxMode::None);}