{"record":{"id":"6faa6bc8653a13c1","repo":"tinyhumansai/openhuman","slug":"out-dir-is-required","errorCode":null,"errorMessage":"--out <dir> is required","messagePattern":"--out <dir> is required","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/core/agent_cli.rs","lineNumber":105,"sourceCode":"                i += 2;\n            }\n            \"-v\" | \"--verbose\" => {\n                verbose = true;\n                i += 1;\n            }\n            \"-h\" | \"--help\" => {\n                println!(\"Usage: openhuman agent dump-all --out <dir> [--workspace <path>] [--model <name>] [-v]\");\n                println!();\n                println!(\"Render every registered agent's turn-1 system prompt into <dir>.\");\n                println!(\"`integrations_agent` is expanded into one file per currently-connected\");\n                println!(\"Composio toolkit; if no toolkit is connected, it is skipped.\");\n                std::process::exit(0);\n            }\n            other => return Err(anyhow!(\"unknown dump-all arg: {other}\")),\n        }\n    }\n    Ok(DumpAllFlags {\n        out: out.ok_or_else(|| anyhow!(\"--out <dir> is required\"))?,\n        workspace,\n        model,\n        verbose,\n    })\n}\n\nfn run_dump_all(args: &[String]) -> Result<()> {\n    let flags = parse_dump_all_flags(args)?;\n    init_quiet_logging(flags.verbose);\n\n    log::debug!(\n        \"[agent-cli] run_dump_all entry: out={} workspace={:?} model={:?}\",\n        flags.out.display(),\n        flags.workspace,\n        flags.model\n    );\n\n    let rt = tokio::runtime::Builder::new_multi_thread()","sourceCodeStart":87,"sourceCodeEnd":123,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/agent_cli.rs#L87-L123","documentation":"Post-parse validation in run_dump_all: parsing succeeded but the --out flag was never supplied, so the destination directory for the rendered per-agent prompt files is unknown. The command refuses to write anywhere by default and asks for an explicit target.","triggerScenarios":"Thrown at src/core/agent_cli.rs:105 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add `--out <dir>` (or `-o <dir>`) to the dump-all invocation","Ensure the directory is writable — the command writes one file per registered agent"],"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"}