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(mcp): stop exposing retired planner and critic prompts
Steven Enamakel46b8ca08dc1d
diff --git a/crates/openhuman-core/src/agent/orchestration/delegation.rs b/crates/openhuman-core/src/agent/orchestration/delegation.rsindex 76e7692c50..18f255978e 100644--- a/crates/openhuman-core/src/agent/orchestration/delegation.rs+++ b/crates/openhuman-core/src/agent/orchestration/delegation.rs@@ -193,7 +193,7 @@ pub(crate) async fn run_subagent_delegation_with_parent_context(let config_thread_id = thread_id.clone();let config_factory =move |_state: &(), parent: &RunContext<OpenHumanRunContext>, _args: &serde_json::Value| {- let mut delegation_config = DelegationConfig {+ DelegationConfig {max_revisions,checkpointer: Some(Arc::clone(&config_checkpointer)),thread_id: Some(config_thread_id.clone()),@@ -201,8 +201,7 @@ pub(crate) async fn run_subagent_delegation_with_parent_context(// Automated delegation: preserve the host's existing worker-output// review policy while the generic tool owns graph lifecycle mechanics...DelegationConfig::default()- };- delegation_config+ }};let result_agent_id = invocation_agent_id.clone();let tool = tinyagents_orchestration::subagent::DelegationTool::new(config_factory, run_stage)diff --git a/crates/openhuman-core/src/core/events.rs b/crates/openhuman-core/src/core/events.rsindex 02cd0a0448..e2c956439e 100644--- a/crates/openhuman-core/src/core/events.rs+++ b/crates/openhuman-core/src/core/events.rs@@ -1575,7 +1575,7 @@ impl DomainEvent {Self::SubagentSpawned { agent_id, .. }| Self::SubagentCompleted { agent_id, .. }| Self::SubagentFailed { agent_id, .. }- | Self::SubagentAwaitingUser { agent_id, .. }+ | Self::SubagentAwaitingUser { agent_id, .. } => Some(agent_id.as_str()),Self::ChannelMessageReceived { channel, .. }| Self::ChannelConnected { channel, .. }| Self::ChannelDisconnected { channel, .. } => Some(channel.as_str()),diff --git a/crates/openhuman-core/src/mcp/server/resources.rs b/crates/openhuman-core/src/mcp/server/resources.rsindex de0778e4bd..6fb325080a 100644--- a/crates/openhuman-core/src/mcp/server/resources.rs+++ b/crates/openhuman-core/src/mcp/server/resources.rs@@ -59,18 +59,6 @@ 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",diff --git a/crates/openhuman-core/src/mcp/server/resources_tests.rs b/crates/openhuman-core/src/mcp/server/resources_tests.rsindex 56cbf9fcd9..dcb504867f 100644--- a/crates/openhuman-core/src/mcp/server/resources_tests.rs+++ b/crates/openhuman-core/src/mcp/server/resources_tests.rs@@ -52,7 +52,7 @@ fn list_resources_includes_core_and_agent_uris() {"openhuman://prompts/soul","openhuman://prompts/user","openhuman://prompts/agents/orchestrator",- "openhuman://prompts/agents/planner",+ "openhuman://prompts/agents/vision_agent",] {assert!(uris.contains(&expected), "missing URI {expected}");}@@ -76,6 +76,16 @@ fn read_resource_returns_minus_32002_for_unknown_uri() {assert!(err.message().contains("nonexistent"));}+#[test]+fn read_resource_does_not_expose_retired_workflow_agents() {+ for agent in ["planner", "critic"] {+ let uri = format!("openhuman://prompts/agents/{agent}");+ let err = read_resource(&uri).expect_err("retired agent prompt is not exposed");+ assert_eq!(err.code(), -32002);+ assert!(err.message().contains(agent));+ }+}+#[test]fn read_resource_returns_content_for_each_subagent() {use crate::agent_registry::agents::BUILTINS;