@fibteq/myrel-runner 0.19.0 → 0.20.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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Connects your computer to a Myrel server, so a project can work in one of your
4
4
  local folders with the coding CLI you already use: Claude Code, Codex CLI,
5
- Antigravity CLI, OpenCode, Hermes Agent, Cursor CLI or Muse Code.
5
+ Antigravity CLI, OpenCode, Hermes Agent, Cursor CLI, Muse Code or Kimi Code.
6
6
 
7
7
  - It opens an **outbound** WebSocket to the server. No port is opened, and it works behind NAT.
8
8
  - The server sends a task (a folder, a CLI and a prompt). The runner starts the CLI in that folder, streams its
@@ -15,7 +15,7 @@ Antigravity CLI, OpenCode, Hermes Agent, Cursor CLI or Muse Code.
15
15
 
16
16
  ## Use
17
17
 
18
- Requires Node 22+ and at least one of `claude`, `codex`, `agy` (Antigravity CLI), `opencode`, `hermes` (Hermes Agent), `cursor-agent` (Cursor CLI) or `muse` (Muse Code) on your `PATH`, already signed in.
18
+ Requires Node 22+ and at least one of `claude`, `codex`, `agy` (Antigravity CLI), `opencode`, `hermes` (Hermes Agent), `cursor-agent` (Cursor CLI), `muse` (Muse Code) or `kimi` (Kimi Code) on your `PATH`, already signed in.
19
19
 
20
20
  ```sh
21
21
  npx myrel-runner pair ABCD-1234 --server https://myrel.example.com # code from Myrel > Devices
@@ -135,6 +135,13 @@ that run only. With `read` its write and shell tools are taken away (its `:read-
135
135
  a command's approval). `full` is `--yolo`: no approval, no sandbox. Muse Code has no `--add-dir`, so below `full` it
136
136
  writes only in the project's main folder.
137
137
 
138
+ Kimi Code runs as an ACP server (`kimi acp`) like Hermes Agent, whose session takes a permission mode: `plan` with
139
+ `read` (no edits but its own plan file), `default` with `edit` and `auto` (reads and edits inside the folder's git
140
+ repository run, the rest asks) and `auto` ("never ask") with `full`. What it asks permission for is declined below
141
+ `full`, except the run's own MCP tools (`mcp__<server>__…`), which are allowed at every level. It has no sandbox, so
142
+ below `full` its shell commands are declined; its `yolo` mode would run them all but system commands (shutdown,
143
+ `mkfs`), so `auto` stays with `edit` as for Codex. Rules you set to `deny` in its config always hold.
144
+
138
145
  With `edit`, the CLI can change files in the folder but cannot run commands that would need your approval. Use
139
146
  `full` only for folders and projects you trust: it lets the CLI run any command without asking.
140
147
 
@@ -150,8 +157,8 @@ level does not allow on its own (with `edit`: `git commit`, `git push`, tests) i
150
157
  Allow commands this turn, Don't run), so there is no need to restart the runner with `--access full` for one task. A
151
158
  file change inside the folders with `read` is declined as before. With `full`, Claude Code then runs with
152
159
  `acceptEdits` and commands and web tools pre-allowed instead of `bypassPermissions`, so only files outside the folders
153
- are asked about. Codex, Antigravity CLI, OpenCode, Hermes Agent, Cursor CLI and Muse Code cannot ask mid-run, so they stay inside the folders (OpenCode gets them as
154
- `external_directory` allow rules).
160
+ are asked about. Codex, Antigravity CLI, OpenCode, Hermes Agent, Cursor CLI, Muse Code and Kimi Code cannot ask mid-run, so they stay inside the folders (OpenCode gets them as
161
+ `external_directory` allow rules, Kimi Code as the session's `additionalDirectories`).
155
162
 
156
163
  Tasks in the same Myrel thread continue the same Claude Code session (`--resume`), so follow-ups keep context.
157
164
 
@@ -170,11 +177,12 @@ decisions, artifacts, memory, routines) added over MCP:
170
177
  | Hermes Agent | `mcpServers` of ACP's `session/new` (or `session/resume`), the token in its `Authorization` header |
171
178
  | Cursor CLI | `mcp.json` of a plugin folder of the run (`--plugin-dir`, `--approve-mcps`), allowed with `Mcp(plugin-myrel-myrel:*)` in a `cli-config.json` of the run (`CURSOR_CONFIG_DIR`) |
172
179
  | Muse Code | `-c 'mcpServers.myrel={"url":…,"headers":{"Authorization":"${MYREL_MCP_AUTH}"}}'`, run with `--approval-mode never` |
180
+ | Kimi Code | `mcpServers` of ACP's `session/new` (or `session/resume`), the token in its `Authorization` header, its tools allowed when it asks |
173
181
 
174
182
  The MCP endpoint is `<server>/api/agent-mcp/<thread>` and its token is valid only for that turn. Config files holding
175
183
  it are readable only by you and deleted when the run ends; Codex gets it in its environment instead. The whole turn
176
184
  uses your own CLI login. Needs myrel-runner 0.4.0 or later for Claude Code, 0.5.0 or later for Codex, 0.13.0 or later
177
- for Antigravity CLI, 0.15.0 or later for OpenCode, 0.16.0 or later for Hermes Agent, 0.17.0 or later for Cursor CLI, 0.19.0 or later for Muse Code.
185
+ for Antigravity CLI, 0.15.0 or later for OpenCode, 0.16.0 or later for Hermes Agent, 0.17.0 or later for Cursor CLI, 0.19.0 or later for Muse Code, 0.20.0 or later for Kimi Code.
178
186
 
179
187
  Antigravity CLI takes MCP servers only from its global config, never for one run. So the runner adds one fixed
180
188
  server there, the bridge, and an allow rule for its tools; the rest of both files stays as it is. Each run hands the
@@ -215,6 +223,17 @@ effort tiers); a picked model and effort go in as `--model` and `--effort`, othe
215
223
  MCP servers come from your settings too. Skills: the prompt names the run's skills folder, where Muse Code reads them.
216
224
  Detection checks that `muse --version` says Muse Code. Sign in once with `muse login`.
217
225
 
226
+ Kimi Code (Moonshot AI's `kimi`, the npm package `@moonshot-ai/kimi-code`) takes MCP servers for a run only in its
227
+ ACP server: `kimi -p` reads them from `~/.kimi-code/mcp.json`. So a run is one ACP session, as with Hermes Agent:
228
+ `session/new` (or `session/resume`) with the run's servers and the project's other folders, `session/set_mode`, the
229
+ model and thinking level with `session/set_config_option`, then `session/prompt`. Nothing is written to your
230
+ `~/.kimi-code`. Its models are the aliases `kimi provider list --json` lists (from your login or your own
231
+ providers), each with its thinking levels (`supportEfforts`); a picked model and level go in as the session's
232
+ `model` and `thinking`, otherwise your `config.toml` decides. Its tools show up as `mcp__<server>__<tool>`; your own
233
+ servers in `mcp.json` load too, but only the run's are allowed without asking. Skills: the prompt names the run's
234
+ skills folder, which Kimi Code may read. Detection checks that `kimi --version` prints a bare version (the archived
235
+ Python kimi-cli prints `kimi, version …`). Sign in once with `kimi login`.
236
+
218
237
  Projects without a local folder are worked in the cloud by OpenCode, in the thread's own sandbox.
219
238
 
220
239
  ### For apps that run it (the desktop app)