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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +3 -5
- package/CHANGELOG.md +78 -1
- package/README.md +505 -448
- package/agents/kimi-pursue.md +6 -6
- package/agents/kimi-review.md +22 -22
- package/agents/kimi-swarm.md +25 -23
- package/agents/{kimi-ask.md → kimi-task.md} +34 -30
- package/commands/README.md +4 -6
- package/commands/pursue.md +1 -1
- package/commands/review.md +8 -3
- package/commands/setup.md +4 -2
- package/commands/swarm.md +6 -5
- package/commands/{rescue.md → task.md} +13 -11
- package/dist/background-spawn.js +10 -17
- package/dist/cli-client.js +65 -46
- package/dist/commands/ask.js +22 -89
- package/dist/commands/cancel.js +7 -46
- package/dist/commands/cli-helpers.js +102 -1
- package/dist/commands/models.js +2 -3
- package/dist/commands/pursue.js +5 -19
- package/dist/commands/repair-sessions.js +118 -12
- package/dist/commands/rescue.js +12 -82
- package/dist/commands/result.js +7 -1
- package/dist/commands/review-gate.js +1 -0
- package/dist/commands/review.js +12 -15
- package/dist/commands/setup.js +606 -270
- package/dist/commands/status.js +2 -2
- package/dist/commands/swarm.js +93 -119
- package/dist/commands/worker.js +1 -2
- package/dist/companion.js +3 -1
- package/dist/dsh/index.js +15 -17
- package/dist/git.js +1 -9
- package/dist/help.js +3 -3
- package/dist/hooks/approval-hook.js +41 -0
- package/dist/hooks/approval-policy.js +72 -10
- package/dist/hooks/config-safety.js +19 -42
- package/dist/hooks/hook-timing.js +48 -0
- package/dist/hooks/install.js +206 -11
- package/dist/hooks/managed-block.js +78 -33
- package/dist/job-store.js +100 -128
- package/dist/jobs.js +14 -19
- package/dist/kimi-command.js +74 -1
- package/dist/kimi-engine.js +170 -74
- package/dist/kimi-errors.js +14 -69
- package/dist/kimi-home.js +6 -0
- package/dist/kimi-journal.js +41 -0
- package/dist/kimi-releases.js +144 -0
- package/dist/kimi-timeouts.js +1 -1
- package/dist/kimi-version-probe.js +12 -48
- package/dist/mcp/job-control.js +4 -6
- package/dist/mcp/launcher.js +12 -6
- package/dist/mcp/operations.js +50 -18
- package/dist/mcp/protocol.js +16 -14
- package/dist/mcp/stdio.js +3 -2
- package/dist/model-command.js +5 -3
- package/dist/native-v2-preflight.js +139 -68
- package/dist/parsing.js +171 -237
- package/dist/paths.js +8 -0
- package/dist/process-tree.js +35 -24
- package/dist/read-scope.js +435 -0
- package/dist/render.js +46 -9
- package/dist/rescue-approval.js +461 -84
- package/dist/schemas/review-gate-output.js +3 -5
- package/dist/session-title.js +25 -5
- package/dist/stream-json.js +1 -3
- package/dist/surface-routing.js +21 -0
- package/dist/swarm-activation.js +74 -77
- package/dist/swarm-policy.js +2 -1
- package/dist/swarm-recovery.js +2 -1
- package/dist/util.js +28 -0
- package/dist/version.js +1 -1
- package/docs/migration.md +27 -6
- package/docs/models.md +2 -2
- package/docs/registry-releases.md +3 -1
- package/docs/safety.md +131 -81
- package/docs/session-visibility.md +5 -3
- package/docs/swarm-recovery.md +4 -4
- package/docs/upstream-2.7.2-certification.md +16 -2
- package/docs/upstream-2.7.3-certification.md +95 -0
- package/package.json +2 -1
- package/plugins/kimi-codex/.codex-plugin/plugin.json +3 -3
- package/plugins/kimi-codex/.mcp.json +1 -0
- package/plugins/kimi-codex/dist/background-spawn.js +10 -17
- package/plugins/kimi-codex/dist/cli-client.js +65 -46
- package/plugins/kimi-codex/dist/commands/ask.js +22 -89
- package/plugins/kimi-codex/dist/commands/cancel.js +7 -46
- package/plugins/kimi-codex/dist/commands/cli-helpers.js +102 -1
- package/plugins/kimi-codex/dist/commands/models.js +2 -3
- package/plugins/kimi-codex/dist/commands/pursue.js +5 -19
- package/plugins/kimi-codex/dist/commands/repair-sessions.js +118 -12
- package/plugins/kimi-codex/dist/commands/rescue.js +12 -82
- package/plugins/kimi-codex/dist/commands/result.js +7 -1
- package/plugins/kimi-codex/dist/commands/review-gate.js +1 -0
- package/plugins/kimi-codex/dist/commands/review.js +12 -15
- package/plugins/kimi-codex/dist/commands/setup.js +606 -270
- package/plugins/kimi-codex/dist/commands/status.js +2 -2
- package/plugins/kimi-codex/dist/commands/swarm.js +93 -119
- package/plugins/kimi-codex/dist/commands/worker.js +1 -2
- package/plugins/kimi-codex/dist/companion.js +3 -1
- package/plugins/kimi-codex/dist/dsh/index.js +15 -17
- package/plugins/kimi-codex/dist/git.js +1 -9
- package/plugins/kimi-codex/dist/help.js +3 -3
- package/plugins/kimi-codex/dist/hooks/approval-hook.js +41 -0
- package/plugins/kimi-codex/dist/hooks/approval-policy.js +72 -10
- package/plugins/kimi-codex/dist/hooks/config-safety.js +19 -42
- package/plugins/kimi-codex/dist/hooks/hook-timing.js +48 -0
- package/plugins/kimi-codex/dist/hooks/install.js +206 -11
- package/plugins/kimi-codex/dist/hooks/managed-block.js +78 -33
- package/plugins/kimi-codex/dist/job-store.js +100 -128
- package/plugins/kimi-codex/dist/jobs.js +14 -19
- package/plugins/kimi-codex/dist/kimi-command.js +74 -1
- package/plugins/kimi-codex/dist/kimi-engine.js +170 -74
- package/plugins/kimi-codex/dist/kimi-errors.js +14 -69
- package/plugins/kimi-codex/dist/kimi-home.js +6 -0
- package/plugins/kimi-codex/dist/kimi-journal.js +41 -0
- package/plugins/kimi-codex/dist/kimi-releases.js +144 -0
- package/plugins/kimi-codex/dist/kimi-timeouts.js +1 -1
- package/plugins/kimi-codex/dist/kimi-version-probe.js +12 -48
- package/plugins/kimi-codex/dist/mcp/job-control.js +4 -6
- package/plugins/kimi-codex/dist/mcp/launcher.js +12 -6
- package/plugins/kimi-codex/dist/mcp/operations.js +50 -18
- package/plugins/kimi-codex/dist/mcp/protocol.js +16 -14
- package/plugins/kimi-codex/dist/mcp/stdio.js +3 -2
- package/plugins/kimi-codex/dist/model-command.js +5 -3
- package/plugins/kimi-codex/dist/native-v2-preflight.js +139 -68
- package/plugins/kimi-codex/dist/parsing.js +171 -237
- package/plugins/kimi-codex/dist/paths.js +8 -0
- package/plugins/kimi-codex/dist/process-tree.js +35 -24
- package/plugins/kimi-codex/dist/read-scope.js +435 -0
- package/plugins/kimi-codex/dist/render.js +46 -9
- package/plugins/kimi-codex/dist/rescue-approval.js +461 -84
- package/plugins/kimi-codex/dist/schemas/review-gate-output.js +3 -5
- package/plugins/kimi-codex/dist/session-title.js +25 -5
- package/plugins/kimi-codex/dist/stream-json.js +1 -3
- package/plugins/kimi-codex/dist/surface-routing.js +21 -0
- package/plugins/kimi-codex/dist/swarm-activation.js +74 -77
- package/plugins/kimi-codex/dist/swarm-policy.js +2 -1
- package/plugins/kimi-codex/dist/swarm-recovery.js +2 -1
- package/plugins/kimi-codex/dist/util.js +28 -0
- package/plugins/kimi-codex/dist/version.js +1 -1
- package/plugins/kimi-codex/skills/kimi-pursue/SKILL.md +1 -1
- package/plugins/kimi-codex/skills/kimi-review/SKILL.md +8 -7
- package/plugins/kimi-codex/skills/kimi-review/agents/openai.yaml +1 -1
- package/plugins/kimi-codex/skills/kimi-setup/SKILL.md +2 -1
- package/plugins/kimi-codex/skills/kimi-swarm/SKILL.md +8 -6
- package/plugins/kimi-codex/skills/kimi-swarm/agents/openai.yaml +1 -1
- package/plugins/kimi-codex/skills/{kimi-ask → kimi-task}/SKILL.md +11 -9
- package/plugins/kimi-codex/skills/kimi-task/agents/openai.yaml +6 -0
- package/plugins/kimi-dsh/README.md +3 -2
- package/plugins/kimi-dsh/dist/background-spawn.js +10 -17
- package/plugins/kimi-dsh/dist/cli-client.js +65 -46
- package/plugins/kimi-dsh/dist/commands/ask.js +22 -89
- package/plugins/kimi-dsh/dist/commands/cancel.js +7 -46
- package/plugins/kimi-dsh/dist/commands/cli-helpers.js +102 -1
- package/plugins/kimi-dsh/dist/commands/models.js +2 -3
- package/plugins/kimi-dsh/dist/commands/pursue.js +5 -19
- package/plugins/kimi-dsh/dist/commands/repair-sessions.js +118 -12
- package/plugins/kimi-dsh/dist/commands/rescue.js +12 -82
- package/plugins/kimi-dsh/dist/commands/result.js +7 -1
- package/plugins/kimi-dsh/dist/commands/review-gate.js +1 -0
- package/plugins/kimi-dsh/dist/commands/review.js +12 -15
- package/plugins/kimi-dsh/dist/commands/setup.js +606 -270
- package/plugins/kimi-dsh/dist/commands/status.js +2 -2
- package/plugins/kimi-dsh/dist/commands/swarm.js +93 -119
- package/plugins/kimi-dsh/dist/commands/worker.js +1 -2
- package/plugins/kimi-dsh/dist/companion.js +3 -1
- package/plugins/kimi-dsh/dist/dsh/index.js +15 -17
- package/plugins/kimi-dsh/dist/git.js +1 -9
- package/plugins/kimi-dsh/dist/help.js +3 -3
- package/plugins/kimi-dsh/dist/hooks/approval-hook.js +41 -0
- package/plugins/kimi-dsh/dist/hooks/approval-policy.js +72 -10
- package/plugins/kimi-dsh/dist/hooks/config-safety.js +19 -42
- package/plugins/kimi-dsh/dist/hooks/hook-timing.js +48 -0
- package/plugins/kimi-dsh/dist/hooks/install.js +206 -11
- package/plugins/kimi-dsh/dist/hooks/managed-block.js +78 -33
- package/plugins/kimi-dsh/dist/job-store.js +100 -128
- package/plugins/kimi-dsh/dist/jobs.js +14 -19
- package/plugins/kimi-dsh/dist/kimi-command.js +74 -1
- package/plugins/kimi-dsh/dist/kimi-engine.js +170 -74
- package/plugins/kimi-dsh/dist/kimi-errors.js +14 -69
- package/plugins/kimi-dsh/dist/kimi-home.js +6 -0
- package/plugins/kimi-dsh/dist/kimi-journal.js +41 -0
- package/plugins/kimi-dsh/dist/kimi-releases.js +144 -0
- package/plugins/kimi-dsh/dist/kimi-timeouts.js +1 -1
- package/plugins/kimi-dsh/dist/kimi-version-probe.js +12 -48
- package/plugins/kimi-dsh/dist/mcp/job-control.js +4 -6
- package/plugins/kimi-dsh/dist/mcp/launcher.js +12 -6
- package/plugins/kimi-dsh/dist/mcp/operations.js +50 -18
- package/plugins/kimi-dsh/dist/mcp/protocol.js +16 -14
- package/plugins/kimi-dsh/dist/mcp/stdio.js +3 -2
- package/plugins/kimi-dsh/dist/model-command.js +5 -3
- package/plugins/kimi-dsh/dist/native-v2-preflight.js +139 -68
- package/plugins/kimi-dsh/dist/parsing.js +171 -237
- package/plugins/kimi-dsh/dist/paths.js +8 -0
- package/plugins/kimi-dsh/dist/process-tree.js +35 -24
- package/plugins/kimi-dsh/dist/read-scope.js +435 -0
- package/plugins/kimi-dsh/dist/render.js +46 -9
- package/plugins/kimi-dsh/dist/rescue-approval.js +461 -84
- package/plugins/kimi-dsh/dist/schemas/review-gate-output.js +3 -5
- package/plugins/kimi-dsh/dist/session-title.js +25 -5
- package/plugins/kimi-dsh/dist/stream-json.js +1 -3
- package/plugins/kimi-dsh/dist/surface-routing.js +21 -0
- package/plugins/kimi-dsh/dist/swarm-activation.js +74 -77
- package/plugins/kimi-dsh/dist/swarm-policy.js +2 -1
- package/plugins/kimi-dsh/dist/swarm-recovery.js +2 -1
- package/plugins/kimi-dsh/dist/util.js +28 -0
- package/plugins/kimi-dsh/dist/version.js +1 -1
- package/plugins/kimi-dsh/package.json +1 -1
- package/agents/kimi-challenge.md +0 -86
- package/agents/kimi-rescue.md +0 -92
- package/agents/kimi-swarm-write.md +0 -96
- package/commands/ask.md +0 -38
- package/commands/challenge.md +0 -35
- package/dist/commands/not-implemented.js +0 -4
- package/plugins/kimi-codex/dist/commands/not-implemented.js +0 -4
- package/plugins/kimi-codex/skills/kimi-ask/agents/openai.yaml +0 -6
- package/plugins/kimi-codex/skills/kimi-challenge/SKILL.md +0 -34
- package/plugins/kimi-codex/skills/kimi-challenge/agents/openai.yaml +0 -6
- package/plugins/kimi-codex/skills/kimi-rescue/SKILL.md +0 -34
- package/plugins/kimi-codex/skills/kimi-rescue/agents/openai.yaml +0 -6
- package/plugins/kimi-codex/skills/kimi-swarm-write/SKILL.md +0 -36
- package/plugins/kimi-codex/skills/kimi-swarm-write/agents/openai.yaml +0 -6
- package/plugins/kimi-dsh/dist/commands/not-implemented.js +0 -4
package/README.md
CHANGED
|
@@ -14,10 +14,6 @@ I'm a [Kimi Ambassador](https://www.kimi.ai/lp/kimi-ambassador) (academia). Kimi
|
|
|
14
14
|
|
|
15
15
|
*Claude Code runs `/kimi:review` on this repository — Kimi reviews the diff, and the host verifies each claim against the tree.*
|
|
16
16
|
|
|
17
|
-

|
|
18
|
-
|
|
19
|
-
*Codex runs `$kimi-ask` — a read-only explanation of this project's entry point, from the entry shell script to the command modules.*
|
|
20
|
-
|
|
21
17
|
Choose a language below. Each guide opens on this page.
|
|
22
18
|
|
|
23
19
|
选择语言,展开阅读 · Choisissez votre langue · 言語を選んで開いてください
|
|
@@ -27,37 +23,30 @@ Choose a language below. Each guide opens on this page.
|
|
|
27
23
|
|
|
28
24
|
## Use Kimi in your coding tasks
|
|
29
25
|
|
|
30
|
-
|
|
26
|
+
Send questions, code reviews, bounded fixes, autonomous goals and parallel swarms to the Kimi Code CLI from Claude Code, Codex or DeepSeek Harness (DSH).
|
|
31
27
|
|
|
32
|
-
The plugin runs
|
|
28
|
+
The plugin runs Kimi on your computer with your Kimi subscription or API provider. It does not change your host login. Your provider receives the prompts and code each task needs.
|
|
33
29
|
|
|
34
|
-
|
|
30
|
+
Read-only tasks cannot edit files or run shell commands. Tasks that write stay inside your workspace or a temporary Git worktree.
|
|
35
31
|
|
|
36
32
|
## Before you install
|
|
37
33
|
|
|
38
34
|
You need:
|
|
39
35
|
|
|
40
36
|
- macOS or Linux
|
|
41
|
-
- Claude Code, Codex, or DSH with plugin support
|
|
37
|
+
- Claude Code, Codex, or DSH `>=0.2.1-rc.5 <0.3.0`, with plugin support
|
|
42
38
|
- Node.js 22.5 or newer (24.9 or newer for DSH)
|
|
43
|
-
- Kimi Code CLI 2.7.
|
|
44
|
-
|
|
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
|
-
|
|
47
|
-
```sh
|
|
48
|
-
node --version
|
|
49
|
-
kimi --version
|
|
50
|
-
```
|
|
39
|
+
- Kimi Code CLI 2.7.3 for every task, including swarm; exact 2.6.2, 2.6.3 and 2.7.2 work the same way
|
|
51
40
|
|
|
52
|
-
|
|
41
|
+
Windows is not supported. Contributors can help with the [no-model Windows diagnostics checks](./docs/windows-validation.md).
|
|
53
42
|
|
|
54
|
-
|
|
43
|
+
Use the [Kimi Code installation guide](https://www.kimi.com/code/docs/en/kimi-code-cli/getting-started) if you need the CLI. You do not need Bun or a build step. Older supported versions and their limits are in the [runtime matrix](./docs/native-v2-certification-provenance.md) and [supported versions and upgrades](./docs/migration.md).
|
|
55
44
|
|
|
56
|
-
Run `kimi` in your terminal. Use `/login` for a Kimi subscription, or `/provider` to set up an API provider. Enter credentials in Kimi, never in the assistant conversation.
|
|
45
|
+
Run `kimi` in your terminal. Use `/login` for a Kimi subscription, or `/provider` to set up an API provider. Enter credentials in Kimi, never in the assistant conversation. If you set `KIMI_CODE_HOME`, use the same location for Kimi and the plugin.
|
|
57
46
|
|
|
58
47
|
## Install in Claude Code
|
|
59
48
|
|
|
60
|
-
Open Claude Code in your project
|
|
49
|
+
Open Claude Code in your project and enter:
|
|
61
50
|
|
|
62
51
|
```text
|
|
63
52
|
/plugin marketplace add linxule/kimi-plugin-cc
|
|
@@ -66,12 +55,10 @@ Open Claude Code in your project. Enter these commands in Claude Code:
|
|
|
66
55
|
/kimi:setup --check
|
|
67
56
|
```
|
|
68
57
|
|
|
69
|
-
Setup installs a hook that checks Kimi's tool calls against the plugin's rules. The `Probe:` line should show `ok`.
|
|
70
|
-
|
|
71
|
-
Try a question that does not change files:
|
|
58
|
+
Setup installs a hook that checks Kimi's tool calls against the plugin's rules. The `Probe:` line should show `ok`. Then try a question that does not change files:
|
|
72
59
|
|
|
73
60
|
```text
|
|
74
|
-
/kimi:
|
|
61
|
+
/kimi:task Explain how this project's main entry point works.
|
|
75
62
|
```
|
|
76
63
|
|
|
77
64
|
## Install in Codex
|
|
@@ -83,229 +70,226 @@ codex plugin marketplace add linxule/kimi-plugin-cc
|
|
|
83
70
|
codex plugin add kimi@kimi-marketplace
|
|
84
71
|
```
|
|
85
72
|
|
|
86
|
-
Open a new Codex task in your project
|
|
73
|
+
Open a new Codex task in your project and send:
|
|
87
74
|
|
|
88
75
|
```text
|
|
89
76
|
Use $kimi-setup to install the safety hook, then check readiness.
|
|
90
77
|
```
|
|
91
78
|
|
|
92
|
-
The
|
|
79
|
+
The `Probe:` line should show `ok`. Then try:
|
|
93
80
|
|
|
94
81
|
```text
|
|
95
|
-
Use $kimi-
|
|
82
|
+
Use $kimi-task to explain how this project's main entry point works.
|
|
96
83
|
```
|
|
97
84
|
|
|
98
|
-
If you use multiple hosts, run setup in each. Each app has its own hook in the shared Kimi configuration.
|
|
99
|
-
|
|
100
85
|
## Install in DeepSeek Harness
|
|
101
86
|
|
|
102
|
-
DSH
|
|
87
|
+
DSH needs patched host and profile dependencies (`zod >=4.6.6`, `undici >=8.12.2`). Follow the [host installation and audit instructions](./docs/registry-releases.md#patched-dsh-host-and-profiles) first.
|
|
103
88
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
From this repository checkout, run:
|
|
89
|
+
From a checkout of this repository, run:
|
|
107
90
|
|
|
108
91
|
```sh
|
|
109
92
|
dsh plugin --profile web add ./plugins/kimi-dsh
|
|
110
93
|
```
|
|
111
94
|
|
|
112
|
-
For the published npm bundle, run `dsh plugin --profile web add kimi-plugin-cc` instead.
|
|
113
|
-
|
|
114
|
-
For DSH Discover, enable **Custom plugin indexes** and add `https://raw.githubusercontent.com/linxule/kimi-plugin-cc/main/dsh/index.json` as an index source.
|
|
95
|
+
For the published npm bundle, run `dsh plugin --profile web add kimi-plugin-cc` instead. For DSH Discover, turn on Custom plugin indexes and add `https://raw.githubusercontent.com/linxule/kimi-plugin-cc/main/dsh/index.json`.
|
|
115
96
|
|
|
116
|
-
Restart DSH when
|
|
97
|
+
Restart DSH when asked, then run `/kimi-setup` and `/kimi-setup --check`. See the [DSH bundle guide](./plugins/kimi-dsh/README.md) for profile settings.
|
|
117
98
|
|
|
118
|
-
|
|
99
|
+
## Install from npm (optional)
|
|
119
100
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
The existing marketplace commands above remain the default for Claude Code and
|
|
123
|
-
Codex. Published releases are also available as
|
|
124
|
-
[`kimi-plugin-cc` on npm](https://www.npmjs.com/package/kimi-plugin-cc), including
|
|
125
|
-
all three compiled plugin distributions. No Bun, TypeScript, or install scripts are
|
|
126
|
-
needed to use the package. Kimi Code CLI and Node are still prerequisites.
|
|
127
|
-
|
|
128
|
-
For an explicitly versioned local Claude Code plugin, this example pins the 2.5.1 package:
|
|
101
|
+
The marketplace commands above are the default. Releases are also published as [`kimi-plugin-cc` on npm](https://www.npmjs.com/package/kimi-plugin-cc). To pin a version for Claude Code:
|
|
129
102
|
|
|
130
103
|
```sh
|
|
131
|
-
npm install --prefix ~/.local/share/kimi-plugin-cc kimi-plugin-cc@
|
|
104
|
+
npm install --prefix ~/.local/share/kimi-plugin-cc kimi-plugin-cc@3.0.0
|
|
132
105
|
claude --plugin-dir ~/.local/share/kimi-plugin-cc/node_modules/kimi-plugin-cc
|
|
133
106
|
```
|
|
134
107
|
|
|
135
|
-
Run `/kimi:setup`, then `/kimi:setup --check
|
|
136
|
-
one installation of the plugin per host; do not load the local copy alongside
|
|
137
|
-
an enabled marketplace copy. The package is a plugin, not a replacement for the
|
|
138
|
-
upstream `kimi` executable, and does not expose an `npx kimi-plugin-cc` command.
|
|
108
|
+
Run `/kimi:setup`, then `/kimi:setup --check`. Use one installation of the plugin per host: do not load this copy alongside an enabled marketplace copy. Maintainers: see [registry releases](./docs/registry-releases.md).
|
|
139
109
|
|
|
140
|
-
|
|
141
|
-
restart the session, and run setup/check again. Codex users should continue to
|
|
142
|
-
use the GitHub marketplace instructions above. Maintainers: see
|
|
143
|
-
[registry releases](./docs/registry-releases.md).
|
|
110
|
+
## Use Kimi from an agent
|
|
144
111
|
|
|
145
|
-
|
|
112
|
+
The plugin includes an MCP server for Claude Code and Codex. If you are an agent, prefer these tools for long-running work: a job keeps running if the connection drops, and a client that supports MCP tasks is notified when it finishes. Other clients get a `job_id` to check.
|
|
146
113
|
|
|
147
|
-
|
|
|
148
|
-
| --- | --- | --- |
|
|
149
|
-
|
|
|
150
|
-
|
|
|
151
|
-
|
|
|
152
|
-
|
|
|
153
|
-
|
|
|
154
|
-
|
|
|
155
|
-
| Work toward a goal over several turns | `/kimi:pursue` | `$kimi-pursue` | Can edit your project; experimental |
|
|
114
|
+
| Tool | What it does | Can it write? |
|
|
115
|
+
| --- | --- | --- |
|
|
116
|
+
| `kimi_ask` | Answers a question about the repository | No |
|
|
117
|
+
| `kimi_review` | Reviews changes. `mode: "challenge"` questions the approach instead | No |
|
|
118
|
+
| `kimi_rescue` | Investigates or makes a bounded fix | Workspace files, never Git |
|
|
119
|
+
| `kimi_pursue` | Works toward an objective over several turns (experimental) | Workspace files, never Git |
|
|
120
|
+
| `kimi_swarm` | Runs parallel read-only checks across independent targets | No |
|
|
121
|
+
| `kimi_swarm_write` | Runs parallel edits in a temporary Git worktree | Returns a patch. It does not apply it |
|
|
156
122
|
|
|
157
|
-
|
|
123
|
+
Use `kimi_job_status`, `kimi_job_result` and `kimi_job_cancel` to follow or stop a job. A result can include `warnings`: pass them on to the user.
|
|
158
124
|
|
|
159
|
-
|
|
125
|
+
`kimi_ask`, `kimi_review` and `kimi_swarm` accept `read_roots` and `network`. See [Limit what a task can read and reach](#limit-what-a-task-can-read-and-reach).
|
|
160
126
|
|
|
161
|
-
|
|
127
|
+
When the host gives no default project directory, as in Codex, pass an absolute `workspace` path.
|
|
162
128
|
|
|
163
|
-
##
|
|
129
|
+
## Use Kimi yourself
|
|
164
130
|
|
|
165
|
-
|
|
131
|
+
| Command | What it does |
|
|
132
|
+
| --- | --- |
|
|
133
|
+
| `/kimi:task` | Answers a question. Add `--write` to let Kimi edit files in your workspace |
|
|
134
|
+
| `/kimi:review` | Reviews your working tree, or a branch with `--base <ref>`. Add `--challenge` to question the approach |
|
|
135
|
+
| `/kimi:pursue` | Works toward an objective over several turns, within a time budget (experimental). It can edit workspace files |
|
|
136
|
+
| `/kimi:swarm` | Runs parallel read-only checks. Add `--write` to prepare parallel edits as a patch |
|
|
137
|
+
| `/kimi:setup` | Installs or checks the hook, lists models, and installs Kimi |
|
|
138
|
+
| `/kimi:status`, `/kimi:result`, `/kimi:cancel`, `/kimi:replay` | Follow, read, stop or replay a task |
|
|
166
139
|
|
|
167
|
-
|
|
140
|
+
Put `--write` or `--challenge` before your prompt.
|
|
168
141
|
|
|
169
|
-
|
|
142
|
+
Version 3.0 merged some commands:
|
|
170
143
|
|
|
171
|
-
|
|
144
|
+
- `/kimi:ask` is now `/kimi:task`
|
|
145
|
+
- `/kimi:rescue` is now `/kimi:task --write`
|
|
146
|
+
- `/kimi:challenge` is now `/kimi:review --challenge`
|
|
147
|
+
- the `kimi_challenge` MCP tool is now `kimi_review` with `mode: "challenge"`
|
|
172
148
|
|
|
173
|
-
|
|
149
|
+
In Codex, use the nine skills, such as `$kimi-task` and `$kimi-review`. In DSH, the seven tools are unchanged, including `kimi_challenge`.
|
|
174
150
|
|
|
175
|
-
|
|
176
|
-
/kimi:review -m 'provider/model' Check error handling in this diff.
|
|
177
|
-
```
|
|
151
|
+
`/kimi:task` can continue a session: `/kimi:task -r Explain the next step.`
|
|
178
152
|
|
|
179
|
-
|
|
153
|
+
## Limit what a task can read and reach
|
|
180
154
|
|
|
181
|
-
|
|
155
|
+
By default a task can read any file on your computer and cannot use the web.
|
|
182
156
|
|
|
183
|
-
|
|
157
|
+
`/kimi:task`, `/kimi:review` and read-only `/kimi:swarm` accept two flags:
|
|
184
158
|
|
|
185
|
-
|
|
159
|
+
- `--read-root <absolute-directory>` limits file reads to your workspace and the directories you name. You can repeat it
|
|
160
|
+
- `--network` allows web search and fetching public web pages. It also limits file reads to your workspace and any `--read-root` directories
|
|
186
161
|
|
|
187
|
-
|
|
162
|
+
Tasks that write do not accept these flags. The limits apply to one run. To add `--network` to a session you started without it, start a new one: `/kimi:task --fresh --network`.
|
|
188
163
|
|
|
189
|
-
|
|
164
|
+
The limits apply to files Kimi reads with its tools. A review's diff covers the whole repository, and Kimi's own instruction files, such as `AGENTS.md`, still reach the model.
|
|
190
165
|
|
|
191
|
-
|
|
192
|
-
| --- | --- | --- |
|
|
193
|
-
| Check progress | `/kimi:status` | `$kimi-status` |
|
|
194
|
-
| Read the result | `/kimi:result` | `$kimi-result` |
|
|
195
|
-
| Cancel work | `/kimi:cancel` | `$kimi-cancel` |
|
|
166
|
+
## When Kimi updates before the plugin does
|
|
196
167
|
|
|
197
|
-
|
|
168
|
+
The plugin checks each Kimi release before it certifies it. If your Kimi is newer than the plugin knows:
|
|
198
169
|
|
|
199
|
-
|
|
170
|
+
- `/kimi:task`, `/kimi:review` and the review gate still run, with a warning
|
|
171
|
+
- `/kimi:task --write`, `/kimi:pursue` and `/kimi:swarm` refuse with `KIMI_CAPABILITY_NOT_CERTIFIED`
|
|
172
|
+
- `--network` refuses
|
|
200
173
|
|
|
201
|
-
|
|
174
|
+
To keep everything working, run `/kimi:setup --install-kimi` (`/kimi-setup --install-kimi` in DSH). It installs the newest certified Kimi for the plugin's own use and leaves your own `kimi` alone. This is the only command that downloads anything.
|
|
202
175
|
|
|
203
|
-
|
|
176
|
+
Tasks use the first of these that exists: the `KIMI_PLUGIN_CC_KIMI_BIN` path, the plugin's own installed Kimi, then `kimi` on your `PATH`. `/kimi:setup --check` shows which one on the `Kimi binary:` line.
|
|
204
177
|
|
|
205
|
-
|
|
178
|
+
## If you use more than one host
|
|
206
179
|
|
|
207
|
-
|
|
180
|
+
Update the plugin in every host you use, and run setup in each.
|
|
208
181
|
|
|
209
|
-
|
|
210
|
-
- **Codex:** calls currently use ordinary MCP results, not native MCP tasks. After attachment, a running job returns a launch handle; an already settled job returns its terminal result. Use the three job-control tools to check, read, or cancel it.
|
|
182
|
+
Each host adds its own hook to the shared Kimi configuration, and Kimi runs every hook for every task. If one host has an older version of the plugin, its hook applies its older rules to every task, and can block things the newer version allows. A task warns you when this can happen.
|
|
211
183
|
|
|
212
|
-
|
|
184
|
+
## View sessions in Kimi
|
|
213
185
|
|
|
214
|
-
|
|
186
|
+
Plugin sessions appear in Kimi Code Desktop and `kimi web`, with a title such as `Kimi Ask: …` and your request as the preview. Kimi can replace the title with a generated one. Manual renames are kept. See [session visibility and titles](./docs/session-visibility.md).
|
|
215
187
|
|
|
216
|
-
##
|
|
188
|
+
## Choose a model
|
|
217
189
|
|
|
218
|
-
|
|
190
|
+
New sessions use your default Kimi model. To use another, list your models with `/kimi:setup --models` (in Codex, ask `$kimi-setup` to list them). This reads your local list. It does not contact providers.
|
|
219
191
|
|
|
220
|
-
|
|
192
|
+
Pass an alias from the list with `-m`:
|
|
221
193
|
|
|
222
|
-
|
|
194
|
+
```text
|
|
195
|
+
/kimi:review -m 'provider/model' Check error handling in this diff.
|
|
196
|
+
```
|
|
223
197
|
|
|
224
|
-
|
|
198
|
+
This does not change your saved default. To change it, run `kimi` and use `/model`. See [model selection and provider setup](./docs/models.md).
|
|
199
|
+
|
|
200
|
+
## Check or cancel a task
|
|
201
|
+
|
|
202
|
+
| Action | Claude Code | Codex | DSH |
|
|
203
|
+
| --- | --- | --- | --- |
|
|
204
|
+
| Check progress | `/kimi:status` | `$kimi-status` | `/kimi-status` |
|
|
205
|
+
| Read the result | `/kimi:result` | `$kimi-result` | `/kimi-result` |
|
|
206
|
+
| Cancel | `/kimi:cancel` | `$kimi-cancel` | `/kimi-cancel` |
|
|
207
|
+
|
|
208
|
+
Without a job ID, cancel stops the latest running task for this repository. Use cancel instead of interrupting the app, so a write swarm can save its patch. Canceling does not undo changes a task has already made.
|
|
209
|
+
|
|
210
|
+
For an interrupted swarm, see [swarm recovery](./docs/swarm-recovery.md).
|
|
211
|
+
|
|
212
|
+
## Update or remove the plugin
|
|
213
|
+
|
|
214
|
+
In Claude Code, open `/plugin`, refresh `kimi-marketplace` and update `kimi`. Then run `/kimi:setup` again.
|
|
215
|
+
|
|
216
|
+
In Codex, run these commands, then open a new task and run `$kimi-setup` again:
|
|
225
217
|
|
|
226
218
|
```sh
|
|
227
219
|
codex plugin marketplace upgrade kimi-marketplace
|
|
228
220
|
codex plugin add kimi@kimi-marketplace
|
|
229
221
|
```
|
|
230
222
|
|
|
231
|
-
|
|
223
|
+
To remove the plugin, remove its hook first: `/kimi:setup --uninstall` in Claude Code, `$kimi-setup` in Codex, or `/kimi-setup --uninstall` in DSH. This leaves other hosts' hooks in place.
|
|
232
224
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
Remove the app's hook before removing its plugin. In Claude Code, run `/kimi:setup --uninstall`. In Codex, ask `$kimi-setup` to uninstall the hook. This leaves the other app's hook in place.
|
|
225
|
+
Upgrading from 2.x? See [upgrading to 3.0](./docs/migration.md#upgrading-to-30).
|
|
236
226
|
|
|
237
227
|
## Fix setup problems
|
|
238
228
|
|
|
239
|
-
If a hook check fails, follow its diagnosis
|
|
229
|
+
If a hook check fails, follow its diagnosis and run setup for that host. Do not bypass the check.
|
|
240
230
|
|
|
241
|
-
If you see `KIMI_CAPABILITY_NOT_CERTIFIED`,
|
|
231
|
+
If you see `KIMI_CAPABILITY_NOT_CERTIFIED`, run `/kimi:setup --install-kimi` or update the plugin.
|
|
242
232
|
|
|
243
|
-
If
|
|
233
|
+
If a task shows a warning, it still ran. The warning tells you what to fix.
|
|
244
234
|
|
|
245
|
-
All refusal codes and
|
|
235
|
+
All refusal codes and what to do about them are in the [refusal-code catalog](./docs/safety.md#refusal-codes-of-the-native-v2-contract-v1100).
|
|
246
236
|
|
|
247
237
|
## Understand the safety limits
|
|
248
238
|
|
|
249
|
-
The
|
|
239
|
+
The plugin makes promises about the Kimi sessions it starts. It does not police your own Kimi settings.
|
|
250
240
|
|
|
251
|
-
|
|
241
|
+
A hook checks every tool call Kimi makes and denies anything the task is not allowed to do:
|
|
252
242
|
|
|
253
|
-
|
|
243
|
+
- read-only tasks cannot write files or run shell commands
|
|
244
|
+
- tasks that write can only change files inside your workspace, and cannot change Git state
|
|
245
|
+
- a write swarm works in a temporary Git worktree from your latest commit and returns a patch. It does not apply it
|
|
254
246
|
|
|
255
|
-
|
|
247
|
+
The plugin does not:
|
|
256
248
|
|
|
257
|
-
|
|
249
|
+
- limit what a task can read, unless you pass `--read-root` or `--network`
|
|
250
|
+
- see where a web address leads: a public address can redirect to a private one
|
|
251
|
+
- act as a sandbox: tasks that write can run tests and similar commands, and these run code from your repository
|
|
252
|
+
- commit anything. Review changes before you keep them
|
|
258
253
|
|
|
259
|
-
Only
|
|
254
|
+
Only run tasks that write in repositories you trust.
|
|
260
255
|
|
|
261
|
-
See [safety and limitations](./docs/safety.md), [release history](./CHANGELOG.md)
|
|
256
|
+
See [safety and limitations](./docs/safety.md), [release history](./CHANGELOG.md) and [planned work](./ROADMAP-TO-GA.md).
|
|
262
257
|
|
|
263
258
|
## Contribute
|
|
264
259
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
Every release is cross-reviewed by the agents this plugin orchestrates — Kimi, Claude, and Codex review each other's work on this repository, a practice documented across the [changelog](./CHANGELOG.md).
|
|
268
|
-
|
|
269
|
-
Contributors need Bun to run `bun run check`. The detailed engineering documents are in English.
|
|
260
|
+
Report bugs or propose changes in [GitHub issues](https://github.com/linxule/kimi-plugin-cc/issues). Contributors can read the [runtime invariants](./docs/invariants.md) and [CI details](./docs/ci.md).
|
|
270
261
|
|
|
271
262
|
</details>
|
|
272
263
|
|
|
273
264
|
<details>
|
|
274
265
|
<summary>简体中文 — 开始使用</summary>
|
|
275
266
|
|
|
276
|
-
##
|
|
267
|
+
## 在编码任务中使用 Kimi
|
|
277
268
|
|
|
278
|
-
|
|
269
|
+
从 Claude Code、Codex 或 DeepSeek Harness(DSH)向 Kimi Code CLI 发送提问、代码审查、限定范围的修复、自主目标和并行 swarm 任务。
|
|
279
270
|
|
|
280
|
-
|
|
271
|
+
该插件使用你的 Kimi 订阅或 API 提供商,在你的电脑上运行 Kimi。它不会更改你的宿主登录状态。你的提供商会接收每个任务所需的提示词和代码。
|
|
281
272
|
|
|
282
|
-
|
|
273
|
+
只读任务不能编辑文件或运行 shell 命令。写入任务限定在你的工作区或临时 Git 工作树内。
|
|
283
274
|
|
|
284
275
|
## 安装前准备
|
|
285
276
|
|
|
286
277
|
你需要:
|
|
287
278
|
|
|
288
279
|
- macOS 或 Linux
|
|
289
|
-
- 支持插件的 Claude Code、Codex 或 DSH
|
|
290
|
-
- Node.js 22.5 或更高版本(DSH
|
|
291
|
-
- Kimi Code CLI 2.7.
|
|
292
|
-
|
|
293
|
-
目前不支持 Windows。在终端检查版本:
|
|
294
|
-
|
|
295
|
-
```sh
|
|
296
|
-
node --version
|
|
297
|
-
kimi --version
|
|
298
|
-
```
|
|
280
|
+
- 支持插件的 Claude Code、Codex 或 DSH `>=0.2.1-rc.5 <0.3.0`
|
|
281
|
+
- Node.js 22.5 或更高版本(DSH 需 24.9 或更高版本)
|
|
282
|
+
- Kimi Code CLI 2.7.3(支持所有任务,包括 swarm);精确版本 2.6.2、2.6.3 和 2.7.2 的工作方式相同
|
|
299
283
|
|
|
300
|
-
|
|
284
|
+
不支持 Windows。贡献者可以协助完成[无模型 Windows 诊断检查](./docs/windows-validation.md)。
|
|
301
285
|
|
|
302
|
-
|
|
286
|
+
如果你需要该 CLI,请使用 [Kimi Code 安装指南](https://www.kimi.com/code/docs/en/kimi-code-cli/getting-started)。你不需要 Bun 或构建步骤。受支持的旧版本及其限制见[运行时矩阵](./docs/native-v2-certification-provenance.md)和[支持的版本与升级](./docs/migration.md)。
|
|
303
287
|
|
|
304
|
-
|
|
288
|
+
在终端中运行 `kimi`。使用 `/login` 登录 Kimi 订阅,或使用 `/provider` 配置 API 提供商。请在 Kimi 中输入凭据,切勿在助手对话中输入。如果你设置了 `KIMI_CODE_HOME`,请为 Kimi 和插件使用相同路径。
|
|
305
289
|
|
|
306
290
|
## 在 Claude Code 中安装
|
|
307
291
|
|
|
308
|
-
|
|
292
|
+
在你的项目中打开 Claude Code 并输入:
|
|
309
293
|
|
|
310
294
|
```text
|
|
311
295
|
/plugin marketplace add linxule/kimi-plugin-cc
|
|
@@ -314,221 +298,241 @@ kimi --version
|
|
|
314
298
|
/kimi:setup --check
|
|
315
299
|
```
|
|
316
300
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
试着问一个不需要修改文件的问题:
|
|
301
|
+
设置过程会安装一个钩子,根据插件规则检查 Kimi 的工具调用。`Probe:` 行应显示 `ok`。然后尝试一个不会修改文件的问题:
|
|
320
302
|
|
|
321
303
|
```text
|
|
322
|
-
/kimi:
|
|
304
|
+
/kimi:task Explain how this project's main entry point works.
|
|
323
305
|
```
|
|
324
306
|
|
|
325
307
|
## 在 Codex 中安装
|
|
326
308
|
|
|
327
|
-
|
|
309
|
+
在终端中运行以下命令:
|
|
328
310
|
|
|
329
311
|
```sh
|
|
330
312
|
codex plugin marketplace add linxule/kimi-plugin-cc
|
|
331
313
|
codex plugin add kimi@kimi-marketplace
|
|
332
314
|
```
|
|
333
315
|
|
|
334
|
-
|
|
316
|
+
在你的项目中新建一个 Codex 任务并发送:
|
|
335
317
|
|
|
336
318
|
```text
|
|
337
|
-
|
|
319
|
+
Use $kimi-setup to install the safety hook, then check readiness.
|
|
338
320
|
```
|
|
339
321
|
|
|
340
|
-
|
|
322
|
+
`Probe:` 行应显示 `ok`。然后尝试:
|
|
341
323
|
|
|
342
324
|
```text
|
|
343
|
-
|
|
325
|
+
Use $kimi-task to explain how this project's main entry point works.
|
|
344
326
|
```
|
|
345
327
|
|
|
346
|
-
|
|
328
|
+
## 在 DeepSeek Harness 中安装
|
|
347
329
|
|
|
348
|
-
|
|
330
|
+
DSH 需要打过补丁的宿主与配置集依赖项(`zod >=4.6.6`、`undici >=8.12.2`)。请先按照[宿主安装与审计说明](./docs/registry-releases.md#patched-dsh-host-and-profiles)操作。
|
|
349
331
|
|
|
350
|
-
|
|
332
|
+
在本仓库的检出目录中运行:
|
|
351
333
|
|
|
352
|
-
|
|
334
|
+
```sh
|
|
335
|
+
dsh plugin --profile web add ./plugins/kimi-dsh
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
若使用已发布的 npm 捆绑包,请改用 `dsh plugin --profile web add kimi-plugin-cc`。若使用 DSH Discover,请开启自定义插件索引并添加 `https://raw.githubusercontent.com/linxule/kimi-plugin-cc/main/dsh/index.json`。
|
|
339
|
+
|
|
340
|
+
出现提示时重启 DSH,然后运行 `/kimi-setup` 和 `/kimi-setup --check`。有关配置集设置,请参见 [DSH 捆绑包指南](./plugins/kimi-dsh/README.md)。
|
|
341
|
+
|
|
342
|
+
## 从 npm 安装(可选)
|
|
353
343
|
|
|
354
|
-
|
|
344
|
+
上方的插件市场命令是默认安装方式。各版本也会作为 [npm 上的 `kimi-plugin-cc`](https://www.npmjs.com/package/kimi-plugin-cc) 发布。如需为 Claude Code 锁定版本:
|
|
355
345
|
|
|
356
346
|
```sh
|
|
357
|
-
|
|
347
|
+
npm install --prefix ~/.local/share/kimi-plugin-cc kimi-plugin-cc@3.0.0
|
|
348
|
+
claude --plugin-dir ~/.local/share/kimi-plugin-cc/node_modules/kimi-plugin-cc
|
|
358
349
|
```
|
|
359
350
|
|
|
360
|
-
|
|
351
|
+
运行 `/kimi:setup`,然后运行 `/kimi:setup --check`。每个宿主只使用一份插件安装:不要在已启用插件市场副本的同时加载此副本。维护者:参见[注册表发布](./docs/registry-releases.md)。
|
|
361
352
|
|
|
362
|
-
|
|
353
|
+
## 从智能体使用 Kimi
|
|
363
354
|
|
|
364
|
-
|
|
355
|
+
插件包含面向 Claude Code 和 Codex 的 MCP 服务器。如果你是智能体,处理耗时较长的工作时请优先使用这些工具:即使连接断开,作业也会继续运行;支持 MCP 任务的客户端会在作业完成时收到通知。其他客户端会获得一个可供查询的 `job_id`。
|
|
365
356
|
|
|
366
|
-
|
|
357
|
+
| 工具 | 作用 | 能否写入? |
|
|
358
|
+
| --- | --- | --- |
|
|
359
|
+
| `kimi_ask` | 回答关于代码仓库的问题 | 否 |
|
|
360
|
+
| `kimi_review` | 审查改动。`mode: "challenge"` 则改为质疑实现方案 | 否 |
|
|
361
|
+
| `kimi_rescue` | 排查问题或执行限定范围的修复 | 工作区文件,绝不修改 Git |
|
|
362
|
+
| `kimi_pursue` | 通过多轮执行推进目标(实验性) | 工作区文件,绝不修改 Git |
|
|
363
|
+
| `kimi_swarm` | 针对多个独立目标并行运行只读检查 | 否 |
|
|
364
|
+
| `kimi_swarm_write` | 在临时 Git 工作树中并行执行编辑 | 返回补丁。不会应用该补丁 |
|
|
367
365
|
|
|
368
|
-
|
|
366
|
+
使用 `kimi_job_status`、`kimi_job_result` 和 `kimi_job_cancel` 跟进或停止作业。结果可能包含 `warnings`:请将其转达给用户。
|
|
369
367
|
|
|
370
|
-
|
|
368
|
+
`kimi_ask`、`kimi_review` 和 `kimi_swarm` 接受 `read_roots` 和 `network`。参见[限制任务可读取和访问的范围](#限制任务可读取和访问的范围)。
|
|
371
369
|
|
|
372
|
-
|
|
373
|
-
| --- | --- | --- | --- |
|
|
374
|
-
| 解释代码 | `/kimi:ask` | `$kimi-ask` | 只读 |
|
|
375
|
-
| 审查代码修改 | `/kimi:review` | `$kimi-review` | 只读 |
|
|
376
|
-
| 检查设计或方案中的问题 | `/kimi:challenge` | `$kimi-challenge` | 只读 |
|
|
377
|
-
| 完成一项范围明确的修复 | `/kimi:rescue` | `$kimi-rescue` | 可以修改项目文件 |
|
|
378
|
-
| 同时审查多个部分 | `/kimi:swarm` | `$kimi-swarm` | 只读 |
|
|
379
|
-
| 并行准备修改 | `/kimi:swarm --write` | `$kimi-swarm-write` | 只在临时 Git 工作树中修改,返回补丁,由你决定是否应用 |
|
|
380
|
-
| 通过多轮任务推进目标 | `/kimi:pursue` | `$kimi-pursue` | 可以修改项目文件,属于实验性功能 |
|
|
370
|
+
当宿主未提供默认项目目录时(例如在 Codex 中),请传入绝对路径作为 `workspace`。
|
|
381
371
|
|
|
382
|
-
|
|
372
|
+
## 自行使用 Kimi
|
|
383
373
|
|
|
384
|
-
|
|
374
|
+
| 命令 | 作用 |
|
|
375
|
+
| --- | --- |
|
|
376
|
+
| `/kimi:task` | 回答问题。加上 `--write` 可让 Kimi 编辑工作区中的文件 |
|
|
377
|
+
| `/kimi:review` | 审查工作树,或配合 `--base <ref>` 审查分支。加上 `--challenge` 可质疑实现方案 |
|
|
378
|
+
| `/kimi:pursue` | 在时间预算内通过多轮执行推进目标(实验性)。它可以编辑工作区文件 |
|
|
379
|
+
| `/kimi:swarm` | 并行运行只读检查。加上 `--write` 可将并行编辑准备为补丁 |
|
|
380
|
+
| `/kimi:setup` | 安装或检查钩子、列出模型,以及安装 Kimi |
|
|
381
|
+
| `/kimi:status`、`/kimi:result`、`/kimi:cancel`、`/kimi:replay` | 跟进、读取、停止或回放任务 |
|
|
385
382
|
|
|
386
|
-
|
|
383
|
+
请将 `--write` 或 `--challenge` 放在提示词前面。
|
|
387
384
|
|
|
388
|
-
|
|
385
|
+
3.0 版本合并了部分命令:
|
|
389
386
|
|
|
390
|
-
|
|
387
|
+
- `/kimi:ask` 现已改为 `/kimi:task`
|
|
388
|
+
- `/kimi:rescue` 现已改为 `/kimi:task --write`
|
|
389
|
+
- `/kimi:challenge` 现已改为 `/kimi:review --challenge`
|
|
390
|
+
- MCP 工具 `kimi_challenge` 现已改为带 `mode: "challenge"` 的 `kimi_review`
|
|
391
391
|
|
|
392
|
-
在
|
|
392
|
+
在 Codex 中,请使用九个技能,例如 `$kimi-task` 和 `$kimi-review`。在 DSH 中,包括 `kimi_challenge` 在内的七个工具保持不变。
|
|
393
393
|
|
|
394
|
-
|
|
394
|
+
`/kimi:task` 可以继续已有会话:`/kimi:task -r Explain the next step.`
|
|
395
395
|
|
|
396
|
-
|
|
397
|
-
/kimi:review -m 'provider/model' 检查这次修改中的错误处理。
|
|
398
|
-
```
|
|
396
|
+
## 限制任务可读取和访问的范围
|
|
399
397
|
|
|
400
|
-
|
|
398
|
+
默认情况下,任务可以读取你电脑上的任何文件,且不能访问网络。
|
|
401
399
|
|
|
402
|
-
|
|
400
|
+
`/kimi:task`、`/kimi:review` 和只读的 `/kimi:swarm` 接受两个标志:
|
|
403
401
|
|
|
404
|
-
|
|
402
|
+
- `--read-root <absolute-directory>` 将文件读取范围限制在你的工作区和你指定的目录内。你可以重复指定该标志
|
|
403
|
+
- `--network` 允许网页搜索和抓取公开网页。它同时会将文件读取范围限制在你的工作区和所有 `--read-root` 目录内
|
|
405
404
|
|
|
406
|
-
|
|
405
|
+
写入任务不接受这些标志。这些限制仅对单次运行生效。要为启动时未带 `--network` 的会话添加该标志,请启动新会话:`/kimi:task --fresh --network`。
|
|
407
406
|
|
|
408
|
-
|
|
407
|
+
这些限制适用于 Kimi 使用其工具读取的文件。审查的 diff 覆盖整个仓库,而 Kimi 自身的指令文件(例如 `AGENTS.md`)仍会送达模型。
|
|
409
408
|
|
|
410
|
-
|
|
409
|
+
## 当 Kimi 先于插件更新时
|
|
411
410
|
|
|
412
|
-
|
|
413
|
-
| --- | --- | --- |
|
|
414
|
-
| 查看进度 | `/kimi:status` | `$kimi-status` |
|
|
415
|
-
| 查看结果 | `/kimi:result` | `$kimi-result` |
|
|
416
|
-
| 取消任务 | `/kimi:cancel` | `$kimi-cancel` |
|
|
411
|
+
插件会先检查每个 Kimi 发布版本,然后再予以认证。如果你的 Kimi 比插件已知的版本更新:
|
|
417
412
|
|
|
418
|
-
|
|
413
|
+
- `/kimi:task`、`/kimi:review` 和审查门禁仍会运行,但会显示警告
|
|
414
|
+
- `/kimi:task --write`、`/kimi:pursue` 和 `/kimi:swarm` 会以 `KIMI_CAPABILITY_NOT_CERTIFIED` 拒绝执行
|
|
415
|
+
- `--network` 会拒绝执行
|
|
419
416
|
|
|
420
|
-
|
|
417
|
+
要让所有功能保持可用,请运行 `/kimi:setup --install-kimi`(在 DSH 中为 `/kimi-setup --install-kimi`)。它会安装最新通过认证的 Kimi 供插件专用,不会改动你自己的 `kimi`。这是唯一会执行下载的命令。
|
|
421
418
|
|
|
422
|
-
|
|
419
|
+
任务按顺序使用以下第一个存在的程序:`KIMI_PLUGIN_CC_KIMI_BIN` 路径、插件自行安装的 Kimi,然后是你 `PATH` 中的 `kimi`。`/kimi:setup --check` 会在 `Kimi binary:` 行显示所使用的是哪一个。
|
|
423
420
|
|
|
424
|
-
|
|
421
|
+
## 如果你使用多个宿主
|
|
425
422
|
|
|
426
|
-
|
|
423
|
+
请在你使用的每个宿主中更新插件,并分别运行设置命令。
|
|
427
424
|
|
|
428
|
-
|
|
425
|
+
每个宿主都会将自己的钩子添加到共享的 Kimi 配置中,而 Kimi 会为每个任务运行每个钩子。如果某个宿主的插件版本较旧,它的钩子会将其旧规则应用到每个任务,并可能阻止新版本允许的操作。可能发生这种情况时,任务会向你发出警告。
|
|
429
426
|
|
|
430
|
-
|
|
431
|
-
- **Codex:** 目前使用普通 MCP 结果,而不是原生 MCP 任务。附加完成后,仍在运行的任务返回启动句柄;已结束的任务直接返回最终结果。使用上述三个任务控制工具查看进度、读取结果或取消任务。
|
|
427
|
+
## 在 Kimi 中查看会话
|
|
432
428
|
|
|
433
|
-
|
|
429
|
+
插件会话会显示在 Kimi Code Desktop 和 `kimi web` 中,标题例如 `Kimi Ask: …`,预览内容为你的请求。Kimi 可以将其替换为生成的标题。手动重命名会保留。参见[会话可见性与标题](./docs/session-visibility.md)。
|
|
434
430
|
|
|
435
|
-
|
|
431
|
+
## 选择模型
|
|
436
432
|
|
|
437
|
-
|
|
433
|
+
新会话使用你的默认 Kimi 模型。如需改用其他模型,请使用 `/kimi:setup --models` 列出你的模型(在 Codex 中,请让 `$kimi-setup` 列出)。这会读取你的本地列表。它不会连接提供商。
|
|
438
434
|
|
|
439
|
-
|
|
435
|
+
使用 `-m` 传入列表中的别名:
|
|
440
436
|
|
|
441
|
-
|
|
437
|
+
```text
|
|
438
|
+
/kimi:review -m 'provider/model' Check error handling in this diff.
|
|
439
|
+
```
|
|
440
|
+
|
|
441
|
+
这不会更改你已保存的默认设置。如需更改,请运行 `kimi` 并使用 `/model`。参见[模型选择与提供商配置](./docs/models.md)。
|
|
442
|
+
|
|
443
|
+
## 查看或取消任务
|
|
444
|
+
|
|
445
|
+
| 操作 | Claude Code | Codex | DSH |
|
|
446
|
+
| --- | --- | --- | --- |
|
|
447
|
+
| 查看进度 | `/kimi:status` | `$kimi-status` | `/kimi-status` |
|
|
448
|
+
| 读取结果 | `/kimi:result` | `$kimi-result` | `/kimi-result` |
|
|
449
|
+
| 取消 | `/kimi:cancel` | `$kimi-cancel` | `/kimi-cancel` |
|
|
450
|
+
|
|
451
|
+
不指定作业 ID 时,取消操作会停止当前仓库最近一个正在运行的任务。请使用取消命令而不要直接中断应用,以便写入型 swarm保存补丁。取消不会撤销任务已经做出的改动。
|
|
452
|
+
|
|
453
|
+
对于已中断的 swarm,请参见[swarm 恢复](./docs/swarm-recovery.md)。
|
|
454
|
+
|
|
455
|
+
## 更新或移除插件
|
|
442
456
|
|
|
443
|
-
|
|
457
|
+
在 Claude Code 中,打开 `/plugin`,刷新 `kimi-marketplace` 并更新 `kimi`。然后再次运行 `/kimi:setup`。
|
|
444
458
|
|
|
445
|
-
|
|
459
|
+
在 Codex 中,运行以下命令,然后新建一个任务并再次运行 `$kimi-setup`:
|
|
446
460
|
|
|
447
461
|
```sh
|
|
448
462
|
codex plugin marketplace upgrade kimi-marketplace
|
|
449
463
|
codex plugin add kimi@kimi-marketplace
|
|
450
464
|
```
|
|
451
465
|
|
|
452
|
-
|
|
466
|
+
要移除插件,请先移除它的钩子:在 Claude Code 中运行 `/kimi:setup --uninstall`,在 Codex 中使用 `$kimi-setup`,或在 DSH 中运行 `/kimi-setup --uninstall`。这会保留其他宿主的钩子。
|
|
453
467
|
|
|
454
|
-
|
|
468
|
+
从 2.x 升级?参见[升级到 3.0](./docs/migration.md#upgrading-to-30)。
|
|
455
469
|
|
|
456
|
-
|
|
470
|
+
## 解决设置问题
|
|
457
471
|
|
|
458
|
-
|
|
472
|
+
如果钩子检查失败,请按照诊断说明操作,并为该宿主运行设置命令。不要绕过检查。
|
|
459
473
|
|
|
460
|
-
|
|
474
|
+
如果看到 `KIMI_CAPABILITY_NOT_CERTIFIED`,请运行 `/kimi:setup --install-kimi` 或更新插件。
|
|
461
475
|
|
|
462
|
-
|
|
476
|
+
如果任务显示警告,该任务仍然已经运行。警告会说明需要修复的问题。
|
|
463
477
|
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
所有拒绝码及其处理方法见[拒绝码目录](./docs/safety.md#refusal-codes-of-the-native-v2-contract-v1100)。
|
|
478
|
+
所有拒绝码及其处理方式见[拒绝码目录](./docs/safety.md#refusal-codes-of-the-native-v2-contract-v1100)。
|
|
467
479
|
|
|
468
480
|
## 了解安全限制
|
|
469
481
|
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
在精确版本 CLI 2.6.2/2.6.3/2.7.2 上,`--max-concurrency 1` 直接运行一个工作代理;更大的值将任务分成多批,每批子代理数不超过该值。只读模式默认 4,写入模式默认 1。`--cap` 仍只是总数建议。并行任务通过短暂的认证本地回环进程激活和停用会话;单代理路径无需这些进程。激活计入任务时限,令牌不写入日志,无法确认清理完成时不会报告成功。旧版继续保留其已披露的激活和恢复限制。
|
|
473
|
-
|
|
474
|
-
较慢的子代理会让当前批次等待,直到完成或整个任务达到时限。全新批次至少需要两个条目,因此奇数个目标可能需要重新分组。Kimi 工作代理不能显式将 Bash 放到后台,并行会话也禁用自动后台运行。正常退出和取消都必须确认所管理进程已停止,才会捕获结果或补丁。并发上限计算的是 Kimi 子代理轮次;获准的测试仍可启动多个系统进程,单次 Bash 超时也不保证这些进程在下一批开始前停止。
|
|
482
|
+
插件对由它启动的 Kimi 会话作出保证。它不会管控你自己的 Kimi 设置。
|
|
475
483
|
|
|
476
|
-
|
|
484
|
+
钩子会检查 Kimi 发起的每次工具调用,并拒绝任务无权执行的操作:
|
|
477
485
|
|
|
478
|
-
|
|
486
|
+
- 只读任务不能写入文件或运行 shell 命令
|
|
487
|
+
- 写入任务只能修改工作区内的文件,且不能更改 Git 状态
|
|
488
|
+
- 写入型 swarm基于你的最新提交在临时 Git 工作树中运行,并返回补丁。它不会应用该补丁
|
|
479
489
|
|
|
480
|
-
|
|
490
|
+
插件不会:
|
|
481
491
|
|
|
482
|
-
|
|
492
|
+
- 限制任务可读取的内容,除非你传入 `--read-root` 或 `--network`
|
|
493
|
+
- 查看网址的最终指向:公开地址可能会重定向到私有地址
|
|
494
|
+
- 充当沙盒:写入任务可以运行测试及类似命令,而这些命令会执行仓库中的代码
|
|
495
|
+
- 提交任何内容。保留改动前请先自行审查
|
|
483
496
|
|
|
484
|
-
|
|
497
|
+
请仅在你信任的代码仓库中运行写入任务。
|
|
485
498
|
|
|
486
|
-
|
|
499
|
+
参见[安全性与限制](./docs/safety.md)、[发布历史](./CHANGELOG.md)和[后续计划](./ROADMAP-TO-GA.md)。
|
|
487
500
|
|
|
488
|
-
|
|
501
|
+
## 参与贡献
|
|
489
502
|
|
|
490
|
-
|
|
503
|
+
请在 [GitHub 问题](https://github.com/linxule/kimi-plugin-cc/issues)中报告缺陷或提出修改建议。贡献者可以阅读[运行时不变量](./docs/invariants.md)和 [CI 详情](./docs/ci.md)。
|
|
491
504
|
|
|
492
505
|
</details>
|
|
493
506
|
|
|
494
507
|
<details>
|
|
495
508
|
<summary>Français — Bien démarrer</summary>
|
|
496
509
|
|
|
497
|
-
## Utiliser Kimi
|
|
510
|
+
## Utiliser Kimi dans vos tâches de développement
|
|
498
511
|
|
|
499
|
-
|
|
512
|
+
Envoyez des questions, des revues de code, des correctifs délimités, des objectifs autonomes et des swarms parallèles à la CLI Kimi Code depuis Claude Code, Codex ou DeepSeek Harness (DSH).
|
|
500
513
|
|
|
501
|
-
Le plugin exécute Kimi
|
|
514
|
+
Le plugin exécute Kimi sur votre ordinateur avec votre abonnement Kimi ou votre fournisseur d'API. Il ne modifie pas la connexion de votre hôte. Votre fournisseur reçoit les prompts et le code nécessaires à chaque tâche.
|
|
502
515
|
|
|
503
|
-
|
|
516
|
+
Les tâches en lecture seule ne peuvent ni modifier de fichiers ni exécuter de commandes shell. Les tâches en écriture restent dans votre espace de travail ou dans un arbre de travail Git temporaire.
|
|
504
517
|
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
## Préparer l'installation
|
|
518
|
+
## Avant l'installation
|
|
508
519
|
|
|
509
520
|
Il vous faut :
|
|
510
521
|
|
|
511
522
|
- macOS ou Linux
|
|
512
|
-
-
|
|
513
|
-
- Node.js 22.5 ou
|
|
514
|
-
- Kimi Code CLI 2.7.
|
|
515
|
-
|
|
516
|
-
Windows n'est pas pris en charge actuellement. Vérifiez les versions dans un terminal :
|
|
523
|
+
- Claude Code, Codex ou DSH `>=0.2.1-rc.5 <0.3.0`, avec prise en charge des plugins
|
|
524
|
+
- Node.js 22.5 ou plus récent (24.9 ou plus récent pour DSH)
|
|
525
|
+
- Kimi Code CLI 2.7.3 pour toutes les tâches, y compris les swarms ; les versions exactes 2.6.2, 2.6.3 et 2.7.2 fonctionnent de la même manière
|
|
517
526
|
|
|
518
|
-
|
|
519
|
-
node --version
|
|
520
|
-
kimi --version
|
|
521
|
-
```
|
|
522
|
-
|
|
523
|
-
Si le CLI n'est pas installé, suivez le [guide d'installation de Kimi Code](https://www.kimi.com/code/docs/en/kimi-code-cli/getting-started) (en anglais). Vous n'avez pas besoin de Bun ni d'étape de compilation pour utiliser ce plugin.
|
|
527
|
+
Windows n'est pas pris en charge. Les contributeurs peuvent aider avec les [vérifications de diagnostic Windows sans modèle](./docs/windows-validation.md).
|
|
524
528
|
|
|
525
|
-
|
|
529
|
+
Consultez le [guide d'installation de Kimi Code](https://www.kimi.com/code/docs/en/kimi-code-cli/getting-started) si vous avez besoin de la CLI. Vous n'avez besoin ni de Bun ni d'une étape de compilation. Les versions plus anciennes prises en charge et leurs limites figurent dans la [matrice d'exécution](./docs/native-v2-certification-provenance.md) et dans [versions prises en charge et mises à niveau](./docs/migration.md).
|
|
526
530
|
|
|
527
|
-
|
|
531
|
+
Exécutez `kimi` dans votre terminal. Utilisez `/login` pour un abonnement Kimi, ou `/provider` pour configurer un fournisseur d'API. Saisissez vos identifiants dans Kimi, jamais dans la conversation avec l'assistant. Si vous définissez `KIMI_CODE_HOME`, utilisez le même emplacement pour Kimi et pour le plugin.
|
|
528
532
|
|
|
529
533
|
## Installer dans Claude Code
|
|
530
534
|
|
|
531
|
-
Ouvrez Claude Code dans votre projet
|
|
535
|
+
Ouvrez Claude Code dans votre projet et saisissez :
|
|
532
536
|
|
|
533
537
|
```text
|
|
534
538
|
/plugin marketplace add linxule/kimi-plugin-cc
|
|
@@ -537,217 +541,241 @@ Ouvrez Claude Code dans votre projet. Saisissez ces commandes dans Claude Code :
|
|
|
537
541
|
/kimi:setup --check
|
|
538
542
|
```
|
|
539
543
|
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
Essayez une question qui ne modifie aucun fichier :
|
|
544
|
+
La configuration installe un hook qui vérifie les appels d'outils de Kimi par rapport aux règles du plugin. La ligne `Probe:` doit afficher `ok`. Essayez ensuite une question qui ne modifie aucun fichier :
|
|
543
545
|
|
|
544
546
|
```text
|
|
545
|
-
/kimi:
|
|
547
|
+
/kimi:task Explain how this project's main entry point works.
|
|
546
548
|
```
|
|
547
549
|
|
|
548
550
|
## Installer dans Codex
|
|
549
551
|
|
|
550
|
-
Exécutez ces commandes dans
|
|
552
|
+
Exécutez ces commandes dans votre terminal :
|
|
551
553
|
|
|
552
554
|
```sh
|
|
553
555
|
codex plugin marketplace add linxule/kimi-plugin-cc
|
|
554
556
|
codex plugin add kimi@kimi-marketplace
|
|
555
557
|
```
|
|
556
558
|
|
|
557
|
-
Ouvrez une nouvelle tâche Codex dans votre projet
|
|
559
|
+
Ouvrez une nouvelle tâche Codex dans votre projet et envoyez :
|
|
558
560
|
|
|
559
561
|
```text
|
|
560
|
-
|
|
562
|
+
Use $kimi-setup to install the safety hook, then check readiness.
|
|
561
563
|
```
|
|
562
564
|
|
|
563
|
-
|
|
565
|
+
La ligne `Probe:` doit afficher `ok`. Essayez ensuite :
|
|
564
566
|
|
|
565
567
|
```text
|
|
566
|
-
|
|
568
|
+
Use $kimi-task to explain how this project's main entry point works.
|
|
567
569
|
```
|
|
568
570
|
|
|
569
|
-
|
|
571
|
+
## Installer dans DeepSeek Harness
|
|
570
572
|
|
|
571
|
-
|
|
573
|
+
DSH nécessite des dépendances corrigées pour l'hôte et les profils (`zod >=4.6.6`, `undici >=8.12.2`). Suivez d'abord les [instructions d'installation et d'audit de l'hôte](./docs/registry-releases.md#patched-dsh-host-and-profiles).
|
|
572
574
|
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
Depuis une copie de ce dépôt, exécutez :
|
|
575
|
+
Depuis une copie locale de ce dépôt, exécutez :
|
|
576
576
|
|
|
577
577
|
```sh
|
|
578
578
|
dsh plugin --profile web add ./plugins/kimi-dsh
|
|
579
579
|
```
|
|
580
580
|
|
|
581
|
-
Pour
|
|
581
|
+
Pour le paquet npm publié, exécutez plutôt `dsh plugin --profile web add kimi-plugin-cc`. Pour DSH Discover, activez les index de plugins personnalisés et ajoutez `https://raw.githubusercontent.com/linxule/kimi-plugin-cc/main/dsh/index.json`.
|
|
582
582
|
|
|
583
|
-
Redémarrez DSH
|
|
583
|
+
Redémarrez DSH lorsque cela vous est demandé, puis exécutez `/kimi-setup` et `/kimi-setup --check`. Consultez le [guide du paquet DSH](./plugins/kimi-dsh/README.md) pour les paramètres de profil.
|
|
584
584
|
|
|
585
|
-
|
|
585
|
+
## Installer depuis npm (facultatif)
|
|
586
586
|
|
|
587
|
-
|
|
587
|
+
Les commandes de marketplace ci-dessus constituent la méthode par défaut. Les versions sont également publiées sous [`kimi-plugin-cc` sur npm](https://www.npmjs.com/package/kimi-plugin-cc). Pour figer une version dans Claude Code :
|
|
588
588
|
|
|
589
|
-
|
|
589
|
+
```sh
|
|
590
|
+
npm install --prefix ~/.local/share/kimi-plugin-cc kimi-plugin-cc@3.0.0
|
|
591
|
+
claude --plugin-dir ~/.local/share/kimi-plugin-cc/node_modules/kimi-plugin-cc
|
|
592
|
+
```
|
|
590
593
|
|
|
591
|
-
|
|
594
|
+
Exécutez `/kimi:setup`, puis `/kimi:setup --check`. Utilisez une seule installation du plugin par hôte : ne chargez pas cette copie en même temps qu'une copie activée depuis la marketplace. Mainteneurs : consultez [publications sur les registres](./docs/registry-releases.md).
|
|
592
595
|
|
|
593
|
-
|
|
594
|
-
| --- | --- | --- | --- |
|
|
595
|
-
| Expliquer du code | `/kimi:ask` | `$kimi-ask` | Lecture seule |
|
|
596
|
-
| Faire une revue des modifications | `/kimi:review` | `$kimi-review` | Lecture seule |
|
|
597
|
-
| Remettre en question une conception ou une approche | `/kimi:challenge` | `$kimi-challenge` | Lecture seule |
|
|
598
|
-
| Corriger un problème précis | `/kimi:rescue` | `$kimi-rescue` | Peut modifier votre projet |
|
|
599
|
-
| Examiner plusieurs parties à la fois | `/kimi:swarm` | `$kimi-swarm` | Lecture seule |
|
|
600
|
-
| Préparer des modifications en parallèle | `/kimi:swarm --write` | `$kimi-swarm-write` | Uniquement dans un worktree Git temporaire ; renvoie un patch que vous pouvez appliquer |
|
|
601
|
-
| Poursuivre un objectif sur plusieurs tours | `/kimi:pursue` | `$kimi-pursue` | Peut modifier votre projet ; fonction expérimentale |
|
|
596
|
+
## Utiliser Kimi depuis un agent
|
|
602
597
|
|
|
603
|
-
|
|
598
|
+
Le plugin inclut un serveur MCP pour Claude Code et Codex. Si vous êtes un agent, privilégiez ces outils pour les traitements longs : un job continue de s'exécuter si la connexion est coupée, et un client qui prend en charge les tâches MCP est notifié lorsqu'il se termine. Les autres clients reçoivent un `job_id` à vérifier.
|
|
604
599
|
|
|
605
|
-
|
|
600
|
+
| Outil | Ce qu'il fait | Peut-il écrire ? |
|
|
601
|
+
| --- | --- | --- |
|
|
602
|
+
| `kimi_ask` | Répond à une question sur le dépôt | Non |
|
|
603
|
+
| `kimi_review` | Examine les modifications. `mode: "challenge"` remet plutôt en question l'approche | Non |
|
|
604
|
+
| `kimi_rescue` | Enquête ou applique un correctif délimité | Fichiers de l'espace de travail, jamais Git |
|
|
605
|
+
| `kimi_pursue` | Avance vers un objectif sur plusieurs tours (expérimental) | Fichiers de l'espace de travail, jamais Git |
|
|
606
|
+
| `kimi_swarm` | Exécute des vérifications parallèles en lecture seule sur des cibles indépendantes | Non |
|
|
607
|
+
| `kimi_swarm_write` | Exécute des modifications parallèles dans un arbre de travail Git temporaire | Renvoie un patch. Il ne l'applique pas |
|
|
606
608
|
|
|
607
|
-
|
|
609
|
+
Utilisez `kimi_job_status`, `kimi_job_result` et `kimi_job_cancel` pour suivre ou arrêter un job. Un résultat peut contenir des `warnings` : transmettez-les à l'utilisateur.
|
|
608
610
|
|
|
609
|
-
|
|
611
|
+
`kimi_ask`, `kimi_review` et `kimi_swarm` acceptent `read_roots` et `network`. Consultez [Limiter ce qu'une tâche peut lire et atteindre](#limiter-ce-quune-tâche-peut-lire-et-atteindre).
|
|
610
612
|
|
|
611
|
-
|
|
613
|
+
Lorsque l'hôte ne fournit aucun répertoire de projet par défaut, comme dans Codex, passez un chemin `workspace` absolu.
|
|
612
614
|
|
|
613
|
-
|
|
615
|
+
## Utiliser Kimi vous-même
|
|
614
616
|
|
|
615
|
-
|
|
617
|
+
| Commande | Ce qu'elle fait |
|
|
618
|
+
| --- | --- |
|
|
619
|
+
| `/kimi:task` | Répond à une question. Ajoutez `--write` pour laisser Kimi modifier les fichiers de votre espace de travail |
|
|
620
|
+
| `/kimi:review` | Examine votre arbre de travail, ou une branche avec `--base <ref>`. Ajoutez `--challenge` pour remettre en question l'approche |
|
|
621
|
+
| `/kimi:pursue` | Avance vers un objectif sur plusieurs tours, dans la limite d'un budget de temps (expérimental). Elle peut modifier les fichiers de l'espace de travail |
|
|
622
|
+
| `/kimi:swarm` | Exécute des vérifications parallèles en lecture seule. Ajoutez `--write` pour préparer des modifications parallèles sous forme de patch |
|
|
623
|
+
| `/kimi:setup` | Installe ou vérifie le hook, liste les modèles et installe Kimi |
|
|
624
|
+
| `/kimi:status`, `/kimi:result`, `/kimi:cancel`, `/kimi:replay` | Suivre, lire, arrêter ou rejouer une tâche |
|
|
616
625
|
|
|
617
|
-
|
|
618
|
-
/kimi:review -m 'provider/model' Vérifie la gestion des erreurs dans ces modifications.
|
|
619
|
-
```
|
|
626
|
+
Placez `--write` ou `--challenge` avant votre prompt.
|
|
620
627
|
|
|
621
|
-
|
|
628
|
+
La version 3.0 a fusionné certaines commandes :
|
|
622
629
|
|
|
623
|
-
|
|
630
|
+
- `/kimi:ask` est désormais `/kimi:task`
|
|
631
|
+
- `/kimi:rescue` est désormais `/kimi:task --write`
|
|
632
|
+
- `/kimi:challenge` est désormais `/kimi:review --challenge`
|
|
633
|
+
- l'outil MCP `kimi_challenge` est désormais `kimi_review` avec `mode: "challenge"`
|
|
624
634
|
|
|
625
|
-
|
|
635
|
+
Dans Codex, utilisez les neuf compétences, telles que `$kimi-task` et `$kimi-review`. Dans DSH, les sept outils sont inchangés, y compris `kimi_challenge`.
|
|
626
636
|
|
|
627
|
-
|
|
637
|
+
`/kimi:task` peut poursuivre une session : `/kimi:task -r Explain the next step.`
|
|
628
638
|
|
|
629
|
-
##
|
|
639
|
+
## Limiter ce qu'une tâche peut lire et atteindre
|
|
630
640
|
|
|
631
|
-
|
|
641
|
+
Par défaut, une tâche peut lire n'importe quel fichier sur votre ordinateur et ne peut pas utiliser le web.
|
|
632
642
|
|
|
633
|
-
|
|
634
|
-
| --- | --- | --- |
|
|
635
|
-
| Voir la progression | `/kimi:status` | `$kimi-status` |
|
|
636
|
-
| Afficher le résultat | `/kimi:result` | `$kimi-result` |
|
|
637
|
-
| Annuler la tâche | `/kimi:cancel` | `$kimi-cancel` |
|
|
643
|
+
`/kimi:task`, `/kimi:review` et `/kimi:swarm` en lecture seule acceptent deux options :
|
|
638
644
|
|
|
639
|
-
|
|
645
|
+
- `--read-root <absolute-directory>` limite la lecture de fichiers à votre espace de travail et aux répertoires que vous indiquez. Vous pouvez la répéter
|
|
646
|
+
- `--network` autorise la recherche web et la récupération de pages web publiques. Elle limite aussi la lecture de fichiers à votre espace de travail et aux éventuels répertoires `--read-root`
|
|
640
647
|
|
|
641
|
-
|
|
648
|
+
Les tâches en écriture n'acceptent pas ces options. Ces limites s'appliquent à une seule exécution. Pour ajouter `--network` à une session démarrée sans cette option, démarrez-en une nouvelle : `/kimi:task --fresh --network`.
|
|
642
649
|
|
|
643
|
-
|
|
650
|
+
Les limites s'appliquent aux fichiers que Kimi lit avec ses outils. Le diff d'une revue couvre tout le dépôt, et les fichiers d'instructions propres à Kimi, comme `AGENTS.md`, atteignent toujours le modèle.
|
|
644
651
|
|
|
645
|
-
|
|
652
|
+
## Quand Kimi est mis à jour avant le plugin
|
|
646
653
|
|
|
647
|
-
Le plugin
|
|
654
|
+
Le plugin vérifie chaque version de Kimi avant de la certifier. Si votre version de Kimi est plus récente que celles connues du plugin :
|
|
648
655
|
|
|
649
|
-
|
|
656
|
+
- `/kimi:task`, `/kimi:review` et le contrôle de revue s'exécutent quand même, avec un avertissement
|
|
657
|
+
- `/kimi:task --write`, `/kimi:pursue` et `/kimi:swarm` refusent l'exécution avec `KIMI_CAPABILITY_NOT_CERTIFIED`
|
|
658
|
+
- `--network` est refusé
|
|
650
659
|
|
|
651
|
-
-
|
|
652
|
-
- **Codex :** les appels utilisent actuellement des résultats MCP ordinaires, et non des tâches MCP natives. Après l'attachement, un job encore actif renvoie un handle de lancement ; un job déjà terminé renvoie directement son résultat final. Utilisez les trois outils de contrôle pour suivre, lire ou annuler le job.
|
|
660
|
+
Pour que tout continue de fonctionner, exécutez `/kimi:setup --install-kimi` (`/kimi-setup --install-kimi` dans DSH). Cette commande installe la dernière version certifiée de Kimi pour l'usage interne du plugin et laisse votre propre `kimi` intact. C'est la seule commande qui télécharge quoi que ce soit.
|
|
653
661
|
|
|
654
|
-
|
|
662
|
+
Les tâches utilisent le premier élément existant dans cet ordre : le chemin `KIMI_PLUGIN_CC_KIMI_BIN`, le Kimi installé par le plugin, puis `kimi` dans votre `PATH`. `/kimi:setup --check` indique lequel est utilisé sur la ligne `Kimi binary:`.
|
|
655
663
|
|
|
656
|
-
|
|
664
|
+
## Si vous utilisez plusieurs hôtes
|
|
657
665
|
|
|
658
|
-
|
|
666
|
+
Mettez à jour le plugin dans chaque hôte que vous utilisez, et exécutez la configuration dans chacun d'eux.
|
|
667
|
+
|
|
668
|
+
Chaque hôte ajoute son propre hook à la configuration Kimi partagée, et Kimi exécute chaque hook pour chaque tâche. Si un hôte a une version plus ancienne du plugin, son hook applique ses règles plus anciennes à chaque tâche, et peut bloquer ce que la version plus récente autorise. Une tâche vous avertit lorsque cela peut se produire.
|
|
669
|
+
|
|
670
|
+
## Afficher les sessions dans Kimi
|
|
671
|
+
|
|
672
|
+
Les sessions du plugin apparaissent dans Kimi Code Desktop et `kimi web`, avec un titre tel que `Kimi Ask: …` et votre requête en aperçu. Kimi peut remplacer ce titre par un titre généré. Les renommages manuels sont conservés. Consultez [visibilité et titres des sessions](./docs/session-visibility.md).
|
|
659
673
|
|
|
660
|
-
|
|
674
|
+
## Choisir un modèle
|
|
675
|
+
|
|
676
|
+
Les nouvelles sessions utilisent votre modèle Kimi par défaut. Pour en utiliser un autre, affichez la liste de vos modèles avec `/kimi:setup --models` (dans Codex, demandez à `$kimi-setup` de les lister). Cette commande lit votre liste locale. Elle ne contacte aucun fournisseur.
|
|
677
|
+
|
|
678
|
+
Passez un alias de la liste avec `-m` :
|
|
661
679
|
|
|
662
|
-
|
|
680
|
+
```text
|
|
681
|
+
/kimi:review -m 'provider/model' Check error handling in this diff.
|
|
682
|
+
```
|
|
683
|
+
|
|
684
|
+
Cela ne modifie pas votre modèle par défaut enregistré. Pour le modifier, lancez `kimi` et utilisez `/model`. Consultez [sélection du modèle et configuration des fournisseurs](./docs/models.md).
|
|
685
|
+
|
|
686
|
+
## Vérifier ou annuler une tâche
|
|
687
|
+
|
|
688
|
+
| Action | Claude Code | Codex | DSH |
|
|
689
|
+
| --- | --- | --- | --- |
|
|
690
|
+
| Vérifier l'avancement | `/kimi:status` | `$kimi-status` | `/kimi-status` |
|
|
691
|
+
| Lire le résultat | `/kimi:result` | `$kimi-result` | `/kimi-result` |
|
|
692
|
+
| Annuler | `/kimi:cancel` | `$kimi-cancel` | `/kimi-cancel` |
|
|
693
|
+
|
|
694
|
+
Sans identifiant de job, l'annulation arrête la dernière tâche en cours pour ce dépôt. Utilisez la commande d'annulation plutôt que d'interrompre l'application, afin qu'un swarm en écriture puisse enregistrer son patch. L'annulation ne défait pas les modifications qu'une tâche a déjà effectuées.
|
|
695
|
+
|
|
696
|
+
Pour un swarm interrompu, consultez [récupération d'un swarm](./docs/swarm-recovery.md).
|
|
697
|
+
|
|
698
|
+
## Mettre à jour ou supprimer le plugin
|
|
663
699
|
|
|
664
|
-
|
|
700
|
+
Dans Claude Code, ouvrez `/plugin`, actualisez `kimi-marketplace` et mettez à jour `kimi`. Exécutez ensuite à nouveau `/kimi:setup`.
|
|
665
701
|
|
|
666
|
-
|
|
702
|
+
Dans Codex, exécutez ces commandes, puis ouvrez une nouvelle tâche et relancez `$kimi-setup` :
|
|
667
703
|
|
|
668
704
|
```sh
|
|
669
705
|
codex plugin marketplace upgrade kimi-marketplace
|
|
670
706
|
codex plugin add kimi@kimi-marketplace
|
|
671
707
|
```
|
|
672
708
|
|
|
673
|
-
|
|
709
|
+
Pour supprimer le plugin, supprimez d'abord son hook : `/kimi:setup --uninstall` dans Claude Code, `$kimi-setup` dans Codex, ou `/kimi-setup --uninstall` dans DSH. Cela laisse en place les hooks des autres hôtes.
|
|
674
710
|
|
|
675
|
-
|
|
711
|
+
Vous mettez à niveau depuis 2.x ? Consultez [mise à niveau vers 3.0](./docs/migration.md#upgrading-to-30).
|
|
676
712
|
|
|
677
|
-
|
|
713
|
+
## Résoudre les problèmes de configuration
|
|
678
714
|
|
|
679
|
-
|
|
715
|
+
Si une vérification du hook échoue, suivez son diagnostic et exécutez la configuration pour cet hôte. Ne contournez pas la vérification.
|
|
680
716
|
|
|
681
|
-
Si
|
|
717
|
+
Si vous voyez `KIMI_CAPABILITY_NOT_CERTIFIED`, exécutez `/kimi:setup --install-kimi` ou mettez à jour le plugin.
|
|
682
718
|
|
|
683
|
-
Si
|
|
719
|
+
Si une tâche affiche un avertissement, elle s'est tout de même exécutée. L'avertissement vous indique quoi corriger.
|
|
684
720
|
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
Tous les codes de refus et leurs remèdes sont répertoriés dans le [catalogue des codes de refus](./docs/safety.md#refusal-codes-of-the-native-v2-contract-v1100).
|
|
721
|
+
Tous les codes de refus et la marche à suivre figurent dans le [catalogue des codes de refus](./docs/safety.md#refusal-codes-of-the-native-v2-contract-v1100).
|
|
688
722
|
|
|
689
723
|
## Comprendre les limites de sécurité
|
|
690
724
|
|
|
691
|
-
|
|
725
|
+
Le plugin offre des garanties sur les sessions Kimi qu'il démarre. Il ne contrôle pas vos propres paramètres Kimi.
|
|
692
726
|
|
|
693
|
-
|
|
727
|
+
Un hook vérifie chaque appel d'outil effectué par Kimi et refuse tout ce que la tâche n'est pas autorisée à faire :
|
|
694
728
|
|
|
695
|
-
|
|
729
|
+
- les tâches en lecture seule ne peuvent ni écrire de fichiers ni exécuter de commandes shell
|
|
730
|
+
- les tâches en écriture ne peuvent modifier que les fichiers situés dans votre espace de travail, et ne peuvent pas modifier l'état Git
|
|
731
|
+
- un swarm en écriture travaille dans un arbre de travail Git temporaire créé à partir de votre dernier commit et renvoie un patch. Il ne l'applique pas
|
|
696
732
|
|
|
697
|
-
|
|
733
|
+
Ce que le plugin ne fait pas :
|
|
698
734
|
|
|
699
|
-
|
|
735
|
+
- limiter ce qu'une tâche peut lire, sauf si vous passez `--read-root` ou `--network`
|
|
736
|
+
- voir où mène une adresse web : une adresse publique peut rediriger vers une adresse privée
|
|
737
|
+
- agir comme un bac à sable : les tâches en écriture peuvent exécuter des tests et des commandes similaires, qui exécutent du code issu de votre dépôt
|
|
738
|
+
- créer de commit. Relisez les modifications avant de les conserver
|
|
700
739
|
|
|
701
|
-
N'
|
|
740
|
+
N'exécutez des tâches en écriture que dans des dépôts auxquels vous faites confiance.
|
|
702
741
|
|
|
703
|
-
Consultez
|
|
742
|
+
Consultez [sécurité et limites](./docs/safety.md), [historique des versions](./CHANGELOG.md) et [travaux prévus](./ROADMAP-TO-GA.md).
|
|
704
743
|
|
|
705
744
|
## Contribuer
|
|
706
745
|
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
Chaque version fait l'objet d'une relecture croisée par les agents que ce plugin orchestre — Kimi, Claude et Codex révisent mutuellement leur travail sur ce dépôt, une pratique documentée dans l'ensemble du [journal des versions](./CHANGELOG.md).
|
|
710
|
-
|
|
711
|
-
Les contributeurs ont besoin de Bun pour exécuter `bun run check`. La documentation technique détaillée est en anglais.
|
|
746
|
+
Signalez des bugs ou proposez des modifications dans les [tickets GitHub](https://github.com/linxule/kimi-plugin-cc/issues). Les contributeurs peuvent lire les [invariants d'exécution](./docs/invariants.md) et les [détails de la CI](./docs/ci.md).
|
|
712
747
|
|
|
713
748
|
</details>
|
|
714
749
|
|
|
715
750
|
<details>
|
|
716
751
|
<summary>日本語 — はじめに</summary>
|
|
717
752
|
|
|
718
|
-
## Kimi
|
|
719
|
-
|
|
720
|
-
コードの説明、変更のレビュー、設計の問題点の指摘、範囲を絞った修正を Kimi に依頼できます。このプラグインは Claude Code、Codex、DeepSeek Harness(DSH)で使えます。
|
|
721
|
-
|
|
722
|
-
プラグインは、お使いのコンピューターで Kimi Code CLI を実行します。Kimi のサブスクリプション、または Kimi に設定したプロバイダーを利用します。呼び出しは、そのサブスクリプションの利用枠を消費するか、API アカウントに課金されます。ホストアプリのログイン状態は変わりません。タスクに必要なプロンプトとコードは、選択したプロバイダーに送信されます。
|
|
753
|
+
## コーディングタスクでKimiを使う
|
|
723
754
|
|
|
724
|
-
|
|
755
|
+
Claude Code、Codex、またはDeepSeek Harness(DSH)から、質問、コードレビュー、範囲を限定した修正、自律的に進める目標、並列スウォームをKimi Code CLIに送信できます。
|
|
725
756
|
|
|
726
|
-
|
|
757
|
+
このプラグインは、KimiのサブスクリプションまたはAPIプロバイダーを使い、お使いのコンピューター上でKimiを実行します。ホスト側のログインは変更しません。プロバイダーは、各タスクに必要なプロンプトとコードを受け取ります。
|
|
727
758
|
|
|
728
|
-
|
|
759
|
+
読み取り専用タスクは、ファイルを編集できず、シェルコマンドも実行できません。書き込みを行うタスクは、ワークスペース内または一時的なGitワークツリー内にとどまります。
|
|
729
760
|
|
|
730
|
-
|
|
731
|
-
- プラグインに対応した Claude Code、Codex、または DSH
|
|
732
|
-
- Node.js 22.5 以降(DSH では 24.9 以降)
|
|
733
|
-
- Kimi Code CLI 2.7.2 とプラグイン 2.7.2。並列数を制限した swarm とほかの 6 操作に対応します。正確な CLI 2.6.2 と 2.6.3 も同じ仕組みで引き続き対応します。正確な範囲は[2.7.2 認証記録](./docs/upstream-2.7.2-certification.md)と[ランタイムマトリックス](./docs/native-v2-certification-provenance.md)を参照してください。旧バージョンの制限は引き続き適用されます。
|
|
761
|
+
## インストールする前に
|
|
734
762
|
|
|
735
|
-
|
|
763
|
+
以下が必要です。
|
|
736
764
|
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
765
|
+
- macOSまたはLinux
|
|
766
|
+
- プラグインに対応したClaude Code、Codex、またはDSH `>=0.2.1-rc.5 <0.3.0`
|
|
767
|
+
- Node.js 22.5以降(DSHの場合は24.9以降)
|
|
768
|
+
- スウォームを含むすべてのタスクに対応するKimi Code CLI 2.7.3。バージョンが完全一致する2.6.2、2.6.3、2.7.2も同様に動作します
|
|
741
769
|
|
|
742
|
-
|
|
770
|
+
Windowsには対応していません。コントリビューターは、[モデルを使わないWindows診断チェック](./docs/windows-validation.md)に協力できます。
|
|
743
771
|
|
|
744
|
-
|
|
772
|
+
CLIが必要な場合は、[Kimi Codeのインストールガイド](https://www.kimi.com/code/docs/en/kimi-code-cli/getting-started)を使用してください。Bunやビルド手順は不要です。サポートされている旧バージョンとその制限は、[ランタイムマトリックス](./docs/native-v2-certification-provenance.md)と[サポート対象バージョンとアップグレード](./docs/migration.md)に記載されています。
|
|
745
773
|
|
|
746
|
-
|
|
774
|
+
ターミナルで`kimi`を実行します。Kimiのサブスクリプションを使う場合は`/login`を、APIプロバイダーを設定する場合は`/provider`を使用してください。認証情報はKimiに入力し、アシスタントとの会話には絶対に入力しないでください。`KIMI_CODE_HOME`を設定する場合は、Kimiとプラグインで同じ場所を使用してください。
|
|
747
775
|
|
|
748
|
-
## Claude Code
|
|
776
|
+
## Claude Codeにインストールする
|
|
749
777
|
|
|
750
|
-
プロジェクトで
|
|
778
|
+
プロジェクトでClaude Codeを開き、以下を入力します。
|
|
751
779
|
|
|
752
780
|
```text
|
|
753
781
|
/plugin marketplace add linxule/kimi-plugin-cc
|
|
@@ -756,180 +784,209 @@ CLI が未インストールの場合は、[Kimi Code のインストールガ
|
|
|
756
784
|
/kimi:setup --check
|
|
757
785
|
```
|
|
758
786
|
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
ファイルを変更しない質問を試します。
|
|
787
|
+
セットアップは、Kimiのツール呼び出しをプラグインのルールに照らして検査するフックをインストールします。`Probe:`の行に`ok`と表示されるはずです。次に、ファイルを変更しない質問を試してください。
|
|
762
788
|
|
|
763
789
|
```text
|
|
764
|
-
/kimi:
|
|
790
|
+
/kimi:task Explain how this project's main entry point works.
|
|
765
791
|
```
|
|
766
792
|
|
|
767
|
-
## Codex
|
|
793
|
+
## Codexにインストールする
|
|
768
794
|
|
|
769
|
-
|
|
795
|
+
ターミナルで以下のコマンドを実行します。
|
|
770
796
|
|
|
771
797
|
```sh
|
|
772
798
|
codex plugin marketplace add linxule/kimi-plugin-cc
|
|
773
799
|
codex plugin add kimi@kimi-marketplace
|
|
774
800
|
```
|
|
775
801
|
|
|
776
|
-
|
|
802
|
+
プロジェクトで新しいCodexタスクを開き、以下を送信します。
|
|
777
803
|
|
|
778
804
|
```text
|
|
779
|
-
$kimi-setup
|
|
805
|
+
Use $kimi-setup to install the safety hook, then check readiness.
|
|
780
806
|
```
|
|
781
807
|
|
|
782
|
-
|
|
808
|
+
`Probe:`の行に`ok`と表示されるはずです。次に、以下を試してください。
|
|
783
809
|
|
|
784
810
|
```text
|
|
785
|
-
$kimi-
|
|
811
|
+
Use $kimi-task to explain how this project's main entry point works.
|
|
786
812
|
```
|
|
787
813
|
|
|
788
|
-
|
|
814
|
+
## DeepSeek Harnessにインストールする
|
|
789
815
|
|
|
790
|
-
|
|
816
|
+
DSHには、パッチ適用済みのホストおよびプロファイル依存パッケージ(`zod >=4.6.6`、`undici >=8.12.2`)が必要です。先に[ホストのインストールと監査の手順](./docs/registry-releases.md#patched-dsh-host-and-profiles)に従ってください。
|
|
791
817
|
|
|
792
|
-
|
|
818
|
+
このリポジトリをチェックアウトしたディレクトリから、以下を実行します。
|
|
793
819
|
|
|
794
|
-
|
|
820
|
+
```sh
|
|
821
|
+
dsh plugin --profile web add ./plugins/kimi-dsh
|
|
822
|
+
```
|
|
823
|
+
|
|
824
|
+
公開済みのnpmバンドルを使う場合は、代わりに`dsh plugin --profile web add kimi-plugin-cc`を実行します。DSH Discoverでは、カスタムプラグインインデックスをオンにして`https://raw.githubusercontent.com/linxule/kimi-plugin-cc/main/dsh/index.json`を追加してください。
|
|
825
|
+
|
|
826
|
+
求められたらDSHを再起動し、`/kimi-setup`と`/kimi-setup --check`を実行します。プロファイル設定については、[DSHバンドルガイド](./plugins/kimi-dsh/README.md)を参照してください。
|
|
827
|
+
|
|
828
|
+
## npmからインストールする(任意)
|
|
795
829
|
|
|
796
|
-
|
|
830
|
+
上記のマーケットプレイスコマンドがデフォルトです。各リリースは[npmの`kimi-plugin-cc`](https://www.npmjs.com/package/kimi-plugin-cc)としても公開されています。Claude Codeでバージョンを固定するには、以下を実行します。
|
|
797
831
|
|
|
798
832
|
```sh
|
|
799
|
-
|
|
833
|
+
npm install --prefix ~/.local/share/kimi-plugin-cc kimi-plugin-cc@3.0.0
|
|
834
|
+
claude --plugin-dir ~/.local/share/kimi-plugin-cc/node_modules/kimi-plugin-cc
|
|
800
835
|
```
|
|
801
836
|
|
|
802
|
-
|
|
837
|
+
`/kimi:setup`を実行し、続けて`/kimi:setup --check`を実行します。プラグインのインストールは1つのホストにつき1つだけにしてください。マーケットプレイス版を有効にしたまま、このコピーを同時に読み込まないでください。メンテナーの方は[レジストリリリース](./docs/registry-releases.md)を参照してください。
|
|
803
838
|
|
|
804
|
-
|
|
839
|
+
## エージェントからKimiを使う
|
|
805
840
|
|
|
806
|
-
|
|
841
|
+
このプラグインには、Claude CodeとCodex向けのMCPサーバーが含まれています。エージェントとして動作している場合は、長時間かかる作業にこれらのツールを優先して使ってください。接続が切れてもジョブは実行を継続し、MCPタスクに対応したクライアントには完了時に通知が届きます。それ以外のクライアントは確認用の`job_id`を受け取ります。
|
|
807
842
|
|
|
808
|
-
|
|
843
|
+
| ツール | 動作内容 | 書き込みできるか |
|
|
844
|
+
| --- | --- | --- |
|
|
845
|
+
| `kimi_ask` | リポジトリに関する質問に回答します | いいえ |
|
|
846
|
+
| `kimi_review` | 変更をレビューします。`mode: "challenge"`を指定すると、代わりにアプローチ自体を問い直します | いいえ |
|
|
847
|
+
| `kimi_rescue` | 調査を行うか、範囲を限定した修正を行います | ワークスペース内のファイルのみ。Gitは変更しません |
|
|
848
|
+
| `kimi_pursue` | 複数ターンにわたり目標に向けて作業します(実験的) | ワークスペース内のファイルのみ。Gitは変更しません |
|
|
849
|
+
| `kimi_swarm` | 独立した対象に対して読み取り専用の並列チェックを実行します | いいえ |
|
|
850
|
+
| `kimi_swarm_write` | 一時的なGitワークツリーで並列編集を実行します | パッチを返します。適用はしません |
|
|
809
851
|
|
|
810
|
-
|
|
852
|
+
ジョブの追跡や停止には、`kimi_job_status`、`kimi_job_result`、`kimi_job_cancel`を使用します。結果には`warnings`が含まれることがあります。その場合はユーザーに伝えてください。
|
|
811
853
|
|
|
812
|
-
|
|
854
|
+
`kimi_ask`、`kimi_review`、`kimi_swarm`は`read_roots`と`network`を受け付けます。[タスクの読み取り範囲とアクセス先を制限する](#タスクの読み取り範囲とアクセス先を制限する)を参照してください。
|
|
813
855
|
|
|
814
|
-
|
|
815
|
-
| --- | --- | --- | --- |
|
|
816
|
-
| コードを説明する | `/kimi:ask` | `$kimi-ask` | 読み取り専用 |
|
|
817
|
-
| コードの変更をレビューする | `/kimi:review` | `$kimi-review` | 読み取り専用 |
|
|
818
|
-
| 設計や方針の問題点を検討する | `/kimi:challenge` | `$kimi-challenge` | 読み取り専用 |
|
|
819
|
-
| 範囲を絞って修正する | `/kimi:rescue` | `$kimi-rescue` | プロジェクトのファイルを変更可能 |
|
|
820
|
-
| 複数の箇所を同時にレビューする | `/kimi:swarm` | `$kimi-swarm` | 読み取り専用 |
|
|
821
|
-
| 複数の変更を並行して準備する | `/kimi:swarm --write` | `$kimi-swarm-write` | 一時的な Git ワークツリー内のみ変更し、適用用のパッチを返す |
|
|
822
|
-
| 複数ターンにわたって目標に取り組む | `/kimi:pursue` | `$kimi-pursue` | プロジェクトのファイルを変更可能(実験的機能) |
|
|
856
|
+
Codexのようにホストからデフォルトのプロジェクトディレクトリが渡されない場合は、`workspace`に絶対パスを渡してください。
|
|
823
857
|
|
|
824
|
-
|
|
858
|
+
## 自分でKimiを使う
|
|
825
859
|
|
|
826
|
-
|
|
860
|
+
| コマンド | 動作内容 |
|
|
861
|
+
| --- | --- |
|
|
862
|
+
| `/kimi:task` | 質問に回答します。`--write`を付けると、Kimiがワークスペース内のファイルを編集できるようになります |
|
|
863
|
+
| `/kimi:review` | 作業ツリーをレビューします。`--base <ref>`を付けるとブランチをレビューします。`--challenge`を付けるとアプローチ自体を問い直します |
|
|
864
|
+
| `/kimi:pursue` | 制限時間内で複数ターンにわたり目標に向けて作業します(実験的)。ワークスペース内のファイルを編集できます |
|
|
865
|
+
| `/kimi:swarm` | 読み取り専用の並列チェックを実行します。`--write`を付けると、並列編集をパッチとして作成します |
|
|
866
|
+
| `/kimi:setup` | フックのインストールや確認、モデルの一覧表示、Kimiのインストールを行います |
|
|
867
|
+
| `/kimi:status`、`/kimi:result`、`/kimi:cancel`、`/kimi:replay` | タスクの追跡、結果の読み取り、停止、リプレイを行います |
|
|
827
868
|
|
|
828
|
-
|
|
869
|
+
`--write`や`--challenge`は、プロンプトの前に指定してください。
|
|
829
870
|
|
|
830
|
-
|
|
871
|
+
バージョン3.0で一部のコマンドが統合されました。
|
|
831
872
|
|
|
832
|
-
|
|
873
|
+
- `/kimi:ask`は`/kimi:task`になりました
|
|
874
|
+
- `/kimi:rescue`は`/kimi:task --write`になりました
|
|
875
|
+
- `/kimi:challenge`は`/kimi:review --challenge`になりました
|
|
876
|
+
- MCPツールの`kimi_challenge`は、`mode: "challenge"`を指定した`kimi_review`になりました
|
|
833
877
|
|
|
834
|
-
|
|
878
|
+
Codexでは、`$kimi-task`や`$kimi-review`などの9つのスキルを使用します。DSHでは、`kimi_challenge`を含む7つのツールに変更はありません。
|
|
835
879
|
|
|
836
|
-
|
|
880
|
+
`/kimi:task`では、`/kimi:task -r Explain the next step.`のようにセッションを継続できます。
|
|
837
881
|
|
|
838
|
-
|
|
839
|
-
/kimi:review -m 'provider/model' この差分のエラー処理を確認してください。
|
|
840
|
-
```
|
|
882
|
+
## タスクの読み取り範囲とアクセス先を制限する
|
|
841
883
|
|
|
842
|
-
|
|
884
|
+
デフォルトでは、タスクはお使いのコンピューター上のどのファイルでも読み取れますが、ウェブは利用できません。
|
|
843
885
|
|
|
844
|
-
|
|
886
|
+
`/kimi:task`、`/kimi:review`、および読み取り専用の`/kimi:swarm`は、2つのフラグを受け付けます。
|
|
845
887
|
|
|
846
|
-
|
|
888
|
+
- `--read-root <absolute-directory>`は、ファイルの読み取りをワークスペースと指定したディレクトリに制限します。複数回指定できます
|
|
889
|
+
- `--network`は、ウェブ検索と公開ウェブページの取得を許可します。同時に、ファイルの読み取りをワークスペースと`--read-root`で指定したディレクトリに制限します
|
|
847
890
|
|
|
848
|
-
|
|
891
|
+
書き込みを行うタスクは、これらのフラグを受け付けません。制限は1回の実行にのみ適用されます。`--network`なしで開始したセッションに`--network`を追加するには、`/kimi:task --fresh --network`で新しいセッションを開始してください。
|
|
849
892
|
|
|
850
|
-
|
|
893
|
+
制限は、Kimiが自身のツールで読み取るファイルに適用されます。レビューの差分はリポジトリ全体をカバーし、`AGENTS.md`などのKimi自身の指示ファイルも引き続きモデルに届きます。
|
|
851
894
|
|
|
852
|
-
|
|
895
|
+
## プラグインより先にKimiが更新された場合
|
|
853
896
|
|
|
854
|
-
|
|
855
|
-
| --- | --- | --- |
|
|
856
|
-
| 進捗を確認する | `/kimi:status` | `$kimi-status` |
|
|
857
|
-
| 結果を確認する | `/kimi:result` | `$kimi-result` |
|
|
858
|
-
| タスクをキャンセルする | `/kimi:cancel` | `$kimi-cancel` |
|
|
897
|
+
このプラグインは、Kimiの各リリースを検証したうえで認定します。お使いのKimiがプラグインの認識しているバージョンより新しい場合、次の動作になります。
|
|
859
898
|
|
|
860
|
-
|
|
899
|
+
- `/kimi:task`、`/kimi:review`、およびレビューゲートは、警告を出しながら引き続き動作します
|
|
900
|
+
- `/kimi:task --write`、`/kimi:pursue`、`/kimi:swarm`は`KIMI_CAPABILITY_NOT_CERTIFIED`を返して実行を拒否します
|
|
901
|
+
- `--network`は実行を拒否します
|
|
861
902
|
|
|
862
|
-
|
|
903
|
+
すべての機能を引き続き使えるようにするには、`/kimi:setup --install-kimi`(DSHでは`/kimi-setup --install-kimi`)を実行してください。このコマンドは、プラグイン専用として最新の認定済みKimiをインストールし、ユーザー自身の`kimi`には手を加えません。何かをダウンロードするのはこのコマンドだけです。
|
|
863
904
|
|
|
864
|
-
|
|
905
|
+
タスクは、`KIMI_PLUGIN_CC_KIMI_BIN`のパス、プラグインが独自にインストールしたKimi、`PATH`上の`kimi`のうち、最初に見つかったものを使用します。`/kimi:setup --check`は、そのどれが使われるかを`Kimi binary:`の行に表示します。
|
|
865
906
|
|
|
866
|
-
|
|
907
|
+
## 複数のホストを使う場合
|
|
867
908
|
|
|
868
|
-
|
|
909
|
+
使用しているすべてのホストでプラグインを更新し、それぞれでセットアップを実行してください。
|
|
869
910
|
|
|
870
|
-
|
|
911
|
+
各ホストは共有のKimi設定に独自のフックを追加し、Kimiはタスクごとにすべてのフックを実行します。いずれかのホストに古いバージョンのプラグインがある場合、そのフックはすべてのタスクに古いルールを適用し、新しいバージョンで許可されているものをブロックすることがあります。このようなことが起こり得る場合、タスクは警告を出します。
|
|
871
912
|
|
|
872
|
-
|
|
873
|
-
- **Codex:** 現在はネイティブの MCP タスクではなく、通常の MCP 結果を使います。アタッチ後、実行中のジョブには起動ハンドルを返し、すでに終了したジョブには最終結果を直接返します。進捗確認・結果取得・キャンセルには 3 つのジョブ制御ツールを使います。
|
|
913
|
+
## Kimiでセッションを表示する
|
|
874
914
|
|
|
875
|
-
|
|
915
|
+
プラグインのセッションはKimi Code Desktopと`kimi web`に表示され、`Kimi Ask: …`のようなタイトルと、リクエスト内容のプレビューが付きます。Kimiが生成したタイトルに置き換えることがあります。手動での名前変更は保持されます。[セッションの表示とタイトル](./docs/session-visibility.md)を参照してください。
|
|
876
916
|
|
|
877
|
-
|
|
917
|
+
## モデルを選択する
|
|
878
918
|
|
|
879
|
-
|
|
919
|
+
新しいセッションは、デフォルトのKimiモデルを使用します。別のモデルを使うには、`/kimi:setup --models`でモデル一覧を表示します(Codexでは`$kimi-setup`に一覧表示を依頼してください)。この操作はローカルの一覧を読み取ります。プロバイダーには接続しません。
|
|
920
|
+
|
|
921
|
+
一覧にあるエイリアスを`-m`で渡します。
|
|
922
|
+
|
|
923
|
+
```text
|
|
924
|
+
/kimi:review -m 'provider/model' Check error handling in this diff.
|
|
925
|
+
```
|
|
880
926
|
|
|
881
|
-
|
|
927
|
+
これによって保存済みのデフォルト設定が変わることはありません。デフォルトを変更するには、`kimi`を実行して`/model`を使用してください。[モデルの選択とプロバイダー設定](./docs/models.md)を参照してください。
|
|
882
928
|
|
|
883
|
-
|
|
929
|
+
## タスクを確認またはキャンセルする
|
|
884
930
|
|
|
885
|
-
|
|
931
|
+
| 操作 | Claude Code | Codex | DSH |
|
|
932
|
+
| --- | --- | --- | --- |
|
|
933
|
+
| 進捗の確認 | `/kimi:status` | `$kimi-status` | `/kimi-status` |
|
|
934
|
+
| 結果の読み取り | `/kimi:result` | `$kimi-result` | `/kimi-result` |
|
|
935
|
+
| キャンセル | `/kimi:cancel` | `$kimi-cancel` | `/kimi-cancel` |
|
|
936
|
+
|
|
937
|
+
ジョブIDを指定しない場合、キャンセルはこのリポジトリで実行中の最新タスクを停止します。書き込みスウォームがパッチを保存できるよう、アプリを中断するのではなくキャンセルを使用してください。キャンセルしても、タスクがすでに行った変更は元に戻りません。
|
|
938
|
+
|
|
939
|
+
中断されたスウォームについては、[スウォームの復旧](./docs/swarm-recovery.md)を参照してください。
|
|
940
|
+
|
|
941
|
+
## プラグインを更新または削除する
|
|
886
942
|
|
|
887
|
-
|
|
943
|
+
Claude Codeでは、`/plugin`を開き、`kimi-marketplace`を再読み込みして`kimi`を更新します。その後、もう一度`/kimi:setup`を実行してください。
|
|
944
|
+
|
|
945
|
+
Codexでは、以下のコマンドを実行してから新しいタスクを開き、もう一度`$kimi-setup`を実行します。
|
|
888
946
|
|
|
889
947
|
```sh
|
|
890
948
|
codex plugin marketplace upgrade kimi-marketplace
|
|
891
949
|
codex plugin add kimi@kimi-marketplace
|
|
892
950
|
```
|
|
893
951
|
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
### プラグインを削除する
|
|
952
|
+
プラグインを削除するには、まずフックを削除します。Claude Codeでは`/kimi:setup --uninstall`、Codexでは`$kimi-setup`、DSHでは`/kimi-setup --uninstall`を実行してください。他のホストのフックはそのまま残ります。
|
|
897
953
|
|
|
898
|
-
|
|
954
|
+
2.xからアップグレードする場合は、[3.0へのアップグレード](./docs/migration.md#upgrading-to-30)を参照してください。
|
|
899
955
|
|
|
900
|
-
##
|
|
956
|
+
## セットアップの問題を解決する
|
|
901
957
|
|
|
902
|
-
|
|
958
|
+
フックのチェックに失敗した場合は、表示された診断内容に従い、そのホストでセットアップを実行してください。チェックを回避しないでください。
|
|
903
959
|
|
|
904
|
-
`KIMI_CAPABILITY_NOT_CERTIFIED
|
|
960
|
+
`KIMI_CAPABILITY_NOT_CERTIFIED`が表示された場合は、`/kimi:setup --install-kimi`を実行するか、プラグインを更新してください。
|
|
905
961
|
|
|
906
|
-
|
|
962
|
+
タスクに警告が表示された場合でも、タスク自体は実行されています。警告には修正すべき内容が示されています。
|
|
907
963
|
|
|
908
|
-
|
|
964
|
+
すべての拒否コードとその対処法は、[拒否コード一覧](./docs/safety.md#refusal-codes-of-the-native-v2-contract-v1100)に記載されています。
|
|
909
965
|
|
|
910
966
|
## 安全上の制限を理解する
|
|
911
967
|
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
正確な CLI 2.6.2/2.6.3/2.7.2 では、`--max-concurrency 1` は 1 つのワーカーを直接実行します。2 以上では、その数以下の子エージェントを 1 組として順に実行します。既定値は読み取りが 4、書き込みが 1 です。`--cap` は総数の目安のままです。並列実行では、認証付きのローカルプロセスでセッションを有効化・無効化します。単一ワーカーでは不要です。有効化もジョブの制限時間に含まれ、トークンはログに出ず、後処理を確認できなければ成功とは報告しません。旧バージョンの制限は引き続き適用されます。
|
|
915
|
-
|
|
916
|
-
遅い子エージェントがある組は、完了またはジョブ全体の期限まで待機します。新規の組には最低 2 項目が必要なので、対象が奇数なら組み直す場合があります。Kimi ワーカーによる明示的な Bash のバックグラウンド実行は禁止され、並列セッションでは自動切り離しも無効です。通常終了とキャンセルのどちらも、管理対象プロセスの停止を確認してから結果やパッチを取得します。並列数は Kimi 子エージェントのターン数です。許可されたテストは複数の OS プロセスを起動でき、個々の Bash のタイムアウトは次の組の開始までにそれらが停止する保証にはなりません。
|
|
968
|
+
このプラグインは、自身が開始するKimiセッションについてのみ動作を保証します。ユーザー自身のKimi設定を監視・制限することはありません。
|
|
917
969
|
|
|
918
|
-
|
|
970
|
+
フックがKimiのすべてのツール呼び出しを検査し、タスクに許可されていない操作を拒否します。
|
|
919
971
|
|
|
920
|
-
|
|
972
|
+
- 読み取り専用タスクは、ファイルの書き込みやシェルコマンドの実行ができません
|
|
973
|
+
- 書き込みを行うタスクは、ワークスペース内のファイルのみを変更でき、Gitの状態は変更できません
|
|
974
|
+
- 書き込みスウォームは、最新コミットから作成した一時的なGitワークツリーで作業し、パッチを返します。パッチの適用はしません
|
|
921
975
|
|
|
922
|
-
|
|
976
|
+
このプラグインは以下のことを行いません。
|
|
923
977
|
|
|
924
|
-
|
|
978
|
+
- `--read-root`または`--network`を渡さない限り、タスクが読み取れる範囲を制限すること
|
|
979
|
+
- ウェブアドレスの到達先を確認すること。公開アドレスがプライベートアドレスにリダイレクトされる可能性があります
|
|
980
|
+
- サンドボックスとして動作すること。書き込みを行うタスクはテストなどのコマンドを実行でき、それによってリポジトリ内のコードが実行されます
|
|
981
|
+
- コミットを行うこと。変更を残す前に内容を確認してください
|
|
925
982
|
|
|
926
|
-
|
|
983
|
+
書き込みを行うタスクは、信頼できるリポジトリでのみ実行してください。
|
|
927
984
|
|
|
928
|
-
|
|
985
|
+
[安全性と制限事項](./docs/safety.md)、[リリース履歴](./CHANGELOG.md)、[今後の予定](./ROADMAP-TO-GA.md)を参照してください。
|
|
929
986
|
|
|
930
|
-
|
|
987
|
+
## コントリビュートする
|
|
931
988
|
|
|
932
|
-
|
|
989
|
+
バグの報告や変更の提案は、[GitHubのIssue](https://github.com/linxule/kimi-plugin-cc/issues)で行ってください。コントリビューターは、[ランタイム不変条件](./docs/invariants.md)と[CIの詳細](./docs/ci.md)を確認できます。
|
|
933
990
|
|
|
934
991
|
</details>
|
|
935
992
|
|