feat(cli): add --swarm startup flag to start the tui with swarm mode enabled #2146
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 217 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.322
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2146"
general
weight: 0.35
bowenliang123
Related Issue
No prior issue. This PR addresses a small CLI ergonomics gap: swarm mode could only be toggled after the TUI started via
/swarm, while other frequently used modes (--auto,--yolo,--plan) already have startup flags.Problem
Users who want to start a session in swarm mode had to launch
kimifirst and then run/swarm onor/swarm <task>. There was no way to opt into swarm mode from the command line, unlike permission modes and plan mode.What changed
--swarmto the mainkimicommand options.CLIOptions→TUIStartupOptions→ initialAppState.session.setSwarmMode(true, 'manual')is called so the runtime enters swarm mode immediately.applyStartupPermissionPlanAndSwarmToAppState.--swarmtogether with--prompt(non-interactive mode has no TUI slash commands).kimi-command.mddocs and added a changeset.Usage example
Start a brand-new session with swarm mode already enabled:
Resume the latest session and switch it to swarm mode:
Checklist
gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.