Skip to content

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

fix(agent): handle missing definition registry in tool migration

Steven Enamakel701f1f588dd9
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/definition_registry.rs b/crates/openhuman-core/src/agent/tinyagents/host/definition_registry.rs
index b97d1a0f02..ead18708c0 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/definition_registry.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/definition_registry.rs
@@ -20,8 +20,8 @@
//! # Contract mismatches resolved here
//!
//! **1. Absence must never be an error.** OpenHuman's own catalogue relies on
-//! this: `orchestrator/agent.toml` lists `mcp_agent` in `subagents` even in a
-//! build with the `mcp` feature off, and both existing resolution sites
+//! this: an agent may list a subagent id that a feature gate compiled out of
+//! the build (`presentation_agent` without `documents`), and both existing resolution sites
//! tolerate it (`collect_orchestrator_tools` warns and skips;
//! [`validate_tier_hierarchy`](crate::agent::registry::agents::validate_tier_hierarchy) explicitly `continue`s past unknown ids). So
//! `OpenHumanDefinitionRegistry::resolve` returns `Ok(None)` for every miss
diff --git a/crates/openhuman-core/src/config/schema/tools/search_migrate.rs b/crates/openhuman-core/src/config/schema/tools/search_migrate.rs
index c29bddf627..13ae38b2f3 100644
--- a/crates/openhuman-core/src/config/schema/tools/search_migrate.rs
+++ b/crates/openhuman-core/src/config/schema/tools/search_migrate.rs
@@ -58,7 +58,7 @@ impl SearchConfig {
/// v2 → v3: put `all_tools` files back on the routed role tools.
///
- /// Agent tool scopes (orchestrator, researcher, planner, …) allowlist
+ /// Agent tool scopes (orchestrator, planner, …) allowlist
/// `web_search_tool` / `web_answer_tool` / `web_contents_tool`. Under
/// `all_tools` TinySearch advertises only provider tools (`exa_search`,
/// …), so those agents had no web search at all and called the missing
diff --git a/crates/openhuman-core/src/flows/builder_tools/kind_reads.rs b/crates/openhuman-core/src/flows/builder_tools/kind_reads.rs
index aa30ee6123..66a0f9741e 100644
--- a/crates/openhuman-core/src/flows/builder_tools/kind_reads.rs
+++ b/crates/openhuman-core/src/flows/builder_tools/kind_reads.rs
@@ -40,10 +40,10 @@ impl Tool for ListAgentDefinitionsTool {
fn description(&self) -> &str {
"List the agent KINDS an `agent` node can run via its `agent_ref` config \
- field (e.g. researcher, code_executor, crypto_agent). Read-only. Returns \
+ field (e.g. agent_memory, vision_agent, presentation_agent). Read-only. Returns \
a JSON array of { id, name, description, model, tools, tags }. Use this to \
- pick a real agent_ref — a coding step should reference the coding agent, a \
- research step the researcher — instead of guessing an id. Note: setting \
+ pick a real agent_ref — a memory-lookup step should reference agent_memory, \
+ an image-reading step vision_agent — instead of guessing an id. Note: setting \
agent_ref runs the step as a REAL agent turn (its own `run_single`), with \
the selected specialist's full persona, model, tool loop, and iteration \
cap — not just a persona-flavored completion. A plain `agent` node with \
diff --git a/crates/openhuman-core/src/platform/about_app/catalog_workflows_automation.rs b/crates/openhuman-core/src/platform/about_app/catalog_workflows_automation.rs
index 3b7891286c..1e6052ca66 100644
--- a/crates/openhuman-core/src/platform/about_app/catalog_workflows_automation.rs
+++ b/crates/openhuman-core/src/platform/about_app/catalog_workflows_automation.rs
@@ -332,16 +332,15 @@ Capability {
},
Capability {
id: "automation.crypto_agent",
- name: "Crypto Agent",
+ name: "Crypto Wallet",
domain: "automation",
category: CapabilityCategory::Automation,
- description: "Dedicated wallet & market specialist sub-agent. The orchestrator \
- routes transfers, swaps, contract calls, balance lookups, and \
- exchange trading requests here. The agent enforces a read → \
- simulate → confirm → execute flow, refuses to fabricate chain ids \
- or token addresses, and gates every write call behind explicit \
- user confirmation.",
- how_to: "Automatic — invoked by the orchestrator when a crypto wallet or market action is requested. Connect a wallet via Settings > Recovery Phrase first.",
+ description: "Wallet and market actions as a built-in skill (`web3`): quotes, \
+ swaps, bridges, contract calls and x402 payments. The assistant \
+ follows a read → quote → confirm → execute flow, refuses to \
+ fabricate chain ids or token addresses, and runs no swap, bridge \
+ or contract call without explicit user confirmation.",
+ how_to: "Automatic — the assistant loads the web3 skill when a crypto wallet or market action is requested. Connect a wallet via Settings > Recovery Phrase first.",
status: CapabilityStatus::Beta,
privacy: LOCAL_CREDENTIALS,
},