{"record":{"id":"77a5a49b8fbf4662","repo":"tinyhumansai/openhuman","slug":"unknown-agent-subcommand-other-run-openhuman","errorCode":null,"errorMessage":"unknown agent subcommand '{other}'. Run `openhuman agent --help`.","messagePattern":"unknown agent subcommand '(.+?)'\\. Run `openhuman agent --help`\\.","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/core/agent_cli.rs","lineNumber":42,"sourceCode":"use std::path::PathBuf;\n\nuse crate::openhuman::agent::debug::{\n    dump_agent_prompt, dump_all_agent_prompts, write_prompt_dumps, DumpPromptOptions, DumpedPrompt,\n};\nuse crate::openhuman::agent::harness::definition::AgentDefinitionRegistry;\n\n/// Entry point for `openhuman agent <subcommand>`.\npub fn run_agent_command(args: &[String]) -> Result<()> {\n    if args.is_empty() || is_help(&args[0]) {\n        print_agent_help();\n        return Ok(());\n    }\n\n    match args[0].as_str() {\n        \"dump-prompt\" => run_dump_prompt(&args[1..]),\n        \"dump-all\" => run_dump_all(&args[1..]),\n        \"list\" => run_list(&args[1..]),\n        other => Err(anyhow!(\n            \"unknown agent subcommand '{other}'. Run `openhuman agent --help`.\"\n        )),\n    }\n}\n\n// ---------------------------------------------------------------------------\n// dump-all\n// ---------------------------------------------------------------------------\n\nstruct DumpAllFlags {\n    out: PathBuf,\n    workspace: Option<PathBuf>,\n    model: Option<String>,\n    verbose: bool,\n}\n\nfn parse_dump_all_flags(args: &[String]) -> Result<DumpAllFlags> {\n    let mut out: Option<PathBuf> = None;","sourceCodeStart":24,"sourceCodeEnd":60,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/agent_cli.rs#L24-L60","documentation":"Dispatch fallback in run_agent_command: the first argument to `openhuman agent <sub>` matched none of the known subcommands (dump-prompt, dump-all, list, …) and was not a help form, so the match's catch-all arm returns an error pointing the user at `openhuman agent --help`. Purely a CLI usage error — nothing was executed.","triggerScenarios":"Thrown at src/core/agent_cli.rs:42 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run `openhuman agent --help` to see valid subcommands","Check for typos in the subcommand","Upgrade if the subcommand you expected exists in a newer version"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}