Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(toolpacks): correct toolpack registry to use canonical tool names

Steven Enamakelcbbeb1faba64
diff --git a/crates/openhuman-core/src/agent/harness/definition/subagents.rs b/crates/openhuman-core/src/agent/harness/definition/subagents.rs
index 7ad2c05cdd..954dd8249c 100644
--- a/crates/openhuman-core/src/agent/harness/definition/subagents.rs
+++ b/crates/openhuman-core/src/agent/harness/definition/subagents.rs
@@ -12,8 +12,8 @@ use serde::{Deserialize, Deserializer, Serialize};
/// ```toml
/// [subagents]
/// allowlist = [
-/// "planner", # AgentId("planner")
-/// "code_executor", # AgentId("code_executor")
+/// "task_manager_agent", # AgentId("task_manager_agent")
+/// "vision_agent", # AgentId("vision_agent")
/// { skills = "*" }, # Skills { pattern: "*" }
/// ]
/// ```
diff --git a/crates/openhuman-core/src/agent/progress_tracing/types.rs b/crates/openhuman-core/src/agent/progress_tracing/types.rs
index 798fb21fb9..19ae7d0754 100644
--- a/crates/openhuman-core/src/agent/progress_tracing/types.rs
+++ b/crates/openhuman-core/src/agent/progress_tracing/types.rs
@@ -65,7 +65,7 @@ pub struct TraceContext {
/// stays inspectable without polluting user attribution.
pub client_id: Option<String>,
/// Agent definition id driving the turn (e.g. `"orchestrator"`,
- /// `"code_executor"`). Stamped as the `agent.id` attribute and folded into
+ /// `"task_manager_agent"`). Stamped as the `agent.id` attribute and folded into
/// the root span/trace name (`agent.turn:<agent_id>`).
pub agent_id: Option<String>,
/// Where the run originated (`"chat"`, `"ptt"`, `"autonomous"`, …).
diff --git a/crates/openhuman-core/src/agent/session_host/builder/builder_build.rs b/crates/openhuman-core/src/agent/session_host/builder/builder_build.rs
index 523520d6a0..cca2435cf2 100644
--- a/crates/openhuman-core/src/agent/session_host/builder/builder_build.rs
+++ b/crates/openhuman-core/src/agent/session_host/builder/builder_build.rs
@@ -107,7 +107,7 @@ impl SessionHostBuilder {
// Only the DURABLE registry is passed, never `synthesized_tools`: every
// `ArchetypeDelegationTool` reports `Hidden`, and on a wildcard belt the
// synthesised delegates are the agent's only hand-off routes. Stripping
- // them would delete every `research`/`run_code`/… route.
+ // them would delete every `manage_tasks`/`build_workflow`/… route.
//
// This is the one site that turns the "all visible" sentinel into a
// concrete set for a session, so the refresh paths never re-admit a
diff --git a/crates/openhuman-core/src/agent/session_host/types.rs b/crates/openhuman-core/src/agent/session_host/types.rs
index 510db1219a..c9f77edb1b 100644
--- a/crates/openhuman-core/src/agent/session_host/types.rs
+++ b/crates/openhuman-core/src/agent/session_host/types.rs
@@ -240,7 +240,7 @@ pub struct OpenHumanSessionHost {
/// necessarily user conversation threads.
pub(super) thread_id: Option<String>,
/// Human-readable agent definition name (e.g. `"main"`,
- /// `"code_executor"`). Used as the `{agent}` component in session
+ /// `"task_manager_agent"`). Used as the `{agent}` component in session
/// transcript paths: `sessions/DDMMYYYY/{agent}_{index}.md`.
///
/// May be rewritten mid-session by
diff --git a/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs b/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs
index 6eef9866b3..2a19dc6929 100644
--- a/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/tool_prep.rs
@@ -70,8 +70,8 @@ pub(super) fn is_subagent_spawn_tool(name: &str) -> bool {
}
// Synthesised delegation tools are named by the target agent's
// `delegate_name` override, which mostly does NOT carry the `delegate_`
- // prefix (`plan`, `run_code`, `research`, `review_code`, `do_crypto`,
- // `schedule_task`, …). The prefix check above misses every one of them,
+ // prefix (`manage_tasks`, `create_image`, `setup_skills`,
+ // `build_workflow`, …). The prefix check above misses every one of them,
// which let wildcard-scoped children inherit the orchestrator's spawn
// surface. Resolve the override names via the registry so the strip
// stays in lockstep with `collect_orchestrator_tools`'s naming.
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_policy.rs b/crates/openhuman-core/src/agent/tinyagents/turn_policy.rs
index 1179f5ec52..1b96eed551 100644
--- a/crates/openhuman-core/src/agent/tinyagents/turn_policy.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/turn_policy.rs
@@ -291,7 +291,7 @@ pub(crate) fn effective_max_iterations(max_iterations: usize) -> usize {
/// **This is a strict subset of the caller-side strip**, not a mirror of it
/// (issue #6157). `subagent_host::tool_prep::is_subagent_spawn_tool` also
/// resolves each archetype's `delegate_name` override through the definition
-/// registry — `plan`, `research`, `run_code`, `review_code`, … — none of which
+/// registry — `manage_tasks`, `create_image`, `setup_skills`, … — none of which
/// carry the `delegate_` prefix this match relies on. Matching them here would
/// put a registry lookup on the per-tool registration loop, so the caller
/// stays responsible for the override names: every path that feeds `allowed`
diff --git a/crates/openhuman-core/src/tools/orchestrator_tools.rs b/crates/openhuman-core/src/tools/orchestrator_tools.rs
index 1f50a01073..269a887c37 100644
--- a/crates/openhuman-core/src/tools/orchestrator_tools.rs
+++ b/crates/openhuman-core/src/tools/orchestrator_tools.rs
@@ -5,8 +5,8 @@
//! `spawn_subagent(agent_id, prompt)` mega-tool, we synthesise one named
//! tool per [`SubagentEntry::AgentId`] in the orchestrator's
//! `[subagents] allowlist = [...]` TOML section, so the LLM's function-calling schema
-//! contains discoverable, well-named tools like `research`, `plan`,
-//! `run_code`, etc.
+//! contains discoverable, well-named tools like `manage_tasks`,
+//! `create_image`, `build_workflow`, etc.
//!
//! For [`SubagentEntry::Skills`] wildcard expansions we synthesise one
//! `ToolExposure::Deferred` [`ComposioActionTool`] per action of every
diff --git a/crates/openhuman-core/src/tools/toolpacks/registry.rs b/crates/openhuman-core/src/tools/toolpacks/registry.rs
index 669bb483a7..ea616924b1 100644
--- a/crates/openhuman-core/src/tools/toolpacks/registry.rs
+++ b/crates/openhuman-core/src/tools/toolpacks/registry.rs
@@ -429,8 +429,9 @@ pub(crate) const DELIBERATELY_UNPACKED_FLEET_TOOLS: &[&str] = &[
/// The skill hand-offs are deliberately not packed (#6302).
///
-/// `setup_skills` and `run_skill` are the orchestrator's route into the
-/// skills family. Packed, they sat in the same listing as the raw
+/// `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.
@@ -440,7 +441,7 @@ pub(crate) const DELIBERATELY_UNPACKED_FLEET_TOOLS: &[&str] = &[
///
/// 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 (`do_crypto`, `build_workflow`,
+/// 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.
diff --git a/crates/openhuman-core/src/tools/toolpacks/types.rs b/crates/openhuman-core/src/tools/toolpacks/types.rs
index c5a3cf91e0..e921759e87 100644
--- a/crates/openhuman-core/src/tools/toolpacks/types.rs
+++ b/crates/openhuman-core/src/tools/toolpacks/types.rs
@@ -20,11 +20,10 @@ pub struct ToolPack {
/// Agent ids for which this pack is **not** applied.
///
/// Withholding is a bet that the tools are idle in most turns. That bet is
- /// wrong for the specialist a family was delegated to: `settings_agent`
- /// exists precisely to run `config_*` / `health_*` / `service_*`, so
- /// packing them would put a `use_skill` round trip in front of the first
- /// call of every one of its turns and buy nothing — its whole belt is the
- /// pack.
+ /// wrong for the specialist a family was delegated to: `workflow_builder`
+ /// exists precisely to run the flow authoring tools, so packing them would
+ /// put a `use_skill` round trip in front of the first call of every one of
+ /// its turns and buy nothing — its whole belt is the pack.
///
/// The earlier packs did not need this because they held only synthesised
/// `delegate_*` tools, which exist on the orchestrator alone. Packs over