tinyhumansai/openhuman · warning

missing value for --toolkit

Error message

missing value for --toolkit

What it means

Thrown by parse_dump_flags when `--toolkit`/`-t` is the final token of `openhuman agent dump-prompt`, leaving the Composio toolkit slug unconsumed.

Source

Thrown at src/core/agent_cli.rs:183

        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;
            }
            "--model" | "-m" => {
                out.model = Some(
                    args.get(i + 1)
                        .ok_or_else(|| anyhow!("missing value for --model"))?
                        .clone(),
                );
                i += 2;

View on GitHub (pinned to a221052e0d)

Solutions

  1. Pass a live toolkit slug, e.g. `--toolkit gmail`.
  2. Run `composio list_connection` to see the active slugs you can pass.
  3. Only include --toolkit for integrations_agent; other agents do not need it.

Example fix

# before
openhuman agent dump-prompt --agent integrations_agent --toolkit

# after
openhuman agent dump-prompt --agent integrations_agent --toolkit gmail
Defensive patterns

Strategy: validation

Validate before calling

# shell: only add --toolkit when non-empty
CMD=(openhuman agent dump-prompt --agent integrations_agent)
[ -n "${TOOLKIT:-}" ] && CMD+=(--toolkit "$TOOLKIT")
"${CMD[@]}"

Try / catch

match run_agent_command(&args) {
    Err(e) if e.to_string().contains("missing value for --toolkit") => {
        eprintln!("--toolkit takes a slug, e.g. gmail; run composio list_connection");
    }
    other => other?,
}

Prevention

When it happens

Trigger: `openhuman agent dump-prompt --agent integrations_agent --toolkit` as the last token.

Common situations: Appending --toolkit from an empty shell variable, or forgetting the slug after typing the flag.

Related errors


AI-assisted analysis of tinyhumansai/openhuman@a221052e0d (2026-08-16). Data as JSON: /api/errors/cb0eaed9dba2114f. Report an issue: GitHub.