Skip to content

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

refactor(agent): update agent id examples and descriptions

Steven Enamakel8433a3fbe998
diff --git a/crates/openhuman-core/src/agent/orchestration/parent_context/builder.rs b/crates/openhuman-core/src/agent/orchestration/parent_context/builder.rs
index 9000cb0177..f6c36b1585 100644
--- a/crates/openhuman-core/src/agent/orchestration/parent_context/builder.rs
+++ b/crates/openhuman-core/src/agent/orchestration/parent_context/builder.rs
@@ -130,7 +130,7 @@ pub(crate) async fn build_root_parent(
/// have every nested `spawn_subagent` die at runtime with
/// [`SubagentRunError::NoParentContext`](crate::agent::subagent_host::SubagentRunError::NoParentContext).
/// The parent is a value the closure receives and passes to the spawns it makes
-/// (`AgentOrchestrationSession::spawn_agent`); nothing reads it ambiently.
+/// (the host sub-agent dispatch path); nothing reads it ambiently.
///
/// `parent_override` is the explicit injection point for a parent the caller
/// already has (a test driving a surface under a mock parent, and thus a mock
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/delegate_graph.rs b/crates/openhuman-core/src/agent/orchestration/tools/delegate_graph.rs
index 695fceb138..a41def3529 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/delegate_graph.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/delegate_graph.rs
@@ -122,7 +122,7 @@ impl Tool for DelegateGraphTool {
let agent_id_schema = if agent_ids.is_empty() {
json!({
"type": "string",
- "description": "Sub-agent id (e.g. code_executor, planner, critic)."
+ "description": "Sub-agent id (e.g. code_executor, researcher, summarizer)."
})
} else {
json!({
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_surface.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_surface.rs
index 8b56f9774d..60e162d08d 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_surface.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_surface.rs
@@ -234,7 +234,7 @@ impl Tool for SpawnAsyncSubagentTool {
let agent_id_schema = if agent_ids.is_empty() {
json!({
"type": "string",
- "description": "Sub-agent id (e.g. planner, critic, summarizer)."
+ "description": "Sub-agent id (e.g. researcher, summarizer)."
})
} else {
json!({
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_schema.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_schema.rs
index a1691f19fe..b61b5fc1e9 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_schema.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_schema.rs
@@ -23,7 +23,7 @@ fn spawn_subagent_parameters_schema() -> serde_json::Value {
let agent_id_schema = if agent_ids.is_empty() {
json!({
"type": "string",
- "description": "Sub-agent id (e.g. code_executor, planner, critic)."
+ "description": "Sub-agent id (e.g. code_executor, researcher, summarizer)."
})
} else {
json!({
diff --git a/crates/openhuman-core/src/core/agent_cli.rs b/crates/openhuman-core/src/core/agent_cli.rs
index bdafe084e0..d2517e5997 100644
--- a/crates/openhuman-core/src/core/agent_cli.rs
+++ b/crates/openhuman-core/src/core/agent_cli.rs
@@ -15,8 +15,7 @@
//! through the same prelude builder the runtime uses for a cold model request.
//! Pass
//! `--agent orchestrator` for the orchestrator prompt; otherwise pass
-//! any built-in or workspace-custom agent id (e.g. `planner`,
-//! `critic`).
+//! any built-in or workspace-custom agent id (e.g. `orchestrator`, `researcher`).
use anyhow::{anyhow, Result};
use std::path::PathBuf;
@@ -426,7 +425,7 @@ fn parse_dump_flags(args: &[String]) -> Result<DumpFlags> {
fn run_dump_prompt(args: &[String]) -> Result<()> {
let flags = parse_dump_flags(args)?;
let agent = flags.agent.clone().ok_or_else(|| {
- anyhow!("--agent <id> is required (e.g. `orchestrator`, `planner`, `critic`)")
+ anyhow!("--agent <id> is required (e.g. `orchestrator`, `researcher`)")
})?;
init_quiet_logging(flags.verbose);
@@ -684,7 +683,7 @@ fn print_dump_prompt_help() {
println!();
println!("Required:");
println!(" --agent, -a <id> Target agent id — any built-in or workspace-custom id");
- println!(" (e.g. `orchestrator`, `planner`, `critic`).");
+ println!(" (e.g. `orchestrator`, `researcher`).");
println!();
println!("Options:");
println!(" --workspace, -w <p> Override the workspace directory (defaults to");
@@ -707,7 +706,7 @@ fn print_dump_prompt_help() {
println!(" openhuman agent dump-prompt --agent orchestrator --json");
println!();
println!(" # Planner prompt with its tool list.");
- println!(" openhuman agent dump-prompt --agent planner --with-tools");
+ println!(" openhuman agent dump-prompt --agent orchestrator --with-tools");
}
fn is_help(value: &str) -> bool {
diff --git a/tests/in_process/calendar_grounding_e2e.rs b/tests/in_process/calendar_grounding_e2e.rs
index a8dae0c276..6cce66fb8b 100644
--- a/tests/in_process/calendar_grounding_e2e.rs
+++ b/tests/in_process/calendar_grounding_e2e.rs
@@ -168,7 +168,7 @@ async fn test_subagent_has_current_date_context() -> Result<()> {
let parent = openhuman_core::agent::harness::ParentExecutionContext {
agent_definition_id: "orchestrator".into(),
- allowed_subagent_ids: ["critic".to_string()].into_iter().collect(),
+ allowed_subagent_ids: ["summarizer".to_string()].into_iter().collect(),
turn_model_source: openhuman_core::agent::tinyagents::TurnModelSource::from_model(model),
all_tools: Arc::new(vec![Box::new(MockCalendarTool)]),
all_tool_specs: Arc::new(vec![Arc::new(MockCalendarTool.spec())]),
@@ -199,7 +199,7 @@ async fn test_subagent_has_current_date_context() -> Result<()> {
let mut def =
openhuman_core::agent_registry::host_definition::AgentDefinitionRegistry::global()
.unwrap()
- .get("critic")
+ .get("summarizer")
.unwrap()
.clone();
// A Hint sub-agent builds a fresh provider via the workload factory