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): handle missing agent directory gracefully
Steven Enamakelf7e4bbda1a42
diff --git a/crates/openhuman-core/src/agent/registry/agents/loader.rs b/crates/openhuman-core/src/agent/registry/agents/loader.rsindex c08293573d..8da66147d0 100644--- a/crates/openhuman-core/src/agent/registry/agents/loader.rs+++ b/crates/openhuman-core/src/agent/registry/agents/loader.rs@@ -68,36 +68,11 @@ pub const BUILTINS: &[BuiltinAgent] = &[prompt_fn: super::orchestrator::prompt::build,graph_fn: None,},- BuiltinAgent {- id: "planner",- toml: include_str!("planner/agent.toml"),- prompt_fn: super::planner::prompt::build,- graph_fn: None,- },- BuiltinAgent {- id: "code_executor",- toml: include_str!("code_executor/agent.toml"),- prompt_fn: super::code_executor::prompt::build,- graph_fn: None,- },- BuiltinAgent {- id: "integrations_agent",- toml: include_str!("integrations_agent/agent.toml"),- prompt_fn: super::integrations_agent::prompt::build,- graph_fn: None,- },- BuiltinAgent {- id: "crypto_agent",- toml: include_str!("crypto_agent/agent.toml"),- prompt_fn: super::crypto_agent::prompt::build,- graph_fn: None,- },// General-purpose read-only context/memory retrieval specialist for// automation flows. A flow `agent` node routes here via `config.agent_ref`// for ANY context/style/history/people need — not a fixed list of// cases — looping across several retrievals in one turn when the step- // needs it. Strictly read-only (see agent.toml); `context_scout` remains- // the right choice only for its structured `[context_bundle]` output.+ // needs it. Strictly read-only (see agent.toml).// `#[cfg(feature = "flows")]`: this agent exists only to be routed to from// a flow `agent` node's `config.agent_ref`. With flows compiled out there// is no engine, no `workflow_builder`, and no agent_ref path — it would be@@ -111,66 +86,24 @@ pub const BUILTINS: &[BuiltinAgent] = &[prompt_fn: super::flow_memory_agent::prompt::build,graph_fn: None,},- BuiltinAgent {- id: "tools_agent",- toml: include_str!("tools_agent/agent.toml"),- prompt_fn: super::tools_agent::prompt::build,- graph_fn: None,- },BuiltinAgent {id: "task_manager_agent",toml: include_str!("task_manager_agent/agent.toml"),prompt_fn: super::task_manager_agent::prompt::build,graph_fn: None,},- BuiltinAgent {- id: "settings_agent",- toml: include_str!("settings_agent/agent.toml"),- prompt_fn: super::settings_agent::prompt::build,- graph_fn: None,- },BuiltinAgent {id: "profile_memory_agent",toml: include_str!("profile_memory_agent/agent.toml"),prompt_fn: super::profile_memory_agent::prompt::build,graph_fn: None,},- BuiltinAgent {- id: "scheduler_agent",- toml: include_str!("scheduler_agent/agent.toml"),- prompt_fn: super::scheduler_agent::prompt::build,- graph_fn: None,- },BuiltinAgent {id: "presentation_agent",toml: include_str!("presentation_agent/agent.toml"),prompt_fn: super::presentation_agent::prompt::build,graph_fn: None,},- BuiltinAgent {- id: "tool_maker",- toml: include_str!("tool_maker/agent.toml"),- prompt_fn: super::tool_maker::prompt::build,- graph_fn: None,- },- BuiltinAgent {- id: "skill_creator",- toml: include_str!("skill_creator/agent.toml"),- prompt_fn: super::skill_creator::prompt::build,- graph_fn: None,- },- BuiltinAgent {- id: "context_scout",- toml: include_str!("context_scout/agent.toml"),- prompt_fn: super::context_scout::prompt::build,- graph_fn: None,- },- BuiltinAgent {- id: "critic",- toml: include_str!("critic/agent.toml"),- prompt_fn: super::critic::prompt::build,- graph_fn: None,- },BuiltinAgent {id: "vision_agent",toml: include_str!("vision_agent/agent.toml"),@@ -225,32 +158,6 @@ pub const BUILTINS: &[BuiltinAgent] = &[prompt_fn: super::summarizer::prompt::build,graph_fn: None,},- BuiltinAgent {- id: "help",- toml: include_str!("help/agent.toml"),- prompt_fn: super::help::prompt::build,- graph_fn: None,- },- // Connected-server execution specialist. Compiled out with the `mcp`- // feature, which drops the `delegate_use_mcp_server` tool from the- // orchestrator's synthesised belt.- //- // The orchestrator's `agent.toml` still lists `mcp_agent` in `subagents`- // (TOML is data — it cannot be `cfg`'d, and forking it per-feature would- // invite exactly the data drift this gate is meant to avoid). That- // dangling reference is SAFE and already handled: `collect_orchestrator_tools`- // logs a warn and skips subagent ids that are not in the registry, and- // `validate_tier_hierarchy` explicitly `continue`s past unknown ids rather- // than failing the boot. `orchestrator_tolerates_absent_mcp_agent` in the- // test module below pins that contract so a future "strict unknown- // subagent" change cannot silently break the slim build's boot.- #[cfg(feature = "mcp")]- BuiltinAgent {- id: "mcp_agent",- toml: include_str!("mcp_agent/agent.toml"),- prompt_fn: super::mcp_agent::prompt::build,- graph_fn: None,- },// Skill agents — `#[cfg]` rather than stub: `include_str!` embeds the// agent TOML from disk regardless of module gating, so the entry itself// must disappear when the `skills` feature is off.@@ -261,13 +168,6 @@ pub const BUILTINS: &[BuiltinAgent] = &[prompt_fn: crate::skills::catalog::agent::skill_setup::prompt::build,graph_fn: None,},- #[cfg(feature = "skills")]- BuiltinAgent {- id: "skill_executor",- toml: include_str!("../../../skills/runtime/agent/skill_executor/agent.toml"),- prompt_fn: crate::skills::runtime::agent::skill_executor::prompt::build,- graph_fn: None,- },BuiltinAgent {id: "agent_memory",toml: include_str!("../../../memory/agent/agent/agent.toml"),diff --git a/crates/openhuman-core/src/agent/registry/agents/mod.rs b/crates/openhuman-core/src/agent/registry/agents/mod.rsindex 0bdbef33b8..768f9e1f67 100644--- a/crates/openhuman-core/src/agent/registry/agents/mod.rs+++ b/crates/openhuman-core/src/agent/registry/agents/mod.rs@@ -33,30 +33,16 @@ mod loader;mod fleet_prompt_tests;pub mod archivist;-pub mod code_executor;-pub mod context_scout;-pub mod critic;-pub mod crypto_agent;#[cfg(feature = "flows")]pub mod flow_memory_agent;pub mod goals_agent;-pub mod help;pub mod image_agent;-pub mod integrations_agent;-#[cfg(feature = "mcp")]-pub mod mcp_agent;pub mod morning_briefing;pub mod orchestrator;-pub mod planner;pub mod presentation_agent;pub mod profile_memory_agent;-pub mod scheduler_agent;-pub mod settings_agent;-pub mod skill_creator;pub mod summarizer;pub mod task_manager_agent;-pub mod tool_maker;-pub mod tools_agent;pub mod trigger_reactor;pub mod trigger_triage;pub mod video_agent;