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 agent directory gracefully

Steven Enamakel2cccdb86f05a
diff --git a/crates/openhuman-core/src/agent/registry/agents/loader.rs b/crates/openhuman-core/src/agent/registry/agents/loader.rs
index 8da66147d0..75857e95de 100644
--- a/crates/openhuman-core/src/agent/registry/agents/loader.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/loader.rs
@@ -86,6 +86,24 @@ pub const BUILTINS: &[BuiltinAgent] = &[
prompt_fn: super::flow_memory_agent::prompt::build,
graph_fn: None,
},
+ // `planner` and `critic` are not delegable from chat (the orchestrator does
+ // not list them): they exist for the `parallel_research_cross_check`
+ // workflow-run template (`orchestration/workflow_runs/ops.rs`), whose
+ // read-only safety tier admits only read-only agents. Planning and
+ // code review in chat are the orchestrator's own `## Plans` rules and
+ // skill `coding`.
+ BuiltinAgent {
+ id: "planner",
+ toml: include_str!("planner/agent.toml"),
+ prompt_fn: super::planner::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: "task_manager_agent",
toml: include_str!("task_manager_agent/agent.toml"),
diff --git a/crates/openhuman-core/src/agent/registry/agents/mod.rs b/crates/openhuman-core/src/agent/registry/agents/mod.rs
index 768f9e1f67..bae9b1d9c3 100644
--- a/crates/openhuman-core/src/agent/registry/agents/mod.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/mod.rs
@@ -33,12 +33,14 @@ mod loader;
mod fleet_prompt_tests;
pub mod archivist;
+pub mod critic;
#[cfg(feature = "flows")]
pub mod flow_memory_agent;
pub mod goals_agent;
pub mod image_agent;
pub mod morning_briefing;
pub mod orchestrator;
+pub mod planner;
pub mod presentation_agent;
pub mod profile_memory_agent;
pub mod summarizer;
diff --git a/crates/openhuman-core/src/mcp/server/resources.rs b/crates/openhuman-core/src/mcp/server/resources.rs
index 56f872d5de..185360fccf 100644
--- a/crates/openhuman-core/src/mcp/server/resources.rs
+++ b/crates/openhuman-core/src/mcp/server/resources.rs
@@ -55,6 +55,18 @@ const RESOURCE_CATALOG: &[PromptResource] = &[
description: "Chat-tier orchestrator that routes tasks to specialist subagents.",
content: include_str!("../../agent/registry/agents/orchestrator/prompt.md"),
},
+ PromptResource {
+ uri: "openhuman://prompts/agents/planner",
+ name: "planner",
+ description: "Read-only reasoning worker that decomposes and researches a question for workflow runs.",
+ content: include_str!("../../agent/registry/agents/planner/prompt.md"),
+ },
+ PromptResource {
+ uri: "openhuman://prompts/agents/critic",
+ name: "critic",
+ description: "Read-only worker that cross-checks claims and reviews changes for workflow runs.",
+ content: include_str!("../../agent/registry/agents/critic/prompt.md"),
+ },
PromptResource {
uri: "openhuman://prompts/agents/vision_agent",
name: "vision_agent",