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_cli): handle missing agent name in CLI argument parsing
Steven Enamakela24baf613f85
diff --git a/crates/openhuman-core/src/core/agent_cli.rs b/crates/openhuman-core/src/core/agent_cli.rsindex 9c46de4767..a5fc48579f 100644--- a/crates/openhuman-core/src/core/agent_cli.rs+++ b/crates/openhuman-core/src/core/agent_cli.rs@@ -17,8 +17,8 @@//! [`OpenHumanSessionHost::build_system_prompt`] on the live session, so the output is//! byte-identical to what the LLM sees on turn 1. Pass//! `--agent orchestrator` for the orchestrator prompt; otherwise pass-//! any built-in or workspace-custom agent id (e.g. `archivist`,-//! `welcome`).+//! any built-in or workspace-custom agent id (e.g. `planner`,+//! `critic`).use anyhow::{anyhow, Result};use std::path::PathBuf;@@ -424,7 +424,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`, `archivist`, `welcome`)")+ anyhow!("--agent <id> is required (e.g. `orchestrator`, `planner`, `critic`)")})?;init_quiet_logging(flags.verbose);@@ -675,7 +675,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`, `archivist`, `welcome`).");+ println!(" (e.g. `orchestrator`, `planner`, `critic`).");println!();println!("Options:");println!(" --workspace, -w <p> Override the workspace directory (defaults to");@@ -697,8 +697,8 @@ fn print_dump_prompt_help() {println!(" # Orchestrator prompt, JSON for scripting.");println!(" openhuman agent dump-prompt --agent orchestrator --json");println!();- println!(" # Researcher prompt with its tool list.");- println!(" openhuman agent dump-prompt --agent archivist --with-tools");+ println!(" # Planner prompt with its tool list.");+ println!(" openhuman agent dump-prompt --agent planner --with-tools");}fn is_help(value: &str) -> bool {