{"record":{"id":"e391ae18eacbc676","repo":"tinyhumansai/openhuman","slug":"agent-id-is-required-e-g-orchestrator-in","errorCode":null,"errorMessage":"--agent <id> is required (e.g. `orchestrator`, `integrations_agent`, `welcome`)","messagePattern":"--agent <id> is required \\(e\\.g\\. `orchestrator`, `integrations_agent`, `welcome`\\)","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/core/agent_cli.rs","lineNumber":229,"sourceCode":"            \"-v\" | \"--verbose\" => {\n                out.verbose = true;\n                i += 1;\n            }\n            \"-h\" | \"--help\" => {\n                print_dump_prompt_help();\n                std::process::exit(0);\n            }\n            other => return Err(anyhow!(\"unknown dump-prompt arg: {other}\")),\n        }\n        let _ = i; // silence unused-warning in the `help` branch\n    }\n    Ok(out)\n}\n\nfn run_dump_prompt(args: &[String]) -> Result<()> {\n    let flags = parse_dump_flags(args)?;\n    let agent = flags.agent.clone().ok_or_else(|| {\n        anyhow!(\"--agent <id> is required (e.g. `orchestrator`, `integrations_agent`, `welcome`)\")\n    })?;\n\n    if agent == \"integrations_agent\" && flags.toolkit.is_none() {\n        return Err(anyhow!(\n            \"--toolkit <slug> is required when --agent is `integrations_agent` \\\n             (e.g. `--toolkit gmail`). Run `composio list_connection` to see active slugs.\"\n        ));\n    }\n\n    init_quiet_logging(flags.verbose);\n\n    log::debug!(\n        \"[agent-cli] run_dump_prompt entry: agent={} toolkit={:?} workspace={:?} model={:?}\",\n        agent,\n        flags.toolkit,\n        flags.workspace,\n        flags.model\n    );","sourceCodeStart":211,"sourceCodeEnd":247,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/agent_cli.rs#L211-L247","documentation":"Post-parse validation in run_dump_prompt: flags were consumed but --agent was absent, so there is no agent whose turn-1 system prompt should be rendered. The message names valid example ids (orchestrator, integrations_agent, welcome) to make the fix immediate; the command refuses to guess a default agent.","triggerScenarios":"Thrown at src/core/agent_cli.rs:229 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add `--agent <id>` to the command, e.g. `--agent orchestrator`","List available agents with `openhuman agent list` if unsure of the id"],"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"}