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
Merge upstream/main into vendor-extract-w2-artifacts
Steven Enamakelb9eabacbe5fc
diff --cc crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rsindex 8c9c7480f4,a9abdebdb1..a0999446eb--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs@@@ -38,12 -38,22 +38,22 @@@ pub fn build(ctx: &PromptContext<'_>) -// Resolved once: the skill routes decide both the static rows below// and the generated sections further down, and they must agree (#6302).let skill_run = run_workflow_route(ctx);- let skill_install = hand_off_route(ctx, "skill_setup");+ // A packed install route is already named under "Capabilities not in your+ // tool list"; the skills section names it only when it is on the belt.+ let skill_install =- hand_off_route(ctx, "skill_setup").filter(|route| !route.contains(toolpacks::USE_SKILL));++ hand_off_route(ctx, "skill_setup").filter(|route| !route.contains(tinyagents_harness::tool::packs::USE_SKILL));// An empty visibility set is the builder's unfiltered sentinel. Preserve// the MCP route for those sessions while suppressing it in gated-off builds.+ // Registered is enough: the orchestrator defers the registry tools+ // (`deferred_tools` in its agent.toml), so they are reachable through+ // `tool_search` and by name without being in the visible set.let mcp_available = cfg!(feature = "mcp")&& (ctx.visible_tool_names.is_empty()- || ctx.visible_tool_names.contains("mcp_registry_tool_call"));+ || ctx.visible_tool_names.contains("mcp_registry_tool_call")+ || ctx+ .tools+ .iter()+ .any(|tool| tool.name.as_ref() == "mcp_registry_tool_call"));// ── Stable tier: identical across sessions for a given build ─────────//@@@ -237,18 -248,11 +248,14 @@@ fn hand_off_route(ctx: &PromptContext<'// 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| {- format!(- "`use_skill {{ \"skill\": \"{}\", \"tool\": \"{tool}\" }}`",- pack.id- )- })+ toolpacks::pack_for_tool(&tool)+ .map(|pack| format!("`{tool}` (`use_skill` skill `{}`)", pack.id))}/// How this session runs an installed skill: its own `run_workflow`, when thediff --cc crates/openhuman-core/src/tools/toolpacks/registry.rsindex 1baf401387,19253eeead..a62f381b33--- a/crates/openhuman-core/src/tools/toolpacks/registry.rs+++ b/crates/openhuman-core/src/tools/toolpacks/registry.rs@@@ -427,34 -432,8 +432,13 @@@ pub(crate) const DELIBERATELY_UNPACKED_"spawn_parallel_agents",];- /// The skill hand-offs are deliberately not packed (#6302).- ///- /// `setup_skills` is the orchestrator's route into the skills family (it once- /// shared this list with `run_skill`, whose job is now the orchestrator's own- /// `run_workflow`). Packed, they sat in the same listing as the raw- /// `skill_registry_*` tools, one `use_skill` round trip- /// away, and a live account showed the cost: across 11 turns the orchestrator- /// called the raw tools itself, guessed at tool names, and never handed off.- /// Handing off is the most common thing it does with these families, so the- /// `collapsed_delegation.rs` argument applies: frequency of use decides, and- /// delegation should not pay a round trip.- ///- /// With a hand-off on the belt, `ops::closed_by_direct_handoff` closes the- /// owning pack's raw tools to the caller, so the hand-off is its only route.- /// The other packed hand-offs (`manage_tasks`, `build_workflow`,- /// `discover_workflows`, `make_presentation`, ...) stay packed: each is its own- /// token-cost decision, and the same closing rule takes effect for any of them- /// as soon as it is unpacked and listed here.- #[cfg(test)]- pub(crate) const DELIBERATELY_UNPACKED_HANDOFFS: &[&str] = &["setup_skills"];-+/// The lookup surface over [`PACKS`] handed to the generic `use_skill` tool+/// (`tinyagents_harness::tool::packs`). `NOT_FOUND_MARKER` is the host's status+/// vocabulary, so a "no such skill / tool" result classifies as `NotFound`.+pub const CATALOG: PackCatalog = PackCatalog::new(PACKS, crate::tools::status::NOT_FOUND_MARKER);+pub fn pack(id: &str) -> Option<&'static ToolPack> {- PACKS.iter().find(|p| p.id == id)+ CATALOG.pack(id)}/// The pack owning `tool`, if any.diff --cc vendor/tinyagentsindex 36dd3a14c1,0fcdc2e4a7..014c268cd6--- a/vendor/tinyagents+++ b/vendor/tinyagents@@@ -1,1 -1,1 +1,1 @@@- Subproject commit 36dd3a14c1b806355f5ab073994408a835024d52-Subproject commit 0fcdc2e4a7093e558f7b0d6bed9cb6a7e6b3dc04++Subproject commit 014c268cd64a47b56bb4ce13f975b632e3a96e11