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
refactor(agent): remove planner and critic agents from defaults
Steven Enamakel4a447240acfb
diff --git a/crates/openhuman-core/src/agent/orchestration/delegation.rs b/crates/openhuman-core/src/agent/orchestration/delegation.rsindex 7c3e4a48fb..76e7692c50 100644--- a/crates/openhuman-core/src/agent/orchestration/delegation.rs+++ b/crates/openhuman-core/src/agent/orchestration/delegation.rs@@ -202,9 +202,6 @@ pub(crate) async fn run_subagent_delegation_with_parent_context(// review policy while the generic tool owns graph lifecycle mechanics...DelegationConfig::default()};- delegation_config.event_sink = Some(Arc::new(tinyagents_graph::GraphTracingSink::new(- "delegation:graph",- )));delegation_config};let result_agent_id = invocation_agent_id.clone();diff --git a/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs b/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rsindex 0acdd6a4a3..aece9c8e55 100644--- a/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs@@ -81,6 +81,49 @@ fn threaded_turn_keeps_goal_tools_as_exposure_candidates() {}}+struct NamedTopologyTool(&'static str);++#[async_trait]+impl Tool for NamedTopologyTool {+ fn name(&self) -> &str {+ self.0+ }++ fn description(&self) -> &str {+ "Topology projection test tool."+ }++ fn parameters_schema(&self) -> serde_json::Value {+ serde_json::json!({"type": "object"})+ }++ async fn execute(&self, _args: serde_json::Value) -> anyhow::Result<ToolResult> {+ Ok(ToolResult::success("ok"))+ }+}++#[test]+fn capability_diagnostics_only_projects_live_delegation_graph() {+ let names = [+ "agent_teams:member",+ "delegation",+ "workflow_runs:scheduler_preview",+ ];+ let tools: SharedToolSet = Arc::new(+ names+ .iter()+ .map(|name| Box::new(NamedTopologyTool(name)) as Box<dyn Tool>)+ .collect(),+ );+ let diagnostics = capability_diagnostics(&[], &[tools], &names.map(str::to_owned));++ let reused_names: Vec<_> = diagnostics+ .iter()+ .map(|diagnostic| diagnostic.name.as_str())+ .collect();+ assert_eq!(reused_names, vec!["delegation"]);+}+#[tokio::test]async fn static_live_harness_builder_resolves_control_aliases_from_the_execution_parent() {use crate::agent::harness::fork_context::ParentExecutionContext;diff --git a/crates/openhuman-core/src/agent_registry/agents/fleet_prompt_tests.rs b/crates/openhuman-core/src/agent_registry/agents/fleet_prompt_tests.rsindex 78205d9dcb..5fb873b221 100644--- a/crates/openhuman-core/src/agent_registry/agents/fleet_prompt_tests.rs+++ b/crates/openhuman-core/src/agent_registry/agents/fleet_prompt_tests.rs@@ -338,7 +338,7 @@ fn every_prompt_names_only_tools_its_agent_can_call() {/// Agents whose prompt defers to the rendered tool list instead of naming a/// tool; [`every_prompt_names_at_least_one_tool_it_can_call`] skips them.-const NAMES_NO_TOOL: &[&str] = &["critic"];+const NAMES_NO_TOOL: &[&str] = &[];const SKILL_SETUP_NAME: Option<&str> = if cfg!(feature = "skills") {Some("skill_setup")diff --git a/crates/openhuman-core/src/agent_registry/agents/loader.rs b/crates/openhuman-core/src/agent_registry/agents/loader.rsindex 259b7ee175..980de04c03 100644--- a/crates/openhuman-core/src/agent_registry/agents/loader.rs+++ b/crates/openhuman-core/src/agent_registry/agents/loader.rs@@ -57,22 +57,6 @@ pub const BUILTINS: &[BuiltinAgent] = &[toml: include_str!("orchestrator/agent.toml"),prompt_fn: super::orchestrator::build,},- // `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::build,- },- BuiltinAgent {- id: "critic",- toml: include_str!("critic/agent.toml"),- prompt_fn: super::critic::build,- },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.rsindex 2a6e698482..a5675d52be 100644--- a/crates/openhuman-core/src/agent_registry/agents/mod.rs+++ b/crates/openhuman-core/src/agent_registry/agents/mod.rs@@ -30,16 +30,12 @@ mod loader;#[path = "fleet_prompt_tests.rs"]mod fleet_prompt_tests;-#[path = "critic/prompt.rs"]-pub mod critic;#[path = "image_agent/prompt.rs"]pub mod image_agent;#[path = "morning_briefing/prompt.rs"]pub mod morning_briefing;#[path = "orchestrator/prompt.rs"]pub mod orchestrator;-#[path = "planner/prompt.rs"]-pub mod planner;#[path = "presentation_agent/prompt.rs"]pub mod presentation_agent;#[path = "summarizer/prompt.rs"]diff --git a/crates/openhuman-core/src/agent_registry/defaults_tests.rs b/crates/openhuman-core/src/agent_registry/defaults_tests.rsindex 2934fa0a6b..2987f795dc 100644--- a/crates/openhuman-core/src/agent_registry/defaults_tests.rs+++ b/crates/openhuman-core/src/agent_registry/defaults_tests.rs@@ -21,7 +21,8 @@ fn default_agents_include_core_personas() {"`{removed}` was replaced by an inline skill");}- assert!(ids.contains(&"planner"), "planner stays for workflow runs");+ assert!(!ids.contains(&"planner"));+ assert!(!ids.contains(&"critic"));assert!(agents.iter().all(|agent| agent.source == AgentRegistrySource::Default));diff --git a/crates/openhuman-core/src/agent_runs/schemas_tests.rs b/crates/openhuman-core/src/agent_runs/schemas_tests.rsindex 133283ae4b..3d4a05abc8 100644--- a/crates/openhuman-core/src/agent_runs/schemas_tests.rs+++ b/crates/openhuman-core/src/agent_runs/schemas_tests.rs@@ -96,6 +96,30 @@ fn host_graph_topology_projection_keeps_delegation_only() {);}+#[tokio::test]+async fn registry_snapshot_omits_retired_graphs_and_keeps_delegation() {+ let result = handle_registry_snapshot(DispatchCtx::process_default(), Map::new())+ .await+ .expect("registry snapshot is available");+ let components = result+ .get("components")+ .and_then(Value::as_array)+ .expect("component snapshot");+ let ids: Vec<_> = components+ .iter()+ .filter_map(|component| component.get("id").and_then(Value::as_str))+ .collect();+ assert!(ids.contains(&"delegation"), "snapshot ids: {ids:?}");+ assert!(+ !ids.iter().any(|id| id.starts_with("agent_teams:")),+ "snapshot includes a retired team graph: {ids:?}"+ );+ assert!(+ !ids.iter().any(|id| id.starts_with("workflow_runs:")),+ "snapshot includes a retired workflow graph: {ids:?}"+ );+}+#[tokio::test]async fn reload_and_definition_handlers_cover_missing_registry_paths() {let reload = handle_reload_definitions(DispatchCtx::process_default(), Map::new())diff --git a/crates/openhuman-core/src/platform/about_app/ops.rs b/crates/openhuman-core/src/platform/about_app/ops.rsindex fa27c79fd1..6b99b9a472 100644--- a/crates/openhuman-core/src/platform/about_app/ops.rs+++ b/crates/openhuman-core/src/platform/about_app/ops.rs@@ -9,7 +9,7 @@ use crate::core::runtime::{ComponentSet, DispatchCtx};/// The `[components]` name backing a capability domain, if one does.pub fn component_for_domain(domain: &str) -> Option<&'static str> {Some(match domain {- "flows" | "workflow_runs" => "flows",+ "flows" => "flows","memory" => "memory","channels" => "channels","voice" => "voice",