kimi-plugin-cc 2.6.2 → 2.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +12 -2
  4. package/README.md +8 -8
  5. package/agents/kimi-swarm-write.md +4 -4
  6. package/agents/kimi-swarm.md +5 -5
  7. package/commands/swarm.md +3 -3
  8. package/dist/cli-client.js +1 -1
  9. package/dist/commands/setup.js +3 -3
  10. package/dist/commands/swarm.js +4 -4
  11. package/dist/hooks/approval-policy.js +1 -1
  12. package/dist/hooks/config-safety.js +5 -4
  13. package/dist/kimi-engine.js +2 -1
  14. package/dist/kimi-timeouts.js +1 -1
  15. package/dist/mcp/operations.js +1 -1
  16. package/dist/swarm-activation.js +8 -8
  17. package/dist/swarm-policy.js +2 -1
  18. package/dist/version.js +1 -1
  19. package/docs/migration.md +1 -1
  20. package/docs/registry-releases.md +3 -1
  21. package/docs/safety.md +15 -15
  22. package/docs/swarm-recovery.md +3 -3
  23. package/docs/upstream-2.6.2-certification.md +15 -3
  24. package/docs/upstream-2.6.3-certification.md +88 -0
  25. package/package.json +2 -1
  26. package/plugins/kimi-codex/.codex-plugin/plugin.json +1 -1
  27. package/plugins/kimi-codex/dist/cli-client.js +1 -1
  28. package/plugins/kimi-codex/dist/commands/setup.js +3 -3
  29. package/plugins/kimi-codex/dist/commands/swarm.js +4 -4
  30. package/plugins/kimi-codex/dist/hooks/approval-policy.js +1 -1
  31. package/plugins/kimi-codex/dist/hooks/config-safety.js +5 -4
  32. package/plugins/kimi-codex/dist/kimi-engine.js +2 -1
  33. package/plugins/kimi-codex/dist/kimi-timeouts.js +1 -1
  34. package/plugins/kimi-codex/dist/mcp/operations.js +1 -1
  35. package/plugins/kimi-codex/dist/swarm-activation.js +8 -8
  36. package/plugins/kimi-codex/dist/swarm-policy.js +2 -1
  37. package/plugins/kimi-codex/dist/version.js +1 -1
  38. package/plugins/kimi-codex/skills/kimi-swarm/SKILL.md +1 -1
  39. package/plugins/kimi-codex/skills/kimi-swarm-write/SKILL.md +1 -1
  40. package/plugins/kimi-dsh/dist/cli-client.js +1 -1
  41. package/plugins/kimi-dsh/dist/commands/setup.js +3 -3
  42. package/plugins/kimi-dsh/dist/commands/swarm.js +4 -4
  43. package/plugins/kimi-dsh/dist/hooks/approval-policy.js +1 -1
  44. package/plugins/kimi-dsh/dist/hooks/config-safety.js +5 -4
  45. package/plugins/kimi-dsh/dist/kimi-engine.js +2 -1
  46. package/plugins/kimi-dsh/dist/kimi-timeouts.js +1 -1
  47. package/plugins/kimi-dsh/dist/mcp/operations.js +1 -1
  48. package/plugins/kimi-dsh/dist/swarm-activation.js +8 -8
  49. package/plugins/kimi-dsh/dist/swarm-policy.js +2 -1
  50. package/plugins/kimi-dsh/dist/version.js +1 -1
  51. package/plugins/kimi-dsh/package.json +1 -1
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "metadata": {
7
7
  "description": "Kimi for Claude Code: code questions, reviews, fixes, parallel tasks, and MCP tasks through the local Kimi Code CLI.",
8
- "version": "2.6.2"
8
+ "version": "2.6.3"
9
9
  },
10
10
  "plugins": [
11
11
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kimi",
3
3
  "description": "Kimi for Claude Code: code questions, independent reviews, bounded fixes, autonomous goals, parallel tasks, and MCP tasks through the local Kimi Code CLI, with PreToolUse safety hooks.",
4
- "version": "2.6.2",
4
+ "version": "2.6.3",
5
5
  "homepage": "https://github.com/linxule/kimi-plugin-cc",
6
6
  "repository": "https://github.com/linxule/kimi-plugin-cc",
7
7
  "license": "Apache-2.0",
package/CHANGELOG.md CHANGED
@@ -2,13 +2,23 @@
2
2
 
3
3
  > **Post-1.0 release history (v1.0.1 -> present) lives in [ROADMAP-TO-GA.md § Post-GA audit log](./ROADMAP-TO-GA.md#post-ga-audit-log)** and the "Version" / "Upstream compat" lines of [AGENTS.md](./AGENTS.md). Docs-only kimi-code compat checkups that don't bump the plugin version (e.g. the 0.14.2 / 0.14.3 patches) are recorded there, not here. Notable releases are summarized below; the GA entry and full pre-GA detail follow.
4
4
 
5
- ## 2.6.2 — 2026-11-14 (publication pending)
5
+ ## 2.6.3 — 2026-11-18 (publication pending)
6
+
7
+ - Certify exact kimi-code 2.6.3 for all eight native-v2 operations under the existing no-plan and bounded-swarm/direct-worker construction. Exact source commit `b0de2fbd2de04d87689225aafd3912e5d193b62d` and bundle SHA-256 `a360023b6814ffdf05bc87e40925df5e0442ae3076ad9e7b6ea6f771e2a1857c` are verified; the upstream scheduler remains byte-identical to 2.6.2 and is not represented as fixed.
8
+ - Review and pin the release's tool-origin, queued Stop-hook and task-reconciliation changes, including additional loop/subagent lifecycle files outside the monitor's scoped filters. The exact 2.6.3 source scan passes **31 tests / 404 assertions**, and the 2.6.2 regression retains **393 assertions** across 115 source pins.
9
+ - Fix candidate smoke activation: the operation-map admission now has matching exact-version preactivation and bounded-policy selection. Retained journals proved the initial zero-child lanes were same-call `Swarm mode is off` results, not upstream child-creation failures. New smoke assertions prevent recurrence.
10
+ - Pass sequential plan-ON/OFF, forced removed-tool and local-environment controls, **23 deterministic stock-binary tests / 138 assertions**, and candidate plus production real-provider matrices each with **30 passes / 390 assertions** and only the two inapplicable narrowed-refusal skips. Real child denials, child-authored patches, out-of-root confinement, direct workers and bounded waves are required evidence.
11
+ - Pass the final full gate with **1,797 tests / 76 expected opt-in or platform skips / 0 failures / 23,469 assertions in 623.26 seconds**, plus 341-file package/DSH and isolated consumer-security checks. Runtime review returned NO FINDINGS; all five documentation findings were corrected and re-reviewed with no new must-fix. Release CI, tagging and npm publication remain pending; no installed-host update is implied. See the [2.6.3 record](docs/upstream-2.6.3-certification.md).
12
+
13
+ ## 2.6.2 — 2026-11-14
6
14
 
7
15
  - Add a bounded swarm construction for exact stock CLI 2.6.2: managed-hook wave admission counts new and resumed entries, rejects forks, and uses a plugin-owned width. Force the native child timeout beyond the finite job budget so a timed-out retry cannot overlap a later wave.
8
16
  - Disable native Bash backgrounding in owned parallel sessions and deny explicit background Bash. Settle identity-verified owned processes after normal exit as well as cancellation before capturing artifacts or patches. Concurrency bounds Kimi child-agent turns; allowed repository commands can still start multiple OS processes.
9
17
  - Run concurrency 1 as one direct worker without native swarm activation or delegation. Preserve read-only policy, temporary-worktree writes, unapplied patches, operation provenance and cancellation.
10
18
  - Keep exact 2.6.0 non-swarm-only and retain the documented recovery limitation on older full-operation rows. This change does not patch the upstream runtime or update installed hosts.
11
- - Certify all eight operations on exact CLI 2.6.2. Final stock-binary controls pass **23 tests / 138 assertions**; live production passes **30 tests / 386 assertions**, with only the two inapplicable narrowed-refusal tests skipped. The full gate passes **1,767 tests / 76 expected opt-in or platform skips / 23,008 assertions in 591.60s**. Kernel-visible Linux validation passes **130 tests / 1 macOS-specific skip / 832 assertions**. Source audit, 340-file package validation, isolated consumer security and both independent reviews pass on corrected runtime `b69a416`. Release CI and publication remain pending; exact commits, first-CI failure chronology and final hashes are in the [2.6.2 record](docs/upstream-2.6.2-certification.md).
19
+ - Certify all eight operations on exact CLI 2.6.2. Final stock-binary controls pass **23 tests / 138 assertions**; live production passes **30 tests / 386 assertions**, with only the two inapplicable narrowed-refusal tests skipped. The full gate passes **1,767 tests / 76 expected opt-in or platform skips / 23,008 assertions in 591.60s**. Kernel-visible Linux validation passes **130 tests / 1 macOS-specific skip / 832 assertions**. Source audit, 340-file package validation, isolated consumer security and both independent reviews pass on corrected runtime `b69a416`. Release CI passed and the GitHub release is published; npm 2.6.2 is published with verified fresh installs and cryptographic signatures; exact commits, first-CI failure chronology and final hashes are in the [2.6.2 record](docs/upstream-2.6.2-certification.md).
20
+
21
+ - Publish the immutable [v2.6.2 tag and GitHub release](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.6.2) at `0f78ade6840dc7eab27da0790c5163082b103e6d` after CI run 43610889478. OIDC run 43611675167 publishes npm `latest` 2.6.2 at `2026-11-14T15:54:45.985Z`. The 340-file registry archive matches the workflow artifact, SHA-256 `be9362451456278812c9678c208fde56357c47e147a39103ee11a610e9655f3d`. Fresh isolated setup/check passes for all three hosts, with zero production advisories and no invalid or missing cryptographic signatures. No installed host or operator CLI pin was changed.
12
22
 
13
23
  ## 2.5.9 — 2026-11-14
14
24
 
package/README.md CHANGED
@@ -40,7 +40,7 @@ You need:
40
40
  - macOS or Linux
41
41
  - Claude Code, Codex, or DSH with plugin support
42
42
  - Node.js 22.5 or newer (24.9 or newer for DSH)
43
- - Kimi Code CLI 2.6.2 with plugin 2.6.2 for bounded swarm and the six other operations. See the [certification record](./docs/upstream-2.6.2-certification.md) and [runtime matrix](./docs/native-v2-certification-provenance.md) for exact scope. Older supported versions retain their documented limits.
43
+ - Kimi Code CLI 2.6.3 with plugin 2.6.3 for bounded swarm and the six other operations. Exact CLI 2.6.2 remains supported under the same construction. See the [2.6.3 certification record](./docs/upstream-2.6.3-certification.md) and [runtime matrix](./docs/native-v2-certification-provenance.md) for exact scope. Older supported versions retain their documented limits.
44
44
 
45
45
  Windows is not currently supported. Contributors can help with the [no-model Windows diagnostics checks](./docs/windows-validation.md). Check your versions in a terminal:
46
46
 
@@ -248,7 +248,7 @@ All refusal codes and their remedies are listed in the [refusal-code catalog](./
248
248
 
249
249
  The tool rules for ask, review, challenge, and read-only swarm deny file writes and shell commands. Rescue and pursue can write files in your workspace. Swarm with `--write` works in a temporary Git worktree. It starts from your latest commit, so it does not include uncommitted changes. It returns a patch without applying it to your project.
250
250
 
251
- On exact CLI 2.6.2, `--max-concurrency 1` runs one worker directly; larger values use waves of at most that many children. Read mode defaults to 4, write mode to 1. `--cap` remains an advisory total count. Parallel runs use brief authenticated loopback processes to activate and deactivate the session; the direct-worker path needs neither. Activation counts against the finite job budget, tokens stay out of logs, and unverified cleanup prevents success. Older certified versions retain their documented activation and recovery limits.
251
+ On exact CLI 2.6.2/2.6.3, `--max-concurrency 1` runs one worker directly; larger values use waves of at most that many children. Read mode defaults to 4, write mode to 1. `--cap` remains an advisory total count. Parallel runs use brief authenticated loopback processes to activate and deactivate the session; the direct-worker path needs neither. Activation counts against the finite job budget, tokens stay out of logs, and unverified cleanup prevents success. Older certified versions retain their documented activation and recovery limits.
252
252
 
253
253
  A slow child holds its wave until completion or the finite job deadline. Fresh waves need at least two entries, so odd target counts may need regrouping. Kimi workers cannot explicitly background Bash, and parallel sessions disable automatic backgrounding. Normal exit and cancellation settle verified owned processes before results or patches are captured. Concurrency counts Kimi child-agent turns; allowed tests can start multiple OS processes, and an individual Bash timeout does not guarantee their settlement between waves.
254
254
 
@@ -288,7 +288,7 @@ Contributors need Bun to run `bun run check`. The detailed engineering documents
288
288
  - macOS 或 Linux
289
289
  - 支持插件的 Claude Code、Codex 或 DSH
290
290
  - Node.js 22.5 或更高版本(DSH 需要 24.9 或更高版本)
291
- - Kimi Code CLI 2.6.2,配合插件 2.6.2 使用有并发上限的 swarm 及其他六项操作。精确范围见[认证记录](./docs/upstream-2.6.2-certification.md)和[运行时矩阵](./docs/native-v2-certification-provenance.md);旧版继续保留其已披露的限制。
291
+ - Kimi Code CLI 2.6.3,配合插件 2.6.3 使用有并发上限的 swarm 及其他六项操作。精确版本 CLI 2.6.2 仍按同一机制获得支持。精确范围见[2.6.3 认证记录](./docs/upstream-2.6.3-certification.md)和[运行时矩阵](./docs/native-v2-certification-provenance.md);旧版继续保留其已披露的限制。
292
292
 
293
293
  目前不支持 Windows。在终端检查版本:
294
294
 
@@ -469,7 +469,7 @@ codex plugin add kimi@kimi-marketplace
469
469
 
470
470
  Ask、review、challenge 和只读 swarm 的工具规则禁止写入文件和执行 shell 命令。Rescue 和 pursue 可以修改工作区内的文件。带 `--write` 的 swarm 在临时 Git 工作树中操作。它从最新提交开始,不包含尚未提交的修改。任务结束后返回补丁,不会自动应用到项目。
471
471
 
472
- 在精确版本 CLI 2.6.2 上,`--max-concurrency 1` 直接运行一个工作代理;更大的值将任务分成多批,每批子代理数不超过该值。只读模式默认 4,写入模式默认 1。`--cap` 仍只是总数建议。并行任务通过短暂的认证本地回环进程激活和停用会话;单代理路径无需这些进程。激活计入任务时限,令牌不写入日志,无法确认清理完成时不会报告成功。旧版继续保留其已披露的激活和恢复限制。
472
+ 在精确版本 CLI 2.6.2/2.6.3 上,`--max-concurrency 1` 直接运行一个工作代理;更大的值将任务分成多批,每批子代理数不超过该值。只读模式默认 4,写入模式默认 1。`--cap` 仍只是总数建议。并行任务通过短暂的认证本地回环进程激活和停用会话;单代理路径无需这些进程。激活计入任务时限,令牌不写入日志,无法确认清理完成时不会报告成功。旧版继续保留其已披露的激活和恢复限制。
473
473
 
474
474
  较慢的子代理会让当前批次等待,直到完成或整个任务达到时限。全新批次至少需要两个条目,因此奇数个目标可能需要重新分组。Kimi 工作代理不能显式将 Bash 放到后台,并行会话也禁用自动后台运行。正常退出和取消都必须确认所管理进程已停止,才会捕获结果或补丁。并发上限计算的是 Kimi 子代理轮次;获准的测试仍可启动多个系统进程,单次 Bash 超时也不保证这些进程在下一批开始前停止。
475
475
 
@@ -511,7 +511,7 @@ Il vous faut :
511
511
  - macOS ou Linux
512
512
  - une version de Claude Code, Codex ou DSH prenant en charge les plugins
513
513
  - Node.js 22.5 ou une version ultérieure (24.9 ou ultérieure pour DSH)
514
- - Kimi Code CLI 2.6.2 avec le plugin 2.6.2 pour swarm à concurrence limitée et les six autres opérations. Consultez le [dossier de certification](./docs/upstream-2.6.2-certification.md) et la [matrice runtime](./docs/native-v2-certification-provenance.md) pour le périmètre exact ; les anciennes versions conservent leurs limites documentées.
514
+ - Kimi Code CLI 2.6.3 avec le plugin 2.6.3 pour swarm à concurrence limitée et les six autres opérations. Le CLI exact 2.6.2 reste pris en charge selon la même construction. Consultez le [dossier de certification 2.6.3](./docs/upstream-2.6.3-certification.md) et la [matrice runtime](./docs/native-v2-certification-provenance.md) pour le périmètre exact ; les anciennes versions conservent leurs limites documentées.
515
515
 
516
516
  Windows n'est pas pris en charge actuellement. Vérifiez les versions dans un terminal :
517
517
 
@@ -690,7 +690,7 @@ Tous les codes de refus et leurs remèdes sont répertoriés dans le [catalogue
690
690
 
691
691
  Les règles des modes ask, review, challenge et swarm en lecture seule interdisent les écritures et les commandes shell. Rescue et pursue peuvent modifier les fichiers de votre espace de travail. Swarm avec `--write` travaille dans un worktree Git temporaire. Il part du dernier commit et n'inclut donc pas les modifications non commitées. Il renvoie un patch sans l'appliquer à votre projet.
692
692
 
693
- Sur le CLI exact 2.6.2, `--max-concurrency 1` lance directement un seul agent ; une valeur supérieure répartit le travail en vagues de cette taille au maximum. Les valeurs par défaut sont 4 en lecture et 1 en écriture. `--cap` reste un conseil sur le nombre total. Les vagues parallèles utilisent de brefs processus locaux authentifiés pour activer puis désactiver la session ; le chemin à un seul agent n’en a pas besoin. L’activation compte dans la durée du job, les jetons restent hors des journaux et un nettoyage non confirmé empêche de déclarer la réussite. Les anciennes versions gardent leurs limites documentées.
693
+ Sur les CLI exacts 2.6.2/2.6.3, `--max-concurrency 1` lance directement un seul agent ; une valeur supérieure répartit le travail en vagues de cette taille au maximum. Les valeurs par défaut sont 4 en lecture et 1 en écriture. `--cap` reste un conseil sur le nombre total. Les vagues parallèles utilisent de brefs processus locaux authentifiés pour activer puis désactiver la session ; le chemin à un seul agent n’en a pas besoin. L’activation compte dans la durée du job, les jetons restent hors des journaux et un nettoyage non confirmé empêche de déclarer la réussite. Les anciennes versions gardent leurs limites documentées.
694
694
 
695
695
  Un enfant lent retient sa vague jusqu’à sa fin ou à la limite de durée du job. Une vague de nouveaux enfants exige au moins deux entrées ; un nombre impair de cibles peut donc nécessiter un regroupement. Les agents Kimi ne peuvent pas lancer Bash explicitement en arrière-plan, et les sessions parallèles désactivent aussi le détachement automatique. La sortie normale et l’annulation attendent l’arrêt des processus gérés avant de capturer résultats ou patchs. La limite compte les tours des agents enfants Kimi ; un test autorisé peut lancer plusieurs processus système, dont l’arrêt entre deux vagues n’est pas garanti par le délai d’un appel Bash.
696
696
 
@@ -730,7 +730,7 @@ Les contributeurs ont besoin de Bun pour exécuter `bun run check`. La documenta
730
730
  - macOS または Linux
731
731
  - プラグインに対応した Claude Code、Codex、または DSH
732
732
  - Node.js 22.5 以降(DSH では 24.9 以降)
733
- - Kimi Code CLI 2.6.2 とプラグイン 2.6.2。並列数を制限した swarm とほかの 6 操作に対応します。正確な範囲は[認証記録](./docs/upstream-2.6.2-certification.md)と[ランタイムマトリックス](./docs/native-v2-certification-provenance.md)を参照してください。旧バージョンの制限は引き続き適用されます。
733
+ - Kimi Code CLI 2.6.3 とプラグイン 2.6.3。並列数を制限した swarm とほかの 6 操作に対応します。正確な CLI 2.6.2 も同じ仕組みで引き続き対応します。正確な範囲は[2.6.3 認証記録](./docs/upstream-2.6.3-certification.md)と[ランタイムマトリックス](./docs/native-v2-certification-provenance.md)を参照してください。旧バージョンの制限は引き続き適用されます。
734
734
 
735
735
  現在、Windows には対応していません。ターミナルでバージョンを確認します。
736
736
 
@@ -911,7 +911,7 @@ codex plugin add kimi@kimi-marketplace
911
911
 
912
912
  Ask、review、challenge、読み取り専用 swarm のツールルールでは、ファイルへの書き込みとシェルコマンドを禁止しています。Rescue と pursue はワークスペース内のファイルを変更できます。`--write` を指定した swarm は、一時的な Git ワークツリーで作業します。最新のコミットから開始するため、未コミットの変更は含まれません。パッチを返すだけで、プロジェクトには自動適用しません。
913
913
 
914
- 正確な CLI 2.6.2 では、`--max-concurrency 1` は 1 つのワーカーを直接実行します。2 以上では、その数以下の子エージェントを 1 組として順に実行します。既定値は読み取りが 4、書き込みが 1 です。`--cap` は総数の目安のままです。並列実行では、認証付きのローカルプロセスでセッションを有効化・無効化します。単一ワーカーでは不要です。有効化もジョブの制限時間に含まれ、トークンはログに出ず、後処理を確認できなければ成功とは報告しません。旧バージョンの制限は引き続き適用されます。
914
+ 正確な CLI 2.6.2/2.6.3 では、`--max-concurrency 1` は 1 つのワーカーを直接実行します。2 以上では、その数以下の子エージェントを 1 組として順に実行します。既定値は読み取りが 4、書き込みが 1 です。`--cap` は総数の目安のままです。並列実行では、認証付きのローカルプロセスでセッションを有効化・無効化します。単一ワーカーでは不要です。有効化もジョブの制限時間に含まれ、トークンはログに出ず、後処理を確認できなければ成功とは報告しません。旧バージョンの制限は引き続き適用されます。
915
915
 
916
916
  遅い子エージェントがある組は、完了またはジョブ全体の期限まで待機します。新規の組には最低 2 項目が必要なので、対象が奇数なら組み直す場合があります。Kimi ワーカーによる明示的な Bash のバックグラウンド実行は禁止され、並列セッションでは自動切り離しも無効です。通常終了とキャンセルのどちらも、管理対象プロセスの停止を確認してから結果やパッチを取得します。並列数は Kimi 子エージェントのターン数です。許可されたテストは複数の OS プロセスを起動でき、個々の Bash のタイムアウトは次の組の開始までにそれらが停止する保証にはなりません。
917
917
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: kimi-swarm-write
3
- description: "Use this agent ONLY when the user has explicitly asked Kimi to make EDITS across MANY disjoint targets IN PARALLEL (a write fan-out) — e.g. \"apply this same change to every handler, in parallel\" or \"fan out these independent edits across these N files.\" Requires BOTH signals: many independent WRITE targets AND explicit fan-out intent. WRITE-CAPABLE but PATCH-ONLY: edits happen in an ephemeral throwaway git worktree off HEAD and come back as a reviewable .patch — the plugin NEVER applies or commits, the user owns the merge, and the real working tree is never touched. Bounded by a MANDATORY hard --budget and version-specific --max-concurrency: exact CLI 2.6.2 uses one direct worker at 1 or hard bounded waves at 2 or more; older certified versions retain their normal-launch recovery limitation. Do NOT auto-promote a single edit (use kimi-rescue), a read-only review fan-out (use kimi-swarm), or an autonomous multi-turn goal loop (use kimi-pursue). Requires kimi-code >= 0.18.0, a git repo with a committed HEAD, and the /kimi:setup PreToolUse hook; refuses without the hook."
3
+ description: "Use this agent ONLY when the user has explicitly asked Kimi to make EDITS across MANY disjoint targets IN PARALLEL (a write fan-out) — e.g. \"apply this same change to every handler, in parallel\" or \"fan out these independent edits across these N files.\" Requires BOTH signals: many independent WRITE targets AND explicit fan-out intent. WRITE-CAPABLE but PATCH-ONLY: edits happen in an ephemeral throwaway git worktree off HEAD and come back as a reviewable .patch — the plugin NEVER applies or commits, the user owns the merge, and the real working tree is never touched. Bounded by a MANDATORY hard --budget and version-specific --max-concurrency: exact CLI 2.6.2/2.6.3 uses one direct worker at 1 or hard bounded waves at 2 or more; older certified versions retain their normal-launch recovery limitation. Do NOT auto-promote a single edit (use kimi-rescue), a read-only review fan-out (use kimi-swarm), or an autonomous multi-turn goal loop (use kimi-pursue). Requires kimi-code >= 0.18.0, a git repo with a committed HEAD, and the /kimi:setup PreToolUse hook; refuses without the hook."
4
4
  model: sonnet
5
5
  tools: Bash
6
6
  color: red
@@ -47,17 +47,17 @@ When invoked:
47
47
  - confirm BOTH signals are present before dispatching: (1) MANY disjoint WRITE targets and (2) an explicit request to fan the edits out in parallel. If the user wants a single edit, use `kimi-rescue`; a read-only fan-out, `kimi-swarm`; an autonomous multi-turn loop, `kimi-pursue`. When in doubt, prefer `kimi-rescue` — do not shard one task into a swarm
48
48
  - preserve the user's objective and the disjoint target list with minimal reframing; partition into NON-overlapping targets (the subagents edit in one shared worktree, so overlapping targets can clobber each other)
49
49
  - call the shared companion runtime with one Bash invocation after any model-discovery step: `${CLAUDE_PLUGIN_ROOT}/scripts/companion.sh task swarm --write <args>` (the `--write` flag is REQUIRED — this agent is the write path)
50
- - the companion accepts a **strict allowlist** of flags: `--thinking <off|low|medium|high>` (requested per run), `--budget <duration>` (HARD wall-clock ceiling; e.g. `30m`, `1h`, `90s`; bare number = minutes; default 30m, max 24h), `--cap <N>` (SOFT total-subagent-count hint injected into the coordinator prompt — advisory, the hook does not maintain a lifetime-total count), `--max-concurrency <N>` (**defaults to 1**; exact CLI 2.6.2 uses one direct worker at 1 and bounded waves at 2 or more; older certified versions retain normal-launch limits and the recovery overrun), and `-m`/`--model <name>`. Everything else is trailing objective text. Reasoning behavior follows the selected model and Kimi configuration unless `--thinking <effort>` requests one for this run (honoured by Kimi's own providers on models that can turn thinking off; other providers ignore it silently; the plugin cannot verify it). `--no-thinking` is rejected; use `--thinking off`
50
+ - the companion accepts a **strict allowlist** of flags: `--thinking <off|low|medium|high>` (requested per run), `--budget <duration>` (HARD wall-clock ceiling; e.g. `30m`, `1h`, `90s`; bare number = minutes; default 30m, max 24h), `--cap <N>` (SOFT total-subagent-count hint injected into the coordinator prompt — advisory, the hook does not maintain a lifetime-total count), `--max-concurrency <N>` (**defaults to 1**; exact CLI 2.6.2/2.6.3 uses one direct worker at 1 and bounded waves at 2 or more; older certified versions retain normal-launch limits and the recovery overrun), and `-m`/`--model <name>`. Everything else is trailing objective text. Reasoning behavior follows the selected model and Kimi configuration unless `--thinking <effort>` requests one for this run (honoured by Kimi's own providers on models that can turn thinking off; other providers ignore it silently; the plugin cannot verify it). `--no-thinking` is rejected; use `--thinking off`
51
51
  - do not invent flags. The runtime hard-fails with `INVALID_ARGS` on unknown flag-shaped tokens — pass `--` before flag-shaped objective text to forward it as objective text rather than a flag
52
52
  - **this is write-capable, but the blast radius is bounded by construction — and PATCH-ONLY is the load-bearing safety property.** Every edit happens in an ephemeral worktree off HEAD; the `coder` subagents fire the index-0 PreToolUse hook on every tool call (the `swarm-write` label routes write/edit/shell through the rescue allowlist, scoped to a forge-proof trusted worktree root — not the payload cwd), so writes are confined to that worktree and out-of-worktree writes + git mutation are denied. The result is a `.patch` the user reviews and applies themselves — **the plugin never applies or commits, and the user's real tree is never touched.** Always pass an explicit `--budget` sized to the task (keep it at or below 30m unless the user named a larger window) and an explicit `--max-concurrency` (leave at 1 unless the user asks to parallelize writes and the targets are provably disjoint). Never try to remove these bounds
53
53
  - swarm-write **bases the worktree on HEAD: uncommitted changes are NOT included.** If the user has a dirty tree the runtime warns; surface that and suggest committing or stashing first if the swarm needs those changes
54
- - Exact CLI 2.6.2 counts simultaneous Kimi child-agent turns, excluding the coordinator and OS subprocesses started by allowed tests. Fresh-only waves require at least two entries; group odd target counts into disjoint entries or resume an own-session child for remaining work. A stuck child holds its wave until completion or finite whole-job stop. Kimi workers cannot explicitly background Bash, and native automatic backgrounding is disabled for parallel sessions. Normal exit and cancellation settle verified owned processes before patch capture; individual Bash timeout does not prove descendant quiescence between waves.
54
+ - Exact CLI 2.6.2/2.6.3 counts simultaneous Kimi child-agent turns, excluding the coordinator and OS subprocesses started by allowed tests. Fresh-only waves require at least two entries; group odd target counts into disjoint entries or resume an own-session child for remaining work. A stuck child holds its wave until completion or finite whole-job stop. Kimi workers cannot explicitly background Bash, and native automatic backgrounding is disabled for parallel sessions. Normal exit and cancellation settle verified owned processes before patch capture; individual Bash timeout does not prove descendant quiescence between waves.
55
55
  - Parallel native Bash uses a 60-second default and 300-second maximum foreground timeout, killing commands on expiry. Choose `--max-concurrency 1` for longer tests: automatic timeout-to-background remains available there, while root-agent turns stay sequential and whole-job settlement still gates patch capture.
56
56
  - swarm-write is foreground-only **at the runtime level** — `--background`, `--wait`, `--fresh`, and `--resume` are rejected with `INVALID_ARGS`. The caller's host Bash launch is separate from the Kimi worker tools above: **default to `run_in_background: true`.** A fan-out routinely outlives a foreground shell timeout (Claude Code caps foreground Bash at 10 minutes; `--budget` defaults to 30m), and the run remains patch-only and worktree-confined. Keep `--budget` and `--max-concurrency` finite; never make a detached run open-ended
57
57
  - **the user should never have to type a job id** (it is a raw UUID), and you will not have one either — a detached run prints nothing at launch; the job id only reaches you with the final report. So cancel by omitting it: `${CLAUDE_PLUGIN_ROOT}/scripts/companion.sh cancel` targets the latest RUNNING job for this repo (`findLatestJob({runningOnly:true})`), which is the run you just launched. Pass an explicit id only if you already have one from a completed report. Note the ambiguity: with two runs in flight, the no-id form takes the most recent — if the user has more than one going, confirm which they mean before cancelling
58
58
  - **prefer `companion.sh cancel` over an Esc/interrupt, and say so if the user asks how to stop it.** A harness interrupt gives the companion only ~1.35s before SIGKILL (measured), which is less than its own 1500ms child-escalation plus quiescence plus `git diff --binary` patch capture — so interrupting can kill the run mid-teardown and **lose the patch**. The cancel command signals the job from a separate process that is not racing that deadline, so teardown completes and the partial patch survives
59
59
  - swarm-write **REFUSES without the `/kimi:setup` PreToolUse hook** (a write fan-out with no per-subagent enforcement is an N-fold blast radius). If the companion refuses, surface that and tell the user to run `/kimi:setup`; do not reach for `KIMI_PLUGIN_CC_SKIP_HOOK_CHECK`
60
- - requires an exact certified CLI, at least 0.18.0, and a Git repo with committed HEAD; exact 2.6.2 uses bounded waves or a direct worker, while older versions retain their recovery limitation. Surface `WRITE_SWARM_NOT_A_REPO` / `WRITE_SWARM_NO_HEAD` plainly
60
+ - requires an exact certified CLI, at least 0.18.0, and a Git repo with committed HEAD; exact 2.6.2/2.6.3 uses bounded waves or a direct worker, while older versions retain their recovery limitation. Surface `WRITE_SWARM_NOT_A_REPO` / `WRITE_SWARM_NO_HEAD` plainly
61
61
  - `/kimi:result <jobId> --json` returns a structured envelope with metadata plus the artifact body.
62
62
 
63
63
  When swarm-write completes:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: kimi-swarm
3
- description: "Use this agent ONLY when the user has explicitly asked for a READ-ONLY review fanned out in PARALLEL across many independent targets (files, modules, or questions) at once — a user-scoped whole-directory or repo-wide audit where one subagent per target is the point. Requires BOTH signals: many independent targets AND an explicit request for parallel fan-out. Do NOT auto-promote a single, unscoped, or diff-shaped review into a per-file swarm — use kimi-review for a single working-tree/branch diff or any review the user did not scope as a fan-out. Read-only (every subagent is hook-denied writes — zero write surface), bounded by a hard wall-clock --budget and version-specific concurrency control (hard bounded waves or one direct worker on exact CLI 2.6.2; normal-launch limits on older certified versions); requires the /kimi:setup PreToolUse hook and refuses without it. Not for writes (see kimi-rescue) or free-form Q&A (see kimi-ask)."
3
+ description: "Use this agent ONLY when the user has explicitly asked for a READ-ONLY review fanned out in PARALLEL across many independent targets (files, modules, or questions) at once — a user-scoped whole-directory or repo-wide audit where one subagent per target is the point. Requires BOTH signals: many independent targets AND an explicit request for parallel fan-out. Do NOT auto-promote a single, unscoped, or diff-shaped review into a per-file swarm — use kimi-review for a single working-tree/branch diff or any review the user did not scope as a fan-out. Read-only (every subagent is hook-denied writes — zero write surface), bounded by a hard wall-clock --budget and version-specific concurrency control (hard bounded waves or one direct worker on exact CLI 2.6.2/2.6.3; normal-launch limits on older certified versions); requires the /kimi:setup PreToolUse hook and refuses without it. Not for writes (see kimi-rescue) or free-form Q&A (see kimi-ask)."
4
4
  model: sonnet
5
5
  tools: Bash
6
6
  color: green
@@ -42,13 +42,13 @@ When invoked:
42
42
  - decide whether the task is a BROAD read-only fan-out rather than a single-diff review (kimi-review), free-form ask (kimi-ask), or implementation (kimi-rescue); for one working-tree or branch diff, use kimi-review instead
43
43
  - preserve the user's review scope as the trailing focus text — what to review across the workspace — with minimal reframing
44
44
  - call the shared companion runtime with one Bash invocation after any model-discovery step: `${CLAUDE_PLUGIN_ROOT}/scripts/companion.sh task swarm <args>`
45
- - the companion accepts a **strict allowlist** of flags: `--thinking <off|low|medium|high>` (requested per run), `--budget <duration>` (HARD wall-clock ceiling; e.g. `30m`, `1h`, `90s`; bare number = minutes; default 30m), `--cap <N>` (SOFT total-subagent-count hint injected into the coordinator prompt — advisory, the hook does not maintain a lifetime-total count), `--max-concurrency <N>` (**defaults to 4**; exact CLI 2.6.2 uses one direct worker at 1 and bounded waves at 2 or more; older certified versions retain normal-launch limits and the recovery overrun), and `-m`/`--model <name>`. Everything else is trailing focus text. Reasoning behavior follows the selected model and Kimi configuration unless `--thinking <effort>` requests one for this run (honoured by Kimi's own providers on models that can turn thinking off; other providers ignore it silently; the plugin cannot verify it). `--no-thinking` is rejected; use `--thinking off`
45
+ - the companion accepts a **strict allowlist** of flags: `--thinking <off|low|medium|high>` (requested per run), `--budget <duration>` (HARD wall-clock ceiling; e.g. `30m`, `1h`, `90s`; bare number = minutes; default 30m), `--cap <N>` (SOFT total-subagent-count hint injected into the coordinator prompt — advisory, the hook does not maintain a lifetime-total count), `--max-concurrency <N>` (**defaults to 4**; exact CLI 2.6.2/2.6.3 uses one direct worker at 1 and bounded waves at 2 or more; older certified versions retain normal-launch limits and the recovery overrun), and `-m`/`--model <name>`. Everything else is trailing focus text. Reasoning behavior follows the selected model and Kimi configuration unless `--thinking <effort>` requests one for this run (honoured by Kimi's own providers on models that can turn thinking off; other providers ignore it silently; the plugin cannot verify it). `--no-thinking` is rejected; use `--thinking off`
46
46
  - do not invent flags. The runtime hard-fails with `INVALID_ARGS` on unknown flag-shaped tokens — pass `--` before flag-shaped objective text to forward it as scope text rather than a flag
47
- - **Keep the finite runtime bounds.** Read-only workers deny writes and shell through the managed hook. `--max-concurrency` defaults to 4 and `--budget` to 30m. Exact CLI 2.6.2 enforces bounded waves, or a direct worker at 1; older certified versions retain the disclosed recovery overrun. Pass an explicit concurrency sized to the targets (raise only when the user asks) and keep the budget at or below 30m unless the user requests more. Neither a time budget nor concurrency is a dollar or lifetime-token cap.
48
- - Exact CLI 2.6.2 counts simultaneous Kimi child-agent turns, excluding the coordinator and OS subprocesses. Fresh-only waves require at least two entries; group odd target counts into disjoint entries or resume an own-session child for remaining work. A stuck child holds its wave until completion or finite whole-job stop. Normal exit and cancellation require verified owned-process settlement before returning artifacts.
47
+ - **Keep the finite runtime bounds.** Read-only workers deny writes and shell through the managed hook. `--max-concurrency` defaults to 4 and `--budget` to 30m. Exact CLI 2.6.2/2.6.3 enforces bounded waves, or a direct worker at 1; older certified versions retain the disclosed recovery overrun. Pass an explicit concurrency sized to the targets (raise only when the user asks) and keep the budget at or below 30m unless the user requests more. Neither a time budget nor concurrency is a dollar or lifetime-token cap.
48
+ - Exact CLI 2.6.2/2.6.3 counts simultaneous Kimi child-agent turns, excluding the coordinator and OS subprocesses. Fresh-only waves require at least two entries; group odd target counts into disjoint entries or resume an own-session child for remaining work. A stuck child holds its wave until completion or finite whole-job stop. Normal exit and cancellation require verified owned-process settlement before returning artifacts.
49
49
  - swarm is **foreground-only** — do not pass `--background`, `--wait`, `--fresh`, or `--resume` (the parser rejects them with `INVALID_ARGS`). Default to foreground so the run stays watchable. Detach the Bash call with `run_in_background: true` ONLY when the user explicitly asks for fire-and-forget, and only with a finite `--max-concurrency` and a reduced `--budget` (a backgrounded fan-out has no human watching it to Ctrl+C); after launching, tell the user to check `/kimi:status` for progress
50
50
  - swarm **REFUSES without the `/kimi:setup` PreToolUse hook**, matching every model-spawning command. If the companion refuses, surface that and tell the user to run `/kimi:setup`; do not reach for `KIMI_PLUGIN_CC_SKIP_HOOK_CHECK`
51
- - requires an exact certified CLI (legacy minimum 0.12.0); older versions gain normal-launch concurrency support at 0.18.0, while exact 2.6.2 uses the bounded-wave/direct-worker construction
51
+ - requires an exact certified CLI (legacy minimum 0.12.0); older versions gain normal-launch concurrency support at 0.18.0, while exact 2.6.2/2.6.3 uses the bounded-wave/direct-worker construction
52
52
  - `/kimi:result <jobId> --json` returns a structured envelope with metadata plus the artifact body.
53
53
 
54
54
  When swarm completes:
package/commands/swarm.md CHANGED
@@ -19,15 +19,15 @@ Supported flags:
19
19
  - `--write` — fan out EDITS (not just review). Requires kimi-code **>= 0.18.0**, a git repo with a committed HEAD, and the PreToolUse hook. Bases the worktree on HEAD: **uncommitted changes are NOT included** (you'll get a warning) — commit or stash first if the swarm needs them. `--write` is also reachable via the model-invocable `kimi-swarm-write` subagent, with strict triggering (many disjoint write targets AND explicit fan-out intent); auto-dispatch widens no write surface and keeps every bound, and the slash command itself stays human-only.
20
20
  - `--budget <duration>` — HARD wall-clock ceiling (e.g. `30m`, `1h`, `90s`; bare number = minutes). Default 30m. The always-on bound on cost/runaway.
21
21
  - `--cap <N>` — SOFT cap on TOTAL subagent count: injected into the prompt as a model instruction. Advisory, not hook-enforced (the hook does not maintain a lifetime-total count), so the model may exceed it. Bounds lifetime total, not peak parallelism.
22
- - `--max-concurrency <N>` — defaults to **4 for read, 1 for `--write`**. On exact CLI 2.6.2, 1 selects a direct worker with delegation denied; 2 or more bounds simultaneous Kimi child-agent turns, counting fresh plus resumed entries per wave. Fresh-only waves need at least two entries: group multiple targets into disjoint entries or resume an own-session child for an odd remainder. OS subprocesses started by allowed tests are outside this count. Older certified versions use normal-launch limits on CLI 0.18.0+ and retain their rate-limit-recovery overrun. Distinct from `--cap`: simultaneous concurrency is not a lifetime-total count.
22
+ - `--max-concurrency <N>` — defaults to **4 for read, 1 for `--write`**. On exact CLI 2.6.2/2.6.3, 1 selects a direct worker with delegation denied; 2 or more bounds simultaneous Kimi child-agent turns, counting fresh plus resumed entries per wave. Fresh-only waves need at least two entries: group multiple targets into disjoint entries or resume an own-session child for an odd remainder. OS subprocesses started by allowed tests are outside this count. Older certified versions use normal-launch limits on CLI 0.18.0+ and retain their rate-limit-recovery overrun. Distinct from `--cap`: simultaneous concurrency is not a lifetime-total count.
23
23
  - `-m`, `--model <name>`
24
24
 
25
25
  Prototype limitations:
26
26
 
27
- - On exact CLI 2.6.2, a stuck child holds its wave until completion or finite whole-job stop. Native Bash backgrounding is disabled in parallel sessions, and explicit background Bash is denied for Kimi workers. Normal exit and cancellation settle verified owned processes before artifact or patch capture; an individual Bash timeout is not a descendant barrier between waves. This restriction concerns tools inside Kimi, separately from the caller's shell launch below.
27
+ - On exact CLI 2.6.2/2.6.3, a stuck child holds its wave until completion or finite whole-job stop. Native Bash backgrounding is disabled in parallel sessions, and explicit background Bash is denied for Kimi workers. Normal exit and cancellation settle verified owned processes before artifact or patch capture; an individual Bash timeout is not a descendant barrier between waves. This restriction concerns tools inside Kimi, separately from the caller's shell launch below.
28
28
  - Parallel Bash has a 60-second default and 300-second maximum foreground timeout; it kills commands on expiry. Use `--max-concurrency 1` for longer tests. Native automatic timeout-to-background remains available at 1, with sequential root-agent turns and whole-job settlement before result capture.
29
29
  - **No `--background` flag** — the runtime has no detached-worker mode for swarm. That is separate from how the *caller* runs the shell command: for `--write` (30m default budget vs a 10-minute foreground Bash cap) detaching the call is expected; for a read-only fan-out the default stays foreground and detaching is a per-request choice. `--budget` and `--max-concurrency` stay finite either way, and budget expiry still captures the patch/report. To stop a run, just say so — the stop path is `companion.sh cancel` with no id (it targets the latest running job for this repo). For `--write`, prefer that over Esc: an interrupt can kill the run mid-teardown and lose the captured patch.
30
- - Read-only swarm requires an exact certified CLI (legacy minimum 0.12.0); `--write` additionally requires at least 0.18.0 and committed HEAD. Both refuse without the managed PreToolUse hook. Exact 2.6.2 has the bounded-wave/direct-worker paths; older certified versions retain their documented concurrency limits.
30
+ - Read-only swarm requires an exact certified CLI (legacy minimum 0.12.0); `--write` additionally requires at least 0.18.0 and committed HEAD. Both refuse without the managed PreToolUse hook. Exact 2.6.2/2.6.3 has the bounded-wave/direct-worker paths; older certified versions retain their documented concurrency limits.
31
31
 
32
32
  Return the companion stdout verbatim.
33
33
 
@@ -966,7 +966,7 @@ function buildArgs(opts) {
966
966
  ? opts.env.KIMI_PLUGIN_CC_SMOKE_V2_CANDIDATE
967
967
  : undefined;
968
968
  if (opts.resumeSessionId === undefined &&
969
- ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(opts.executionPlan.kimiVersion ?? smokeCandidate ?? "")) {
969
+ ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(opts.executionPlan.kimiVersion ?? smokeCandidate ?? "")) {
970
970
  args.push("--environment", "local");
971
971
  }
972
972
  if (opts.resumeSessionId !== undefined) {
@@ -977,12 +977,12 @@ async function collectKimiVersionWarnings(env, warnings) {
977
977
  warnings.push(formatVersionOutOfRangeWarning(probe, KIMI_PLUGIN_CC_VERSION, NATIVE_V2_ANY_OPERATION_VERSIONS));
978
978
  return;
979
979
  }
980
- if (probe.version === "2.6.2") {
981
- warnings.push("NOTE: kimi-code 2.6.2 is certified for all operations. Swarm uses bounded waves with concurrency 2 or more, and one direct worker at concurrency 1. The finite job budget stops the whole run.");
980
+ if (probe.version === "2.6.2" || probe.version === "2.6.3") {
981
+ warnings.push(`NOTE: kimi-code ${probe.version} is certified for all operations. Swarm uses bounded waves with concurrency 2 or more, and one direct worker at concurrency 1. The finite job budget stops the whole run.`);
982
982
  return;
983
983
  }
984
984
  if (NATIVE_V2_NON_SWARM_VERSIONS.includes(probe.version)) {
985
- warnings.push(`NOTE: kimi-code ${probe.version} is certified for review, challenge, ask, rescue, review gate, and pursue only. Read-only swarm and write swarm refuse before model spawn on this exact release. Select exact kimi-code 2.6.2 for this plugin's certified bounded waves and single-worker path.`);
985
+ warnings.push(`NOTE: kimi-code ${probe.version} is certified for review, challenge, ask, rescue, review gate, and pursue only. Read-only swarm and write swarm refuse before model spawn on this exact release. Select exact kimi-code 2.6.2 or 2.6.3 for this plugin's certified bounded waves and single-worker path.`);
986
986
  }
987
987
  }
988
988
  /**
@@ -24,7 +24,7 @@ import { buildKimiSessionTitle, syncKimiSessionTitle } from "../session-title.js
24
24
  import { usesBoundedSwarmPolicy } from "../swarm-policy.js";
25
25
  // /kimi:swarm — parallel fan-out, read-only by default and runtime-foreground-only.
26
26
  // A finite wall-clock budget bounds the whole run. --cap is a SOFT total-count
27
- // prompt hint. Exact native-v2 2.6.2 bounds admitted waves and prevents native
27
+ // prompt hint. Exact native-v2 2.6.2/2.6.3 bounds admitted waves and prevents native
28
28
  // child timeouts from returning a continuing coordinator before children stop.
29
29
  // Concurrency 1 uses a direct worker without native fan-out. Older versions keep
30
30
  // their normal-launch setting and inherited recovery limitation. Read/write
@@ -33,7 +33,7 @@ import { usesBoundedSwarmPolicy } from "../swarm-policy.js";
33
33
  // confinement on the coordinator and every subagent. Write mode requires
34
34
  // kimi-code 0.18.0+. Exact 2.3.2, 2.3.3, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.5.2,
35
35
  // and certified 2.5.3 activate a same-job session through a bounded loopback
36
- // web lifecycle, then resume it through the normal print path. 2.6.2 parallel
36
+ // web lifecycle, then resume it through the normal print path. 2.6.2/2.6.3 parallel
37
37
  // waves and candidate-only 2.6.0 use that lifecycle too. The per-operation certification
38
38
  // table controls whether each exact version is reachable in production.
39
39
  const SWARM_SUMMARY_MAX = 120;
@@ -41,7 +41,7 @@ const SWARM_AGENT_PROFILE = "<swarm>";
41
41
  const SWARM_WRITE_AGENT_PROFILE = "<swarm-write>";
42
42
  /**
43
43
  * Default concurrency setting when the user passes no `--max-concurrency`.
44
- * Exact native-v2 2.6.2 also enforces this as the admitted wave size. The plugin exports
44
+ * Exact native-v2 2.6.2/2.6.3 also enforces this as the admitted wave size. The plugin exports
45
45
  * KIMI_CODE_AGENT_SWARM_MAX_CONCURRENCY; older read-only swarms ignore it and
46
46
  * retain only the wall-clock hard bound. Rate-limit recovery can exceed it on
47
47
  * older reviewed sources; their setting is not an unconditional peak guarantee.
@@ -57,7 +57,7 @@ export function resolveSwarmMaxConcurrency(requested) {
57
57
  return requested ?? SWARM_DEFAULT_MAX_CONCURRENCY;
58
58
  }
59
59
  /**
60
- * Default concurrency for WRITE mode — 1 vs read's 4. Exact native-v2 2.6.2
60
+ * Default concurrency for WRITE mode — 1 vs read's 4. Exact native-v2 2.6.2/2.6.3
61
61
  * runs one direct worker; older versions serialize normal child launches but
62
62
  * retain the rate-limit recovery overrun. Disjoint-target partitioning remains
63
63
  * prompt-only when parallel workers are explicitly requested.
@@ -146,7 +146,7 @@ export function decideHookOutcomePure(input, ctx) {
146
146
  // AgentSwarm are allowed and the singular Agent stays denied. This adds
147
147
  // no direct tool-write permission within the repository/Git trust
148
148
  // boundary: read-only Git context commands still trust repository Git
149
- // configuration and can execute configured helpers. Exact 2.6.2 waves
149
+ // configuration and can execute configured helpers. Exact 2.6.2/2.6.3 waves
150
150
  // pass the admission guard above; fresh children cannot activate swarm
151
151
  // mode. Older paths retain their inherited scheduler limitations.
152
152
  if (READ_ONLY_TOOLS.has(toolName) || toolName === AGENT_SWARM_TOOL) {
@@ -596,9 +596,9 @@ function validateVersionSensitiveEvents(events, version) {
596
596
  // 2.0.2 (9d07f634), 2.1.0 (52437299), 2.1.1 (f67e6398), 2.2.0 (472192c3),
597
597
  // 2.3.0 (b5e28fd6), 2.3.1 (684bae9e), 2.3.2 (b8dd3a13), 2.3.3 (ec495f0c),
598
598
  // 2.4.0 (f26e4d91), 2.4.1 (2c73f3f5), 2.5.0 (41c34143), 2.5.1 (1b02030d),
599
- // 2.5.2 (1c142a00), 2.5.3 (5af9942e), 2.6.0 (740d6c0b), and 2.6.2
600
- // (6a8493df): the additive events and HookDefSchema are unchanged. Exact 2.6.x
601
- // schema acceptance does not certify swarm operations.
599
+ // 2.5.2 (1c142a00), 2.5.3 (5af9942e), 2.6.0 (740d6c0b), 2.6.2
600
+ // (6a8493df), and 2.6.3 (b0de2fbd): the additive events and HookDefSchema are
601
+ // unchanged. Exact 2.6.x schema acceptance does not certify swarm operations.
602
602
  // Require the full version string AND matching components; no inferred 2.x compatibility.
603
603
  if (version.major === 2 && ((version.minor === 0 && ((version.version === "2.0.0" && version.patch === 0) ||
604
604
  (version.version === "2.0.1" && version.patch === 1) ||
@@ -617,7 +617,8 @@ function validateVersionSensitiveEvents(events, version) {
617
617
  (version.version === "2.5.2" && version.patch === 2) ||
618
618
  (version.version === "2.5.3" && version.patch === 3))) ||
619
619
  (version.minor === 6 && ((version.version === "2.6.0" && version.patch === 0) ||
620
- (version.version === "2.6.2" && version.patch === 2))))) {
620
+ (version.version === "2.6.2" && version.patch === 2) ||
621
+ (version.version === "2.6.3" && version.patch === 3))))) {
621
622
  return { valid: true };
622
623
  }
623
624
  if (version.major !== 0) {
@@ -50,6 +50,7 @@ export const NATIVE_V2_CERTIFIED_VERSIONS = Object.freeze([
50
50
  "2.5.2",
51
51
  "2.5.3",
52
52
  "2.6.2",
53
+ "2.6.3",
53
54
  ]);
54
55
  /**
55
56
  * Exact releases certified only for review, challenge, ask, rescue, review_gate
@@ -569,7 +570,7 @@ function nativeV2NotCertified(operationKind, version) {
569
570
  if (normalized !== undefined &&
570
571
  NATIVE_V2_NON_SWARM_VERSIONS.includes(normalized) &&
571
572
  (operationKind === "swarm" || operationKind === "swarm-write")) {
572
- return new RuntimeError("KIMI_CAPABILITY_NOT_CERTIFIED", `Refusing ${operationKind}: kimi-code ${normalized} is certified only for non-swarm operations (review, challenge, ask, rescue, review_gate, pursue). Its native rate-limit recovery can exceed AgentSwarm's configured maximum, so this exact release refuses swarm before model spawn. Select exact kimi-code 2.6.2 for this plugin's certified bounded waves and single-worker path, or use a non-swarm operation on ${normalized}.`, "kimi-engine.capability", {
573
+ return new RuntimeError("KIMI_CAPABILITY_NOT_CERTIFIED", `Refusing ${operationKind}: kimi-code ${normalized} is certified only for non-swarm operations (review, challenge, ask, rescue, review_gate, pursue). Its native rate-limit recovery can exceed AgentSwarm's configured maximum, so this exact release refuses swarm before model spawn. Select exact kimi-code 2.6.2 or 2.6.3 for this plugin's certified bounded waves and single-worker path, or use a non-swarm operation on ${normalized}.`, "kimi-engine.capability", {
573
574
  details: {
574
575
  refusal_kind: "v2-swarm-not-certified",
575
576
  certification_scope: "non-swarm",
@@ -23,7 +23,7 @@ export const KIMI_PURSUE_DEFAULT_BUDGET_MS = 2_700_000; // 45 minutes
23
23
  * Swarm (read-only parallel fan-out) DEFAULT wall-clock ceiling when the user
24
24
  * passes no `--budget`. Read-only swarm opens no write surface, so the only new
25
25
  * risk is cost/runaway from repeated model work. This AbortController bounds
26
- * the whole job; `--cap` remains a soft lifetime-count hint. Exact 2.6.2 also
26
+ * the whole job; `--cap` remains a soft lifetime-count hint. Exact 2.6.2/2.6.3 also
27
27
  * bounds wave cardinality and prevents child timeouts from overlapping waves;
28
28
  * a requested concurrency of one runs a direct worker. Sized like the single-turn
29
29
  * review budget — a swarm fans review work out in parallel within one process,
@@ -65,7 +65,7 @@ const CAP_PROPERTY = {
65
65
  const MAX_CONCURRENCY_PROPERTY = {
66
66
  type: "integer",
67
67
  minimum: 1,
68
- description: "Concurrent worker limit on exact Kimi Code 2.6.2: one runs directly; larger values bound each native swarm wave. Older certified versions limit normal launches only and recovery can exceed it. Distinct from the soft total cap.",
68
+ description: "Concurrent worker limit on exact Kimi Code 2.6.2/2.6.3: one runs directly; larger values bound each native swarm wave. Older certified versions limit normal launches only and recovery can exceed it. Distinct from the soft total cap.",
69
69
  };
70
70
  const START_RESULT_GUIDANCE = "Task-capable clients receive an MCP task. Other clients receive a job ID immediately after launch; use kimi_job_status and kimi_job_result until terminal, and kimi_job_cancel to stop. Do not present a launch handle as the finished answer.";
71
71
  function schema(properties, required = []) {
@@ -13,7 +13,7 @@ import { usesBoundedSwarmPolicy } from "./swarm-policy.js";
13
13
  import { installBoundedSwarmToolPolicy } from "./swarm-tool-policy.js";
14
14
  import { collectDescendantIdentities, collectProcessGroupsIdentities, probeProcessIdentity, revalidateProcessIdentities, waitForProcessTreeExit, } from "./process-tree.js";
15
15
  // These exact 2.6.x activation entries support candidate integration; production scope is per operation.
16
- const PREACTIVATION_VERSIONS = ["2.3.2", "2.3.3", "2.4.0", "2.4.1", "2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"];
16
+ const PREACTIVATION_VERSIONS = ["2.3.2", "2.3.3", "2.4.0", "2.4.1", "2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"];
17
17
  const READY_TIMEOUT_MS = 10_000;
18
18
  const REST_TIMEOUT_MS = 5_000;
19
19
  // Exact 2.4.0 can take longer than 5s to drain session/workspace lifecycle work.
@@ -343,7 +343,7 @@ async function resolveProfileModel(web, options, failureCode) {
343
343
  }
344
344
  async function createSession(web, options, expectedVersion, failureCode) {
345
345
  const request = { metadata: { cwd: options.cwd } };
346
- if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion)) {
346
+ if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion)) {
347
347
  request.environment_id = "local";
348
348
  request.environment_cwd = options.cwd;
349
349
  }
@@ -354,7 +354,7 @@ async function createSession(web, options, expectedVersion, failureCode) {
354
354
  return { sessionId: data.id, workspaceId: data.workspace_id };
355
355
  }
356
356
  async function verifyLocalEnvironment(web, identity, expectedCwd, expectedVersion, signal, failureCode) {
357
- if (!["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion))
357
+ if (!["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion))
358
358
  return;
359
359
  const data = await restData(web, "GET", `/api/v1/sessions/${encodeURIComponent(identity.sessionId)}/environment`, undefined, signal, failureCode);
360
360
  if (!isRecord(data)) {
@@ -374,10 +374,10 @@ async function postSwarmProfile(web, identity, active, model, signal, failureCod
374
374
  await restData(web, "POST", `/api/v1/sessions/${encodeURIComponent(identity.sessionId)}/profile`, { agent_config: agentConfig }, signal, failureCode);
375
375
  }
376
376
  async function verifySwarmStatus(web, identity, active, model, expectedVersion, signal, failureCode) {
377
- const data = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion)
377
+ const data = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion)
378
378
  ? await readWebSocketAgentState(web, identity.sessionId, expectedVersion, signal, failureCode)
379
379
  : await restData(web, "GET", `/api/v1/sessions/${encodeURIComponent(identity.sessionId)}/status`, undefined, signal, failureCode);
380
- const source = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion) ? "agent state" : "/status";
380
+ const source = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion) ? "agent state" : "/status";
381
381
  if (!isRecord(data)) {
382
382
  throw failure(failureCode, "swarm-activation.status", `Kimi web ${source} returned an invalid payload.`);
383
383
  }
@@ -387,10 +387,10 @@ async function verifySwarmStatus(web, identity, active, model, expectedVersion,
387
387
  if (data.plan_mode !== false) {
388
388
  throw failure(failureCode, "swarm-activation.status", `Kimi web ${source} did not confirm plan mode is off.`);
389
389
  }
390
- if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion) && data.tower_mode !== false) {
390
+ if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion) && data.tower_mode !== false) {
391
391
  throw failure(failureCode, "swarm-activation.status", "Kimi web agent state did not confirm tower mode is off.");
392
392
  }
393
- const permission = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion) ? data.permission_mode : data.permission;
393
+ const permission = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion) ? data.permission_mode : data.permission;
394
394
  if (permission !== "auto") {
395
395
  throw failure(failureCode, "swarm-activation.status", `Kimi web ${source} did not confirm auto permission mode.`);
396
396
  }
@@ -406,7 +406,7 @@ async function readWebSocketAgentState(web, sessionId, expectedVersion, signal,
406
406
  return await new Promise((resolve, reject) => {
407
407
  let socket;
408
408
  const bearerProtocol = `kimi-code.bearer.${web.token}`;
409
- const legacyControl = !["2.6.0", "2.6.2"].includes(expectedVersion);
409
+ const legacyControl = !["2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion);
410
410
  const helloId = `swarm-activation-hello-${randomUUID()}`;
411
411
  const subscribeId = `swarm-activation-subscribe-${randomUUID()}`;
412
412
  try {
@@ -6,7 +6,8 @@ export const BOUNDED_SWARM_POLICY = "bounded-waves/1";
6
6
  // terminal whole-job cancellation can interrupt a wave. Environment 0 is ignored.
7
7
  export const SWARM_CHILD_TIMEOUT_MS = 2_147_483_647;
8
8
  export function usesBoundedSwarmPolicy(plan) {
9
- return plan.intendedEngine === "native-v2" && plan.kimiVersion === "2.6.2" &&
9
+ return plan.intendedEngine === "native-v2" &&
10
+ (plan.kimiVersion === "2.6.2" || plan.kimiVersion === "2.6.3") &&
10
11
  (plan.operationKind === "swarm" || plan.operationKind === "swarm-write");
11
12
  }
12
13
  function plainObject(value) {
package/dist/version.js CHANGED
@@ -4,4 +4,4 @@
4
4
  // and AGENTS.md on every release. A future improvement would read this from
5
5
  // package.json at build time, but that adds a build-step dependency we
6
6
  // don't want yet.
7
- export const KIMI_PLUGIN_CC_VERSION = "2.6.2";
7
+ export const KIMI_PLUGIN_CC_VERSION = "2.6.3";
package/docs/migration.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Compatibility and upgrades
2
2
 
3
- The runtime certifies exact CLI releases per operation. Plugin 2.6.2 adds bounded swarm on exact stock CLI 2.6.2; see the [certification receipt](upstream-2.6.2-certification.md) for validation status. Exact 2.6.0 remains non-swarm-only. Older full-operation rows through 2.5.3 keep their inherited recovery limitation. `NATIVE_V2_CERTIFIED_VERSIONS` is the all-operation export, and `NATIVE_V2_ANY_OPERATION_VERSIONS` is the scoped union. Other versions, including 2.6.1 and 2.6.3, are not accepted automatically. The npm channel does not change the compatibility matrix.
3
+ The runtime certifies exact CLI releases per operation. Plugin 2.6.2 adds bounded swarm on exact stock CLI 2.6.2; see the [certification receipt](upstream-2.6.2-certification.md) for validation status. Plugin 2.6.3 additionally certifies exact CLI 2.6.3 with a separate [release-candidate receipt](upstream-2.6.3-certification.md); release CI and publication remain pending. Exact 2.6.0 remains non-swarm-only. Older full-operation rows through 2.5.3 keep their inherited recovery limitation. `NATIVE_V2_CERTIFIED_VERSIONS` is the all-operation export, and `NATIVE_V2_ANY_OPERATION_VERSIONS` is the scoped union. Other versions, including 2.6.1 and 2.6.4, are not accepted automatically. The npm channel does not change the compatibility matrix.
4
4
 
5
5
  Plugin 2.5.1 also adds DeepSeek Harness as a third host with all seven operations and a DSH-specific bundle, data root, and managed hook id. Existing Claude Code and Codex certification, job stores, and host-scoped hooks are unchanged; no migration is required for those hosts. New DSH installations follow the [README DSH section](../README.md#install-in-deepseek-harness), including `/kimi-setup` on that host.
6
6
 
@@ -8,7 +8,9 @@ no separate CLI.
8
8
 
9
9
  ## Publishing status
10
10
 
11
- Plugin **2.6.2** certifies unmodified exact Kimi Code **2.6.2** for all eight operations. Parallel swarm uses bounded waves and a native timeout override; concurrency one uses a direct worker. Final runtime commit `b69a416d8588ed12239148ccc9f120e3dbfe0dcb` passed 1,767 repository tests with 23,008 assertions, 30 live production tests with 386 assertions, all 23 stock-runtime swarm controls, and 130 Linux controls with kernel threads visible. The 340-file package, all three compiled distributions, DSH host installation and isolated consumer security passed. Independent Codex and Fable reviews closed all findings. The first CI run exposed a Linux identity mismatch; its correction passed CI, and the final runtime also handles unrelated nonsignalable ancestry and reports uncertain cancellation cleanup. See the [certification record](./upstream-2.6.2-certification.md) for boundaries and evidence. Final release CI, tagging and npm publication are pending; publication receipts will be recorded after those actions complete. Publication does not update installed hosts or operator pins.
11
+ Plugin **2.6.3** certifies exact Kimi Code **2.6.3** for all eight operations under the no-plan and bounded-swarm/direct-worker construction. Exact source and binary controls, 23 deterministic stock-binary tests / 138 assertions, candidate and production live matrices each with 30 passes / 390 assertions, the 1,797-test full repository gate / 23,469 assertions, 341-file package/DSH checks and isolated consumer security pass. Runtime review returned NO FINDINGS and all five documentation findings were corrected and re-reviewed. See the [2.6.3 certification record](./upstream-2.6.3-certification.md). Release CI, immutable tagging, GitHub release, npm OIDC publication and registry verification are pending; no installed-host update is implied.
12
+
13
+ Plugin **2.6.2** certifies unmodified exact Kimi Code **2.6.2** for all eight operations. Parallel swarm uses bounded waves and a native timeout override; concurrency one uses a direct worker. Final runtime commit `b69a416d8588ed12239148ccc9f120e3dbfe0dcb` passed 1,767 repository tests with 23,008 assertions, 30 live production tests with 386 assertions, all 23 stock-runtime swarm controls, and 130 Linux controls with kernel threads visible. The 340-file package, all three compiled distributions, DSH host installation and isolated consumer security passed. Independent Codex and Fable reviews closed all findings. The first CI run exposed a Linux identity mismatch; its correction passed CI, and the final runtime also handles unrelated nonsignalable ancestry and reports uncertain cancellation cleanup. See the [certification record](./upstream-2.6.2-certification.md) for boundaries and evidence. [Release v2.6.2](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.6.2) is anchored at `0f78ade6840dc7eab27da0790c5163082b103e6d`. [Final CI](https://github.com/linxule/kimi-plugin-cc/actions/runs/43610889478) and [OIDC publication](https://github.com/linxule/kimi-plugin-cc/actions/runs/43611675167) passed. The 340-file registry tarball has SHA-1 `6eecaf4803b8ebbed5f114c3b17e7f2b4f017fca` and SHA-256 `be9362451456278812c9678c208fde56357c47e147a39103ee11a610e9655f3d`, matches the validated workflow artifact byte-for-byte, and carries signed SLSA provenance (log index `3881457879`) and publish attestation (log index `3881517151`). A fresh registry npm installation matches all 340 release-tag files, has zero production advisories and no invalid or missing signatures, and passes isolated Claude Code, Codex and DSH setup/checks with the stock binary. All three installed distributions enforce exact 2.6.2 full-operation and 2.6.0 non-swarm-only certification. The Discover timestamp records npm publication at `2026-11-14T15:54:45.985Z`. Publication does not update installed hosts or operator pins.
12
14
 
13
15
  Plugin **2.5.9** certifies exact Kimi Code **2.6.2** for review, challenge, ask, rescue, review_gate and pursue only; both swarm modes refuse before model spawn, and exact 2.6.1 and 2.6.3 are excluded. The release-commit production matrix passed 23 tests with 171 assertions in 225.87 seconds, the definitive full gate passed 1,503 tests with 20,086 assertions in 433.07 seconds, and package validation passed 334 files with isolated consumer security. Codex and Claude both returned NO FINDINGS / APPROVE. `NATIVE_V2_CERTIFIED_VERSIONS` remains the all-operation export through 2.5.3, so automatic full-swarm pins do not silently select either narrowed 2.6.x release. [Release v2.5.9](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.5.9) is anchored at `6f9eaa6e145d62e7f35e5ff38d317bd7e3a673c5`. [Final CI](https://github.com/linxule/kimi-plugin-cc/actions/runs/43585425445) and [OIDC publication](https://github.com/linxule/kimi-plugin-cc/actions/runs/43585933931) passed. The 334-file registry tarball has SHA-1 `2158551b73d3408af14e2061c29e40dc60622947` and SHA-256 `d5c43b95c708468393f357c353c180488ae83edb56cae93e840d08ee2b3dc520`, matches the validated workflow artifact byte-for-byte, and carries signed SLSA provenance (log index `3876002731`) and publish attestation (log index `3876057720`). A fresh registry npm installation has zero production advisories and no invalid or missing signatures; setup/check passes with the explicit non-swarm warning, and the installed runtime enforces the scoped refusals. The Discover timestamp records npm publication at `2026-11-14T10:43:34.167Z`. Publication does not update installed hosts or operator pins.
14
16