kimi-plugin-cc 2.7.2 → 3.0.0

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 (224) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +3 -5
  3. package/CHANGELOG.md +78 -1
  4. package/README.md +505 -448
  5. package/agents/kimi-pursue.md +6 -6
  6. package/agents/kimi-review.md +22 -22
  7. package/agents/kimi-swarm.md +25 -23
  8. package/agents/{kimi-ask.md → kimi-task.md} +34 -30
  9. package/commands/README.md +4 -6
  10. package/commands/pursue.md +1 -1
  11. package/commands/review.md +8 -3
  12. package/commands/setup.md +4 -2
  13. package/commands/swarm.md +6 -5
  14. package/commands/{rescue.md → task.md} +13 -11
  15. package/dist/background-spawn.js +10 -17
  16. package/dist/cli-client.js +65 -46
  17. package/dist/commands/ask.js +22 -89
  18. package/dist/commands/cancel.js +7 -46
  19. package/dist/commands/cli-helpers.js +102 -1
  20. package/dist/commands/models.js +2 -3
  21. package/dist/commands/pursue.js +5 -19
  22. package/dist/commands/repair-sessions.js +118 -12
  23. package/dist/commands/rescue.js +12 -82
  24. package/dist/commands/result.js +7 -1
  25. package/dist/commands/review-gate.js +1 -0
  26. package/dist/commands/review.js +12 -15
  27. package/dist/commands/setup.js +606 -270
  28. package/dist/commands/status.js +2 -2
  29. package/dist/commands/swarm.js +93 -119
  30. package/dist/commands/worker.js +1 -2
  31. package/dist/companion.js +3 -1
  32. package/dist/dsh/index.js +15 -17
  33. package/dist/git.js +1 -9
  34. package/dist/help.js +3 -3
  35. package/dist/hooks/approval-hook.js +41 -0
  36. package/dist/hooks/approval-policy.js +72 -10
  37. package/dist/hooks/config-safety.js +19 -42
  38. package/dist/hooks/hook-timing.js +48 -0
  39. package/dist/hooks/install.js +206 -11
  40. package/dist/hooks/managed-block.js +78 -33
  41. package/dist/job-store.js +100 -128
  42. package/dist/jobs.js +14 -19
  43. package/dist/kimi-command.js +74 -1
  44. package/dist/kimi-engine.js +170 -74
  45. package/dist/kimi-errors.js +14 -69
  46. package/dist/kimi-home.js +6 -0
  47. package/dist/kimi-journal.js +41 -0
  48. package/dist/kimi-releases.js +144 -0
  49. package/dist/kimi-timeouts.js +1 -1
  50. package/dist/kimi-version-probe.js +12 -48
  51. package/dist/mcp/job-control.js +4 -6
  52. package/dist/mcp/launcher.js +12 -6
  53. package/dist/mcp/operations.js +50 -18
  54. package/dist/mcp/protocol.js +16 -14
  55. package/dist/mcp/stdio.js +3 -2
  56. package/dist/model-command.js +5 -3
  57. package/dist/native-v2-preflight.js +139 -68
  58. package/dist/parsing.js +171 -237
  59. package/dist/paths.js +8 -0
  60. package/dist/process-tree.js +35 -24
  61. package/dist/read-scope.js +435 -0
  62. package/dist/render.js +46 -9
  63. package/dist/rescue-approval.js +461 -84
  64. package/dist/schemas/review-gate-output.js +3 -5
  65. package/dist/session-title.js +25 -5
  66. package/dist/stream-json.js +1 -3
  67. package/dist/surface-routing.js +21 -0
  68. package/dist/swarm-activation.js +74 -77
  69. package/dist/swarm-policy.js +2 -1
  70. package/dist/swarm-recovery.js +2 -1
  71. package/dist/util.js +28 -0
  72. package/dist/version.js +1 -1
  73. package/docs/migration.md +27 -6
  74. package/docs/models.md +2 -2
  75. package/docs/registry-releases.md +3 -1
  76. package/docs/safety.md +131 -81
  77. package/docs/session-visibility.md +5 -3
  78. package/docs/swarm-recovery.md +4 -4
  79. package/docs/upstream-2.7.2-certification.md +16 -2
  80. package/docs/upstream-2.7.3-certification.md +95 -0
  81. package/package.json +2 -1
  82. package/plugins/kimi-codex/.codex-plugin/plugin.json +3 -3
  83. package/plugins/kimi-codex/.mcp.json +1 -0
  84. package/plugins/kimi-codex/dist/background-spawn.js +10 -17
  85. package/plugins/kimi-codex/dist/cli-client.js +65 -46
  86. package/plugins/kimi-codex/dist/commands/ask.js +22 -89
  87. package/plugins/kimi-codex/dist/commands/cancel.js +7 -46
  88. package/plugins/kimi-codex/dist/commands/cli-helpers.js +102 -1
  89. package/plugins/kimi-codex/dist/commands/models.js +2 -3
  90. package/plugins/kimi-codex/dist/commands/pursue.js +5 -19
  91. package/plugins/kimi-codex/dist/commands/repair-sessions.js +118 -12
  92. package/plugins/kimi-codex/dist/commands/rescue.js +12 -82
  93. package/plugins/kimi-codex/dist/commands/result.js +7 -1
  94. package/plugins/kimi-codex/dist/commands/review-gate.js +1 -0
  95. package/plugins/kimi-codex/dist/commands/review.js +12 -15
  96. package/plugins/kimi-codex/dist/commands/setup.js +606 -270
  97. package/plugins/kimi-codex/dist/commands/status.js +2 -2
  98. package/plugins/kimi-codex/dist/commands/swarm.js +93 -119
  99. package/plugins/kimi-codex/dist/commands/worker.js +1 -2
  100. package/plugins/kimi-codex/dist/companion.js +3 -1
  101. package/plugins/kimi-codex/dist/dsh/index.js +15 -17
  102. package/plugins/kimi-codex/dist/git.js +1 -9
  103. package/plugins/kimi-codex/dist/help.js +3 -3
  104. package/plugins/kimi-codex/dist/hooks/approval-hook.js +41 -0
  105. package/plugins/kimi-codex/dist/hooks/approval-policy.js +72 -10
  106. package/plugins/kimi-codex/dist/hooks/config-safety.js +19 -42
  107. package/plugins/kimi-codex/dist/hooks/hook-timing.js +48 -0
  108. package/plugins/kimi-codex/dist/hooks/install.js +206 -11
  109. package/plugins/kimi-codex/dist/hooks/managed-block.js +78 -33
  110. package/plugins/kimi-codex/dist/job-store.js +100 -128
  111. package/plugins/kimi-codex/dist/jobs.js +14 -19
  112. package/plugins/kimi-codex/dist/kimi-command.js +74 -1
  113. package/plugins/kimi-codex/dist/kimi-engine.js +170 -74
  114. package/plugins/kimi-codex/dist/kimi-errors.js +14 -69
  115. package/plugins/kimi-codex/dist/kimi-home.js +6 -0
  116. package/plugins/kimi-codex/dist/kimi-journal.js +41 -0
  117. package/plugins/kimi-codex/dist/kimi-releases.js +144 -0
  118. package/plugins/kimi-codex/dist/kimi-timeouts.js +1 -1
  119. package/plugins/kimi-codex/dist/kimi-version-probe.js +12 -48
  120. package/plugins/kimi-codex/dist/mcp/job-control.js +4 -6
  121. package/plugins/kimi-codex/dist/mcp/launcher.js +12 -6
  122. package/plugins/kimi-codex/dist/mcp/operations.js +50 -18
  123. package/plugins/kimi-codex/dist/mcp/protocol.js +16 -14
  124. package/plugins/kimi-codex/dist/mcp/stdio.js +3 -2
  125. package/plugins/kimi-codex/dist/model-command.js +5 -3
  126. package/plugins/kimi-codex/dist/native-v2-preflight.js +139 -68
  127. package/plugins/kimi-codex/dist/parsing.js +171 -237
  128. package/plugins/kimi-codex/dist/paths.js +8 -0
  129. package/plugins/kimi-codex/dist/process-tree.js +35 -24
  130. package/plugins/kimi-codex/dist/read-scope.js +435 -0
  131. package/plugins/kimi-codex/dist/render.js +46 -9
  132. package/plugins/kimi-codex/dist/rescue-approval.js +461 -84
  133. package/plugins/kimi-codex/dist/schemas/review-gate-output.js +3 -5
  134. package/plugins/kimi-codex/dist/session-title.js +25 -5
  135. package/plugins/kimi-codex/dist/stream-json.js +1 -3
  136. package/plugins/kimi-codex/dist/surface-routing.js +21 -0
  137. package/plugins/kimi-codex/dist/swarm-activation.js +74 -77
  138. package/plugins/kimi-codex/dist/swarm-policy.js +2 -1
  139. package/plugins/kimi-codex/dist/swarm-recovery.js +2 -1
  140. package/plugins/kimi-codex/dist/util.js +28 -0
  141. package/plugins/kimi-codex/dist/version.js +1 -1
  142. package/plugins/kimi-codex/skills/kimi-pursue/SKILL.md +1 -1
  143. package/plugins/kimi-codex/skills/kimi-review/SKILL.md +8 -7
  144. package/plugins/kimi-codex/skills/kimi-review/agents/openai.yaml +1 -1
  145. package/plugins/kimi-codex/skills/kimi-setup/SKILL.md +2 -1
  146. package/plugins/kimi-codex/skills/kimi-swarm/SKILL.md +8 -6
  147. package/plugins/kimi-codex/skills/kimi-swarm/agents/openai.yaml +1 -1
  148. package/plugins/kimi-codex/skills/{kimi-ask → kimi-task}/SKILL.md +11 -9
  149. package/plugins/kimi-codex/skills/kimi-task/agents/openai.yaml +6 -0
  150. package/plugins/kimi-dsh/README.md +3 -2
  151. package/plugins/kimi-dsh/dist/background-spawn.js +10 -17
  152. package/plugins/kimi-dsh/dist/cli-client.js +65 -46
  153. package/plugins/kimi-dsh/dist/commands/ask.js +22 -89
  154. package/plugins/kimi-dsh/dist/commands/cancel.js +7 -46
  155. package/plugins/kimi-dsh/dist/commands/cli-helpers.js +102 -1
  156. package/plugins/kimi-dsh/dist/commands/models.js +2 -3
  157. package/plugins/kimi-dsh/dist/commands/pursue.js +5 -19
  158. package/plugins/kimi-dsh/dist/commands/repair-sessions.js +118 -12
  159. package/plugins/kimi-dsh/dist/commands/rescue.js +12 -82
  160. package/plugins/kimi-dsh/dist/commands/result.js +7 -1
  161. package/plugins/kimi-dsh/dist/commands/review-gate.js +1 -0
  162. package/plugins/kimi-dsh/dist/commands/review.js +12 -15
  163. package/plugins/kimi-dsh/dist/commands/setup.js +606 -270
  164. package/plugins/kimi-dsh/dist/commands/status.js +2 -2
  165. package/plugins/kimi-dsh/dist/commands/swarm.js +93 -119
  166. package/plugins/kimi-dsh/dist/commands/worker.js +1 -2
  167. package/plugins/kimi-dsh/dist/companion.js +3 -1
  168. package/plugins/kimi-dsh/dist/dsh/index.js +15 -17
  169. package/plugins/kimi-dsh/dist/git.js +1 -9
  170. package/plugins/kimi-dsh/dist/help.js +3 -3
  171. package/plugins/kimi-dsh/dist/hooks/approval-hook.js +41 -0
  172. package/plugins/kimi-dsh/dist/hooks/approval-policy.js +72 -10
  173. package/plugins/kimi-dsh/dist/hooks/config-safety.js +19 -42
  174. package/plugins/kimi-dsh/dist/hooks/hook-timing.js +48 -0
  175. package/plugins/kimi-dsh/dist/hooks/install.js +206 -11
  176. package/plugins/kimi-dsh/dist/hooks/managed-block.js +78 -33
  177. package/plugins/kimi-dsh/dist/job-store.js +100 -128
  178. package/plugins/kimi-dsh/dist/jobs.js +14 -19
  179. package/plugins/kimi-dsh/dist/kimi-command.js +74 -1
  180. package/plugins/kimi-dsh/dist/kimi-engine.js +170 -74
  181. package/plugins/kimi-dsh/dist/kimi-errors.js +14 -69
  182. package/plugins/kimi-dsh/dist/kimi-home.js +6 -0
  183. package/plugins/kimi-dsh/dist/kimi-journal.js +41 -0
  184. package/plugins/kimi-dsh/dist/kimi-releases.js +144 -0
  185. package/plugins/kimi-dsh/dist/kimi-timeouts.js +1 -1
  186. package/plugins/kimi-dsh/dist/kimi-version-probe.js +12 -48
  187. package/plugins/kimi-dsh/dist/mcp/job-control.js +4 -6
  188. package/plugins/kimi-dsh/dist/mcp/launcher.js +12 -6
  189. package/plugins/kimi-dsh/dist/mcp/operations.js +50 -18
  190. package/plugins/kimi-dsh/dist/mcp/protocol.js +16 -14
  191. package/plugins/kimi-dsh/dist/mcp/stdio.js +3 -2
  192. package/plugins/kimi-dsh/dist/model-command.js +5 -3
  193. package/plugins/kimi-dsh/dist/native-v2-preflight.js +139 -68
  194. package/plugins/kimi-dsh/dist/parsing.js +171 -237
  195. package/plugins/kimi-dsh/dist/paths.js +8 -0
  196. package/plugins/kimi-dsh/dist/process-tree.js +35 -24
  197. package/plugins/kimi-dsh/dist/read-scope.js +435 -0
  198. package/plugins/kimi-dsh/dist/render.js +46 -9
  199. package/plugins/kimi-dsh/dist/rescue-approval.js +461 -84
  200. package/plugins/kimi-dsh/dist/schemas/review-gate-output.js +3 -5
  201. package/plugins/kimi-dsh/dist/session-title.js +25 -5
  202. package/plugins/kimi-dsh/dist/stream-json.js +1 -3
  203. package/plugins/kimi-dsh/dist/surface-routing.js +21 -0
  204. package/plugins/kimi-dsh/dist/swarm-activation.js +74 -77
  205. package/plugins/kimi-dsh/dist/swarm-policy.js +2 -1
  206. package/plugins/kimi-dsh/dist/swarm-recovery.js +2 -1
  207. package/plugins/kimi-dsh/dist/util.js +28 -0
  208. package/plugins/kimi-dsh/dist/version.js +1 -1
  209. package/plugins/kimi-dsh/package.json +1 -1
  210. package/agents/kimi-challenge.md +0 -86
  211. package/agents/kimi-rescue.md +0 -92
  212. package/agents/kimi-swarm-write.md +0 -96
  213. package/commands/ask.md +0 -38
  214. package/commands/challenge.md +0 -35
  215. package/dist/commands/not-implemented.js +0 -4
  216. package/plugins/kimi-codex/dist/commands/not-implemented.js +0 -4
  217. package/plugins/kimi-codex/skills/kimi-ask/agents/openai.yaml +0 -6
  218. package/plugins/kimi-codex/skills/kimi-challenge/SKILL.md +0 -34
  219. package/plugins/kimi-codex/skills/kimi-challenge/agents/openai.yaml +0 -6
  220. package/plugins/kimi-codex/skills/kimi-rescue/SKILL.md +0 -34
  221. package/plugins/kimi-codex/skills/kimi-rescue/agents/openai.yaml +0 -6
  222. package/plugins/kimi-codex/skills/kimi-swarm-write/SKILL.md +0 -36
  223. package/plugins/kimi-codex/skills/kimi-swarm-write/agents/openai.yaml +0 -6
  224. package/plugins/kimi-dsh/dist/commands/not-implemented.js +0 -4
@@ -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.7.2"
8
+ "version": "3.0.0"
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.7.2",
4
+ "version": "3.0.0",
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",
@@ -19,16 +19,14 @@
19
19
  "name": "linxule"
20
20
  },
21
21
  "commands": [
22
- "./commands/ask.md",
23
22
  "./commands/cancel.md",
24
- "./commands/challenge.md",
25
23
  "./commands/pursue.md",
26
24
  "./commands/replay.md",
27
- "./commands/rescue.md",
28
25
  "./commands/result.md",
29
26
  "./commands/review.md",
30
27
  "./commands/setup.md",
31
28
  "./commands/status.md",
32
- "./commands/swarm.md"
29
+ "./commands/swarm.md",
30
+ "./commands/task.md"
33
31
  ]
34
32
  }
package/CHANGELOG.md CHANGED
@@ -2,6 +2,82 @@
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
+ ## 3.0.0 — 2026-11-26
6
+
7
+ The plugin makes promises about the sessions it launches and no longer polices the user's own Kimi configuration. Certified kimi-code versions are unchanged: exact 0.42.0 through 2.7.3 as listed in `runtime/kimi-releases.ts`, with 2.7.3 the newest and 2.6.0 still non-swarm-only.
8
+
9
+ ### Security
10
+
11
+ GPT Astra and Kimi found the first round of these issues in an adversarial review before release. GPT Astra then reviewed the fix diff and found a second round: the `.git` aliases, the backslash workspace and the command size below, the FetchURL blocks and the `mv`/`cp` operand rules under Added, and the hook timeout value.
12
+
13
+ - In 2.7.3 and earlier, a rescue, pursue or write-swarm job could write outside the workspace when a Write or Edit path began with `~/` or used backslashes, because the hook resolved the path differently from kimi-code. This was reproduced against real kimi-code with the released plugin: a rescue job wrote a file in the home directory. Write/Edit/MultiEdit paths (`path` and `file_path`) and `Bash.cwd` now refuse any backslash, NUL, leading `~`, drive-letter prefix or URL scheme. On POSIX, rescue, pursue and write-swarm also refuse to launch with `CLI_TRUSTED_WORKSPACE_ROOT_INVALID` when the run directory or trusted root, or its realpath, contains a backslash, and the hook denies every tool for such a root.
14
+ - In 2.7.3 and earlier, on a case-insensitive filesystem a native write could reach a `.git` pointer file (a linked worktree or submodule; the write-swarm worktree is one) through a case alias such as `.GIT`. Native write targets and `Bash.cwd` now refuse `.git` in any letter case or with trailing dots or spaces, at any path component, comparing an existing target under its realpath.
15
+ - In 2.7.3 and earlier, a long enough rescue command could run unchecked. Brace-expansion detection was quadratic: a 256 KiB command took about 52 s to check (measured), the plugin installs its hook with a 15 s timeout, and kimi-code treats a timeout as allow. Rescue Bash commands longer than 16,384 characters are now refused before evaluation; the measured worst case at that length is about 0.2 s.
16
+ - In 2.7.3 and earlier, a hook entry with a hand-edited short `timeout`, such as `timeout = 1`, verified as installed and enforcing, although kimi-code reads a hook that runs past its timeout as allow. A kimi-plugin-cc hook entry counts as installed only if kimi-code waits at least 15 seconds for it (a missing `timeout` means kimi-code's 30-second default), because kimi-code treats a hook that times out as allowing the call; every copy of the command must meet this, since kimi-code runs only the first one. `setup --check` fails on a short entry, and `setup` rewrites its own block or refuses with `SETUP_INVALID_HOOKS_CONFIG` for a copy it cannot prune.
17
+ - Write/Edit/MultiEdit now refuse an existing regular file with more than one hard link. Writing it in place also changed every other name for the file, which could lie outside the workspace.
18
+ - kimi-code reads a hook that times out, crashes or cannot be spawned as allow. For a labelled call the hook now denies if it has not decided within 10 s, below the 15 s installed timeout; out-of-plugin calls are unchanged.
19
+ - Swarm activation and deactivation read the main-agent journal with the same framing as kimi-code's replay, and a corrupt line makes the swarm state unreadable, so no later record can confirm activation or deactivation. Before, a record after a whitespace-only or other corrupt line could confirm deactivation that kimi-code's replay never reached.
20
+ - A malformed `~/.kimi-code/config.toml` could make the TOML parser's error message, which quotes neighbouring source lines, reach `setup --check` stdout and job stderr; those lines could include an API key. Errors now report only `syntax error at line N, column M`. The leak was present in 2.7.3 and earlier.
21
+
22
+ ### Breaking
23
+
24
+ - Claude Code slash commands `/kimi:ask`, `/kimi:rescue` and `/kimi:challenge` and agents `kimi-ask`, `kimi-rescue`, `kimi-challenge` and `kimi-swarm-write` are removed. `/kimi:task` and agent `kimi-task` replace ask (read-only by default) and rescue (a leading `--write`). `/kimi:review --challenge` and agent `kimi-review` with a leading `--challenge` replace challenge. Agent `kimi-swarm` with a leading `--write` replaces `kimi-swarm-write`. `/kimi:pursue`, `/kimi:swarm`, `/kimi:setup`, `/kimi:status`, `/kimi:result`, `/kimi:cancel` and `/kimi:replay` are unchanged.
25
+ - MCP tool `kimi_challenge` is removed; call `kimi_review` with `mode: "challenge"`. The server lists six model tools and three job tools.
26
+ - Codex skills go from twelve to nine: `kimi-ask`, `kimi-rescue`, `kimi-challenge` and `kimi-swarm-write` are removed and `kimi-task` is added. `kimi-task` is not implicitly invocable, so Codex no longer starts the read-only question skill on its own.
27
+ - A configured `default_plan_mode`, `[environments] default`, `require_trust = false` or enabled tower/subagent-fork selector no longer refuses certified launches where the plugin can neutralize it. Plan mode, the environment default and the selectors are neutralized silently; disabled trust and job-time marker problems appear in `warnings`.
28
+ - The native-v2 session preview now shows the run's raw request instead of the plugin's prefixed prompt, and replaces a differing preview after every settled run.
29
+
30
+ ### Added
31
+
32
+ - Read-only operations run on an unlisted plain 2.x kimi-code release newer than 2.0.0 with the warning `kimi-code <version> is not certified by this plugin release; running <operation> read-only with <row> mechanics.` `rescue`, `pursue`, `swarm` and `swarm --write` still refuse with `KIMI_CAPABILITY_NOT_CERTIFIED`. `KIMI_PLUGIN_CC_STRICT_VERSIONS=1` restores exact-version refusal for every operation; the Codex MCP config forwards it.
33
+ - `setup --install-kimi [--json]` installs the highest certified kimi-code into `<data root>/kimi-plugin-cc/kimi-bin/<version>/` and points `kimi-bin/current` at it. It executes a candidate binary only after it resolves to an executable regular file inside the expected version or staging directory. Jobs use `KIMI_PLUGIN_CC_KIMI_BIN`, then that binary, then `kimi` on PATH. `setup` and `setup --check` print a `Kimi binary:` line. New error codes: `KIMI_INSTALL_FAILED`, `KIMI_INSTALL_VERIFY_FAILED`, `KIMI_INSTALL_UNSUPPORTED_PLATFORM`.
34
+ - A launch warnings channel: the nullable `warnings` job column, a `Warnings:` block at the top of stdout and the artifact, and a `warnings` key in `status`, `result --json` and MCP results. Output without warnings is unchanged.
35
+ - `--read-root <absolute-directory>` (repeatable) and `--network` on `ask`, `review`, `challenge` and read-only `swarm`, and the matching `read_roots` and `network` arguments on MCP `kimi_ask`, `kimi_review` and `kimi_swarm`. `--read-root` confines `Read`, `Grep`, `Glob` and `ReadMediaFile` to the workspace and the named roots. `--network` allows `WebSearch` and `FetchURL` to public hosts and confines reads the same way. Scope is stored in the nullable `read_scope` job column and is not inherited by a resumed or follow-up job. Under confinement a path or glob pattern with a backslash or a leading drive letter is denied; a `--read-root` containing a backslash refuses with `INVALID_ARGS`, and a scoped spawn whose workspace contains one refuses with `READ_SCOPE_INVALID`. `FetchURL` IP literals must be global unicast; `192.88.99.0/24` and `3fff::/20` are denied too. A networked resume requires every earlier turn's effective roots (its workspace plus its read roots) to lie inside the current call's. New error code: `READ_SCOPE_INVALID`.
36
+ - Rescue, pursue and write-swarm may run `rm`, `mv`, `cp` and `mkdir` on absolute paths inside the workspace, with exact flags, symlink-resolved containment and no `.git` targets. Flags are accepted only before the first operand; any later token, `--` included, is an operand. `rm -r` operands, directory `mv` sources and `cp -R` sources must contain no `.git` entry at any depth; the scan stays on the operand's filesystem, inspects at most 20,000 entries and runs at most 3 s, and reaching any limit refuses. `cp` refuses an existing destination file with more than one hard link; `mv` and `rm` are unaffected. Every `mv`/`cp` source must exist, no source may lie under or equal another source's landing path, no destination may lie inside a source, and a command holds at most one `rm`, `mv`, `cp` or `mkdir`, so `mkdir -p d && cp a d/` must be two commands. A relative operand is denied with `Rescue requires absolute paths for <cmd>; use paths under <root>: <command>`.
37
+ - The MCP `initialize` and `server/discover` results carry an `instructions` string: prefer these tools for detached or long-running work, which tools write, that jobs survive a disconnect, and that warnings should be relayed.
38
+ - DSH `/kimi-setup` accepts `--install-kimi [--json]`.
39
+
40
+ ### Changed
41
+
42
+ - On exact 2.4.0 through 2.7.3, a configured `default_plan_mode` no longer refuses non-swarm launches, fresh or resumed, because print mode cancels the create-time plan entry before any turn. The resume scan frames each wire journal exactly as kimi-code's replay does (LF-delimited, one trailing CR stripped, only empty lines skipped), and after the first corrupt line no later record can fold a cancelled create-time plan enter. Swarm launches at any concurrency, older versions and uncertified releases still refuse.
43
+ - Every child runs with `KIMI_CODE_EXPERIMENTAL_TOWER=0` and `KIMI_CODE_EXPERIMENTAL_SUBAGENT_FORK=0`, and native-v2 children no longer receive `KIMI_CODE_EXPERIMENTAL_FLAG`. Enabled selectors no longer refuse certified releases.
44
+ - On exact 2.5.0 through 2.7.3, a configured `[environments] default` no longer refuses a fresh or resumed non-swarm launch: a fresh print passes `--environment local`, and a resume applies the session's stored binding, which must still be local and inside the trusted root (`KIMI_SESSION_ENVIRONMENT_UNSAFE`). Swarm launches, and any launch without a certified release row, still refuse.
45
+ - `[workspace] require_trust = false` produces a warning instead of a refusal. A non-boolean value still refuses.
46
+ - The runtime chooses the operation: `ask` with a leading `--write` runs rescue and `review` with a leading `--challenge` runs challenge (`runtime/surface-routing.ts`). Only flags before the first prompt word count, and MCP prompts always follow `--`. The companion spellings `task rescue`, `task challenge` and `task swarm --write` still work. DSH keeps its seven providers, including `kimi_challenge` and `kimi_swarm_write`.
47
+ - Each job launch and each setup warns about every other host's kimi-plugin-cc hook that is older than this plugin (prereleases and unreadable versions count as older), because its rules still apply. Every installed hook checks every labelled job, and any deny wins.
48
+ - The plan-time hook check refuses a definite missing or invalid hook with the operation's command-gate error before any job row exists; an unverifiable check still proceeds, and `KIMI_PLUGIN_CC_SKIP_HOOK_CHECK=1` bypasses it as at the gates. Rescue, pursue and swarm hook refusals are therefore thrown before a job row is created; a row-persisted refusal remains only if the hook disappears after the plan. A job also checks the configured hooks against the release its execution plan probed, using that probe, and refuses with the new code `KIMI_HOOK_SET_INVALID` when kimi-code would drop the hooks array.
49
+ - At job time, duplicate or orphaned managed hook markers produce a warning instead of a refusal when the real TOML parser proves a clean, byte-exact managed entry. `setup` and `setup --check` still fail on them.
50
+ - `repair-sessions` replaces a preview that is blank or one of the session's own verified plugin prompts, and reports `would-replace-preview` or `preview-replaced`.
51
+ - Release facts live in one table, `runtime/kimi-releases.ts`. Background ask and rescue no longer set `KIMI_PLUGIN_CC_ASK_REUSED_SESSION` or `KIMI_PLUGIN_CC_RESCUE_REUSED_SESSION`. The `setup --check` direct probe uses the Node path parsed from the installed hook command. `classifySetupFailure` no longer returns `runtimeProbe` or `authProbe`, and the `CODEX_SKILLS[].displayName` field and the `TimeoutKind` export are removed.
52
+
53
+ ### Fixed
54
+
55
+ - On Linux, a swarm could fail to start or stop with "The Kimi web process tree did not become quiescent after shutdown" although nothing was left running. One incomplete process snapshot, such as one taken while the web process was exiting, made the whole teardown unverifiable. An incomplete snapshot or group scan is now read again before it counts; a process table that stays unreadable still fails. The error now says which check failed. The affected code is unchanged since 2.7.x.
56
+ - `grep -i` and `git --no-pager <read-only subcommand>` are allowed under rescue; both were wrongly rejected.
57
+ - An MCP job that finished between the server's job read and its process-identity probe now attaches normally instead of failing with `MCP_PROCESS_IDENTITY_MISMATCH`.
58
+
59
+ ### Known limitations
60
+
61
+ - Reads stay unconfined unless the caller passes `--read-root` or `--network`.
62
+ - The `FetchURL` host check sees only the URL as written, not DNS resolution or HTTP redirects. `--read-root /` removes read confinement.
63
+ - Another host's older hook still checks every plugin job by its own rules until that host updates and runs setup, and can deny what this version allows; each job launch and setup carries a warning that names the host and its hook version.
64
+ - The read scope limits Kimi's tool reads only. A review's status summary and diff cover the whole repository, even when the review starts in a subdirectory, and reach the model whatever the roots are. So do Kimi's own instruction files: `~/.kimi-code/AGENTS.md`, `~/.agents/AGENTS.md`, and `AGENTS.md` or `.kimi-code/AGENTS.md` in each directory from the Git root down to the working directory. Untracked files are not embedded; Kimi reads them with tools, so any outside the roots are denied.
65
+ - A hard link inside a read root counts as inside the root, even when another name for the same file lies outside it.
66
+ - The networked-resume check sees only the turns this host's plugin job store recorded for the session; a turn added to the same session directly in Kimi, or through another host's plugin install, is invisible to it, so its reads can be carried into a `--network` turn.
67
+ - Review status: the maintainer's agent read the second-round fixes, and failing-first tests cover them, but they have not been through a third outside review.
68
+ - A Desktop turn that finishes after a plugin run and before its preview sync has its preview overwritten.
69
+ - The review gate's `systemMessage` does not carry warnings, and `recover-swarm` still writes its notices to stderr.
70
+ - `go test -exec=<bin>` and `--exec` are still approved under rescue while `-exec <bin>` is rejected; `rg -i`, `rg -w` and `grep -w` are still rejected.
71
+
72
+ ## 2.7.3 — 2026-11-24
73
+
74
+ - Certify exact kimi-code 2.7.3 for all eight native-v2 operations under the no-plan and bounded-swarm/direct-worker construction. Exact source commit `a8f643ad2e7f197d6ec4409b7cdad8a544afad86` and bundle SHA-256 `747dbb1fd3ad0789194e0181cfaf036a795c8c6d6b3a9204c152aee8db10de16` are verified; exact 2.7.0, 2.7.1 and 2.7.4 remain excluded.
75
+ - Diagnose the monitor's zero-child/no-patch lanes as candidate-harness selector omissions, not an upstream scheduler regression. Extend exact-version preactivation, bounded-policy, direct-worker, schema and recovery coverage to 2.7.3 without inheriting a version range.
76
+ - Review the optional TurnEnded feedback attribution, authenticated host-only feedback routes and missing-model KAP behavior. Print, hook, plan, executor, tool, swarm and local-backend surfaces are unchanged; missing main-agent models remain fail-closed during activation.
77
+ - Pass the expanded source scan with **38 tests / 533 assertions and 159 pins**, plan ON/OFF, forced removed-tool and local/trust/resume controls, **23 deterministic stock-binary tests / 138 assertions**, and candidate plus production real-provider matrices each with **30 passes / 402 assertions** and only the two inapplicable narrowed-refusal skips. See the [2.7.3 record](docs/upstream-2.7.3-certification.md).
78
+
79
+ - Publish release commit `8e2187d1826952440e18f870eaae52bb765f385b` after CI run `45418692870`, then tag and release [v2.7.3](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.7.3). OIDC run `45420498664` validated the same tag and published npm `latest` 2.7.3 at `2026-11-24T15:13:17.012Z`. The **343-file** registry tarball matches the Actions artifact and every tag file, with SHA-256 `d23e4742d6c5c5337e5ae98c1d8435c3c3409b6cf4f7b36bd61054327c41836f`. Fresh registry setup/checks, zero-advisory, signature and attestation checks pass, including SLSA log index `4080883768` and publish log index `4080953677`. No installed-host update is implied.
80
+
5
81
  ## 2.7.2 — 2026-11-20
6
82
 
7
83
  - Certify exact kimi-code 2.7.2 for all eight native-v2 operations under the no-plan and bounded-swarm/direct-worker construction. Exact source commit `56145f849caa305d42acd09b67fb65d11146f887` and bundle SHA-256 `dafef22f56c4c1fff755eb3af5e42a76d32d09a9dc858ebdc055a6d1a6008e67` are verified; exact 2.7.0, 2.7.1 and 2.7.3 remain excluded.
@@ -9,7 +85,8 @@
9
85
  - Adapt 2.7.2 activation to KAP `/meta` without `backend: "v2"`: use an ephemeral-token JSON ready line, strict loopback origin and `/api/v1/ws` validation, KAP 1.0.0 and WebSocket proof, exact server-version checks, and fresh explicit local selection. Older activation formats remain unchanged.
10
86
  - Expand source review from seven to nine scopes for the moved `packages/core` executor, loop, retry/settlement/recovery and structured error conversion, plus KAP, Klient and ACP host plan-entry routes. Final source scans pass **38 tests / 527 assertions on 2.7.2** and **38 / 404 on 2.6.3**, with 153 pins.
11
87
  - Pass plan ON/OFF, forced removed-tool and local/trust/resume controls, **23 deterministic stock-binary tests / 138 assertions**, and candidate plus production real-provider matrices each with **30 passes / 406 assertions** and only the two inapplicable narrowed-refusal skips. Real child journals, confined writes, child-authored patches, direct workers and bounded waves are required evidence. Both final independent reviews returned NO FINDINGS. See the [2.7.2 record](docs/upstream-2.7.2-certification.md).
12
- - Pass the plugin 2.7.2 frozen-install release gate with **1,848 tests / 83 expected opt-in or platform skips / 0 failures / 24,260 assertions in 611.46 seconds**, plus **342-file** package/DSH validation and isolated consumer security. The independent release-diff review's version-headline finding was corrected before the release commit. Publication receipts are recorded separately after CI and registry verification.
88
+ - Pass the plugin 2.7.2 frozen-install release gate with **1,848 tests / 83 expected opt-in or platform skips / 0 failures / 24,260 assertions in 611.46 seconds**, plus **342-file** package/DSH validation and isolated consumer security. The independent release-diff review's version-headline finding was corrected before the release commit.
89
+ - Publish release commit `e2bba0e2d4e1745e4155eb5c6ddf3f4dabaffb66` after CI run `44799772434`, then tag and release [v2.7.2](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.7.2). Initial OIDC run `44801159950` failed only at npm publication with `TLOG_CREATE_ENTRY_ERROR` and published nothing; documented manual-dispatch recovery run `44803040496` validated the same tag and published npm `latest` 2.7.2 at `2026-11-20T19:44:23.172Z`. The 342-file registry tarball matches the Actions artifact and every tag file, with SHA-256 `0a0bcba76513adac3448776d4f8df9ec73b60987edac0ca5e6535db428b91f33`. Fresh registry setup/check, zero-advisory and signature checks pass, and SLSA/publish attestations match the package, recovery run and release commit. No installed-host update is implied.
13
90
 
14
91
  ## 2.6.3 — 2026-11-18
15
92