{"record":{"id":"cb0eaed9dba2114f","repo":"tinyhumansai/openhuman","slug":"missing-value-for-toolkit","errorCode":null,"errorMessage":"missing value for --toolkit","messagePattern":"missing value for --toolkit","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"src/core/agent_cli.rs","lineNumber":183,"sourceCode":"        json: false,\n        with_tools: false,\n        verbose: false,\n    };\n    let mut i = 0usize;\n    while i < args.len() {\n        match args[i].as_str() {\n            \"--agent\" | \"-a\" => {\n                out.agent = Some(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow!(\"missing value for --agent\"))?\n                        .clone(),\n                );\n                i += 2;\n            }\n            \"--toolkit\" | \"-t\" => {\n                out.toolkit = Some(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow!(\"missing value for --toolkit\"))?\n                        .clone(),\n                );\n                i += 2;\n            }\n            \"--workspace\" | \"-w\" => {\n                out.workspace = Some(PathBuf::from(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow!(\"missing value for --workspace\"))?,\n                ));\n                i += 2;\n            }\n            \"--model\" | \"-m\" => {\n                out.model = Some(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow!(\"missing value for --model\"))?\n                        .clone(),\n                );\n                i += 2;","sourceCodeStart":165,"sourceCodeEnd":201,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/a221052e0df5b1f7598fceba7329fd1af95d6699/src/core/agent_cli.rs#L165-L201","documentation":"Thrown by parse_dump_flags when `--toolkit`/`-t` is the final token of `openhuman agent dump-prompt`, leaving the Composio toolkit slug unconsumed.","triggerScenarios":"`openhuman agent dump-prompt --agent integrations_agent --toolkit` as the last token.","commonSituations":"Appending --toolkit from an empty shell variable, or forgetting the slug after typing the flag.","solutions":["Pass a live toolkit slug, e.g. `--toolkit gmail`.","Run `composio list_connection` to see the active slugs you can pass.","Only include --toolkit for integrations_agent; other agents do not need it."],"exampleFix":"# before\nopenhuman agent dump-prompt --agent integrations_agent --toolkit\n\n# after\nopenhuman agent dump-prompt --agent integrations_agent --toolkit gmail","handlingStrategy":"validation","validationCode":"# shell: only add --toolkit when non-empty\nCMD=(openhuman agent dump-prompt --agent integrations_agent)\n[ -n \"${TOOLKIT:-}\" ] && CMD+=(--toolkit \"$TOOLKIT\")\n\"${CMD[@]}\"","typeGuard":null,"tryCatchPattern":"match run_agent_command(&args) {\n    Err(e) if e.to_string().contains(\"missing value for --toolkit\") => {\n        eprintln!(\"--toolkit takes a slug, e.g. gmail; run composio list_connection\");\n    }\n    other => other?,\n}","preventionTips":["Discover slugs with `composio list_connection` before scripting.","--toolkit only matters for integrations_agent; other agents do not take it."],"tags":["rust","cli","argument-parsing","missing-value","composio"],"backgroundTag":null,"analyzedSha":"a221052e0df5b1f7598fceba7329fd1af95d6699","analyzedAt":"2026-08-16T12:47:06.542Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}