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): correct tool route middleware to use packed tool name
Steven Enamakel5f75d18d4e24
diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rsindex 1fd9025482..d03b29e9b9 100644--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs@@ -237,7 +237,7 @@ fn hand_off_route(ctx: &PromptContext<'_>, specialist: &str) -> Option<String> {// itself. A filtered belt holding neither the delegate nor `use_skill` has// no way to reach the specialist, and naming one anyway is the same "call a// tool you do not have" failure this whole block exists to end (#6302).- if !ctx.visible_tool_names.contains(toolpacks::USE_SKILL) {+ if !ctx.visible_tool_names.contains(tinyagents_harness::tool::packs::USE_SKILL) {return None;}toolpacks::pack_for_tool(&tool).map(|pack| {diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/packed_tool_route.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/packed_tool_route.rsindex 60b18f6fd2..7197368372 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware/packed_tool_route.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/packed_tool_route.rs@@ -12,7 +12,8 @@ use tinyagents_harness::middleware::Middleware;use tinyinference_llm::tool::ToolCall as TaToolCall;use crate::tools::agent_policy::ToolPolicySession;-use crate::tools::toolpacks::{self, GroupMode, USE_SKILL};+use crate::tools::toolpacks::{self, GroupMode};+use tinyagents_harness::tool::packs::USE_SKILL;/// `before_tool`: rewrite `name(args)` into/// `use_skill { "skill": <pack>, "tool": name, "args": args }` when `name` is adiff --git a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rs b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rsindex ec70e4acb2..8ea53f85af 100644--- a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rs+++ b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rs@@ -33,7 +33,8 @@ use tinytools::{Tool, ToolCallOptions, ToolResult};use super::harness_tool_registration::typed_dispatch_for;use super::host::OpenHumanRunContext;-use crate::tools::toolpacks::{named_tool, PackRegistryHandle};+use crate::tools::toolpacks::registry::CATALOG;+use tinyagents_harness::tool::packs::{named_tool, PackRegistryHandle};/// Live-parent dispatch for the `use_skill` proxy tool.///@@ -80,7 +81,7 @@ impl ToolDispatch<(), OpenHumanRunContext> for UseSkillDispatch {.zip(named_tool(&arguments)).and_then(|(skill, name)| {self.handle- .resolve_registry_for(skill, name)+ .resolve_registry_for(&CATALOG, skill, name).map(|tools| (name.to_string(), tools))});