CLI: support --effort flag as a per-launch thinking-effort override
What feature would you like to see?
Support passing the thinking effort via a CLI flag for the current launch, e.g. kimi --effort low or kimi -p "..." --effort max, mirroring how -m/--model overrides the model per-launch.
Today effort can only be changed through config.toml ([thinking] effort, per-model default_effort / support_efforts, [secondary_model].default_effort) or the ACP protocol's set_config. There is no command-line or per-launch override, which makes it awkward to:
- run one-off
kimi -ptasks with a different effort (e.g. cheaplowfor quick summaries,maxfor hard problems), - temporarily try an effort without editing
~/.kimi-code/config.toml(then remembering to revert), - set effort from scripts / CI.
Additional information
Verified against the source at @moonshot-ai/[email protected] (matches installed v0.31.1):
- The full flag set is registered in
apps/kimi-code/src/cli/commands.tsvia Commander — no effort option exists. CLIOptionsinapps/kimi-code/src/cli/options.tshas no effort field.allowUnknownOption(false)means--effortcurrently fails at startup with "unknown option".- Official docs list no effort flag either: https://www.kimi.com/code/docs/en/kimi-code-cli/reference/kimi-command.html
Related: #1051 (TUI feedback for [thinking].effort) — related but distinct; this request is about a CLI/launch override.
Withdrawn — opened by mistake; was meant as a question, not a request.