@fibteq/myrel-runner 0.18.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 or Cursor CLI.
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 or Cursor CLI.
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) or `cursor-agent` (Cursor CLI) 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
@@ -92,12 +92,12 @@ Read-only tasks (`--access read`) always run in the folder itself.
92
92
  `myrel-runner start --access <level>`, or for the background runner `myrel-runner service install --access <level>` or
93
93
  `myrel-runner update --access <level>` (both restart it). The level is saved for next time:
94
94
 
95
- | level | Claude Code | Codex | Antigravity CLI | OpenCode | Cursor CLI |
96
- |---|---|---|---|---|---|
97
- | `read` | `--permission-mode plan` | `--sandbox read-only` | `--mode plan` | edit and bash denied | `--mode ask` |
98
- | `edit` (default) | `--permission-mode acceptEdits` | `--sandbox workspace-write` | `--mode accept-edits` | edit allowed, bash denied | `--sandbox enabled` |
99
- | `auto` | `--permission-mode auto` | `--sandbox workspace-write` | `--mode accept-edits` | edit allowed, bash denied | `--sandbox enabled` |
100
- | `full` | `--permission-mode bypassPermissions` | `--sandbox danger-full-access` | `--dangerously-skip-permissions` | edit and bash allowed, `--auto` | `--force --sandbox disabled` |
95
+ | level | Claude Code | Codex | Antigravity CLI | OpenCode | Cursor CLI | Muse Code |
96
+ |---|---|---|---|---|---|---|
97
+ | `read` | `--permission-mode plan` | `--sandbox read-only` | `--mode plan` | edit and bash denied | `--mode ask` | `--approval-mode never --disable-write --disable-shell` |
98
+ | `edit` (default) | `--permission-mode acceptEdits` | `--sandbox workspace-write` | `--mode accept-edits` | edit allowed, bash denied | `--sandbox enabled` | `--approval-mode never --trust-workspace` |
99
+ | `auto` | `--permission-mode auto` | `--sandbox workspace-write` | `--mode accept-edits` | edit allowed, bash denied | `--sandbox enabled` | `--approval-mode never --trust-workspace` |
100
+ | `full` | `--permission-mode bypassPermissions` | `--sandbox danger-full-access` | `--dangerously-skip-permissions` | edit and bash allowed, `--auto` | `--force --sandbox disabled` | `--yolo` |
101
101
 
102
102
  With `auto`, Claude Code's auto mode decides which steps are safe to run (tests, git commit, builds) and runs them;
103
103
  the ones it would ask about come to you as a card in the thread. Your Claude account must have auto mode; Codex and
@@ -128,6 +128,20 @@ the workspace and gives commands no network; what would need approval (a file ou
128
128
  is declined and the run goes on. `--force` would also take commands out of the sandbox, so only `full` uses it. With
129
129
  `read` it runs in ask mode, which reads and answers but changes nothing (plan mode would leave out Myrel's tools).
130
130
 
131
+ Muse Code (`muse exec --json`) is close to Codex too. With approval mode `never` nothing waits for an answer: with
132
+ `edit` and `auto` its sandbox keeps writes in the workspace (and `/tmp`), a write outside fails and the run goes on,
133
+ and commands reach the network through its proxy. `--trust-workspace` loads the folder's own rules and skills for
134
+ that run only. With `read` its write and shell tools are taken away (its `:read-only` profile would wait forever on
135
+ a command's approval). `full` is `--yolo`: no approval, no sandbox. Muse Code has no `--add-dir`, so below `full` it
136
+ writes only in the project's main folder.
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
+
131
145
  With `edit`, the CLI can change files in the folder but cannot run commands that would need your approval. Use
132
146
  `full` only for folders and projects you trust: it lets the CLI run any command without asking.
133
147
 
@@ -143,8 +157,8 @@ level does not allow on its own (with `edit`: `git commit`, `git push`, tests) i
143
157
  Allow commands this turn, Don't run), so there is no need to restart the runner with `--access full` for one task. A
144
158
  file change inside the folders with `read` is declined as before. With `full`, Claude Code then runs with
145
159
  `acceptEdits` and commands and web tools pre-allowed instead of `bypassPermissions`, so only files outside the folders
146
- are asked about. Codex, Antigravity CLI, OpenCode, Hermes Agent and Cursor CLI cannot ask mid-run, so they stay inside the folders (OpenCode gets them as
147
- `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`).
148
162
 
149
163
  Tasks in the same Myrel thread continue the same Claude Code session (`--resume`), so follow-ups keep context.
150
164
 
@@ -162,11 +176,13 @@ decisions, artifacts, memory, routines) added over MCP:
162
176
  | OpenCode | `mcp.myrel` (remote, `Authorization: Bearer {env:MYREL_MCP_TOKEN}`) in `OPENCODE_CONFIG_CONTENT`, allowed with `myrel_*` |
163
177
  | Hermes Agent | `mcpServers` of ACP's `session/new` (or `session/resume`), the token in its `Authorization` header |
164
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`) |
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 |
165
181
 
166
182
  The MCP endpoint is `<server>/api/agent-mcp/<thread>` and its token is valid only for that turn. Config files holding
167
183
  it are readable only by you and deleted when the run ends; Codex gets it in its environment instead. The whole turn
168
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
169
- 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.
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.
170
186
 
171
187
  Antigravity CLI takes MCP servers only from its global config, never for one run. So the runner adds one fixed
172
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
@@ -197,6 +213,27 @@ gets a `.cursor-plugin` manifest and goes in as a second plugin. The runner look
197
213
  `agent`, the other name Cursor's installer links. Sign in once with `cursor-agent login`. Your own servers in
198
214
  `~/.cursor/mcp.json` load too, approved like the run's (`--approve-mcps` cannot pick).
199
215
 
216
+ Muse Code takes one `-c mcpServers.<name>=<json>` per server for a run (it refuses the whole map at once, and an HTTP
217
+ server with a `type`), so nothing is written to your `~/.config/muse/settings.json`. A secret goes in `-c` only as a
218
+ whole `${VAR}`, so the token's `Authorization` header and connectors' environment values stay in the run's
219
+ environment. `muse exec` does not read stdin: the prompt goes in a file only you can read (`--prompt-file`), deleted
220
+ after the run. The thread's next turn continues the session with `--session-id`. Muse Code has no command that lists
221
+ its models, so the runner reads the catalog it keeps in `~/.local/share/muse/model-catalog` (visible models and their
222
+ effort tiers); a picked model and effort go in as `--model` and `--effort`, otherwise your settings decide. Your own
223
+ MCP servers come from your settings too. Skills: the prompt names the run's skills folder, where Muse Code reads them.
224
+ Detection checks that `muse --version` says Muse Code. Sign in once with `muse login`.
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
+
200
237
  Projects without a local folder are worked in the cloud by OpenCode, in the thread's own sandbox.
201
238
 
202
239
  ### For apps that run it (the desktop app)