tinyhumansai/openhuman · error · anyhow::Error
missing value for --agent
Error message
missing value for --agent
What it means
CLI argument parsing in parse_dump_flags: `--agent`/`-a` was passed with no following value, so the dump flags cannot record which agent to dump. Usage error, not a runtime failure; re-run with e.g. `--agent orchestrator`. Companion flags --toolkit/--workspace/--model have the same shape.
Solutions
- Supply the agent id: `--agent orchestrator`
- Check `openhuman agent list` output for valid ids
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/agent_cli.rs:175 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/32c5da303a488aef.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/agent_cli.rs:175
}
fn parse_dump_flags(args: &[String]) -> Result<DumpFlags> {
let mut out = DumpFlags {
agent: None,
toolkit: None,
workspace: None,
model: None,
json: false,
with_tools: false,
verbose: false,
};
let mut i = 0usize;
while i < args.len() {
match args[i].as_str() {
"--agent" | "-a" => {
out.agent = Some(
args.get(i + 1)
.ok_or_else(|| anyhow!("missing value for --agent"))?
.clone(),
);
i += 2;
}
"--toolkit" | "-t" => {
out.toolkit = Some(
args.get(i + 1)
.ok_or_else(|| anyhow!("missing value for --toolkit"))?
.clone(),
);
i += 2;
}
"--workspace" | "-w" => {
out.workspace = Some(PathBuf::from(
args.get(i + 1)
.ok_or_else(|| anyhow!("missing value for --workspace"))?,
));
i += 2;View on GitHub (pinned to 7491200858)