跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

提交记录

Add code-opencode option for OpenCode VS Code extension (#41)

Add support for installing the OpenCode VS Code extension (sst-dev.opencode) in code-server, matching the existing code-claude, code-codex, and code-vibe options. Closes #37. Keep OpenCode CLI selected when extension is chosen, since sst-dev.opencode requires the CLI binary. Update setup help, wizard choice prompt, tests, and documentation accordingly.

作者
Nabi Bukhsh
时间
2026/10/30 06:14
提交
4777c54
上一个
3de7a9d
这个版本的全部文件
修改CHANGELOG.md+2 −0看文件
@@ -35,6 +35,8 @@
3535 backend (QEMU 7.2 or later): no stream, nothing to lose. An older QEMU keeps
3636 the former backend, and so does Windows (it has no unix datagram sockets).
3737
38新增:- `agent-vm setup`: Added `code-opencode` preinstall option to install the OpenCode VS Code extension (`sst-dev.opencode`) into code-server (#37).
39新增:
3840## 0.3.0
3941
4042agent-vm 0.3 is one Go binary with Lima built in. The
修改agent-vm.setup.sh+8 −5看文件
@@ -49,11 +49,12 @@ INSTALL_PI="${AGENT_VM_INSTALL_PI:-0}"
4949INSTALL_CODE_SERVER="${AGENT_VM_INSTALL_CODE_SERVER:-0}"
5050# Each agent's code-server extension, which brings its own copy of the agent.
5151INSTALL_CODE_CLAUDE="${AGENT_VM_INSTALL_CODE_CLAUDE:-0}"
52新增:INSTALL_CODE_OPENCODE="${AGENT_VM_INSTALL_CODE_OPENCODE:-0}"
5253INSTALL_CODE_CODEX="${AGENT_VM_INSTALL_CODE_CODEX:-0}"
5354INSTALL_CODE_VIBE="${AGENT_VM_INSTALL_CODE_VIBE:-0}"
5455# An extension needs the editor: `agent-vm setup` says so already, a run of
5556# this script on its own may not.
56删除:if [[ "$INSTALL_CODE_CLAUDE$INSTALL_CODE_CODEX$INSTALL_CODE_VIBE" == *1* ]]; then
57新增:if [[ "$INSTALL_CODE_CLAUDE$INSTALL_CODE_OPENCODE$INSTALL_CODE_CODEX$INSTALL_CODE_VIBE" == *1* ]]; then
5758 INSTALL_CODE_SERVER=1
5859fi
5960# MCP servers wired into every installed agent's config (see `agent-vm setup --help`).
@@ -62,8 +63,9 @@ INSTALL_MCP_PLAYWRIGHT="${AGENT_VM_INSTALL_MCP_PLAYWRIGHT:-0}"
6263
6364# An agent there in either form: its command line and its extension read the
6465# same config, which is written for both.
65删除:HAS_CLAUDE=0 HAS_CODEX=0 HAS_VIBE=0
66新增:HAS_CLAUDE=0 HAS_OPENCODE=0 HAS_CODEX=0 HAS_VIBE=0
6667[[ "$INSTALL_CLAUDE$INSTALL_CODE_CLAUDE" == *1* ]] && HAS_CLAUDE=1
68新增:[[ "$INSTALL_OPENCODE$INSTALL_CODE_OPENCODE" == *1* ]] && HAS_OPENCODE=1
6769[[ "$INSTALL_CODEX$INSTALL_CODE_CODEX" == *1* ]] && HAS_CODEX=1
6870[[ "$INSTALL_VIBE$INSTALL_CODE_VIBE" == *1* ]] && HAS_VIBE=1
6971
@@ -266,7 +268,7 @@ if [[ "$HAS_CLAUDE" == "1" ]]; then
266268JSON
267269fi
268270
269删除:if [[ "$INSTALL_OPENCODE" == "1" ]]; then
271新增:if [[ "$INSTALL_OPENCODE" == "1" || "$INSTALL_CODE_OPENCODE" == "1" ]]; then
270272 echo "Installing OpenCode..."
271273 curl -fsSL https://opencode.ai/install | bash
272274 echo 'export PATH=$HOME/.opencode/bin:$PATH' >> ~/.zshenv
@@ -425,6 +427,7 @@ if [[ "$INSTALL_CODE_SERVER" == "1" ]]; then
425427 curl -fsSL https://code-server.dev/install.sh | sh
426428 extensions=()
427429 [[ "$INSTALL_CODE_CLAUDE" == "1" ]] && extensions+=(--install-extension anthropic.claude-code)
430新增: [[ "$INSTALL_CODE_OPENCODE" == "1" ]] && extensions+=(--install-extension sst-dev.opencode)
428431 [[ "$INSTALL_CODE_CODEX" == "1" ]] && extensions+=(--install-extension openai.chatgpt)
429432 [[ "$INSTALL_CODE_VIBE" == "1" ]] && extensions+=(--install-extension mistralai.mistral-vibe-code)
430433 if [[ ${#extensions[@]} -gt 0 ]]; then
@@ -537,7 +540,7 @@ configure_mcp() {
537540 fi
538541 fi
539542
540删除: if [[ "$INSTALL_OPENCODE" == "1" ]]; then
543新增: if [[ "$HAS_OPENCODE" == "1" ]]; then
541544 echo "Configuring $name MCP server for OpenCode..."
542545 mkdir -p "$HOME/.config/opencode"
543546 local config="$HOME/.config/opencode/opencode.json"
@@ -587,7 +590,7 @@ configure_mcp() {
587590# True when at least one agent is installed: nothing to configure otherwise,
588591# and no reason to print a "skipping" notice either.
589592any_agent_installed() {
590删除: [[ "$HAS_CLAUDE" == "1" || "$INSTALL_OPENCODE" == "1" \
593新增: [[ "$HAS_CLAUDE" == "1" || "$HAS_OPENCODE" == "1" \
591594 || "$HAS_CODEX" == "1" || "$HAS_VIBE" == "1" ]]
592595}
593596
修改internal/cli/setup.go+21 −8看文件
@@ -49,14 +49,15 @@ Options:
4949 python, node, ruby, rust, golang, docker, chromium,
5050 gh, claude, opencode, codex, vibe, pi, mcp-chrome,
5151 mcp-playwright, code-server, code-claude,
52删除: code-codex, code-vibe
52新增: code-opencode, code-codex, code-vibe
5353 'code-server' is VS Code in the browser, for
5454 'agent-vm code', with GitHub Copilot turned off.
55删除: 'code-claude', 'code-codex' and 'code-vibe' add that
55新增: 'code-claude', 'code-opencode', 'code-codex' and 'code-vibe' add that
5656 agent's extension, and code-server with it. Each
5757 extension brings its own copy of the agent: 'claude',
5858 'codex' and 'vibe' are the command-line ones, for
59删除: 'agent-vm claude' and the others.
59新增: 'agent-vm claude' and the others (OpenCode's extension
60新增: requires its command-line tool, which is installed with it).
6061 Selecting codex or pi also installs node (npm). So does
6162 mcp-chrome when chromium and an agent are selected
6263 (npx). mcp-playwright does not: list node yourself.
@@ -81,7 +82,7 @@ Options:
8182// The software of the base, as agent-vm.setup.sh names it
8283// (AGENT_VM_INSTALL_<NAME>).
8384var software = []string{"python", "node", "ruby", "rust", "golang", "docker", "chromium", "gh", "claude", "opencode", "codex", "vibe", "pi",
84删除: "code-server", "code-claude", "code-codex", "code-vibe", "mcp-chrome", "mcp-playwright"}
85新增: "code-server", "code-claude", "code-opencode", "code-codex", "code-vibe", "mcp-chrome", "mcp-playwright"}
8586
8687// The default set. Opt-in: Ruby, Rust, Go, Pi (released several times a
8788// week), Playwright MCP (a second browser-driving server, whose tools cost
@@ -108,7 +109,7 @@ func (in install) nodeNeededBy() string {
108109 return "Codex CLI requires npm"
109110 case in["pi"]:
110111 return "Pi requires npm"
111删除: case in["chromium"] && in["mcp-chrome"] && (in["claude"] || in["opencode"] || in["vibe"] || in["code-claude"] || in["code-codex"] || in["code-vibe"]):
112新增: case in["chromium"] && in["mcp-chrome"] && (in["claude"] || in["opencode"] || in["vibe"] || in["code-claude"] || in["code-opencode"] || in["code-codex"] || in["code-vibe"]):
112113 return "Chrome DevTools MCP uses npx"
113114 }
114115 return ""
@@ -195,6 +196,9 @@ func (e *app) setupCmd(ctx context.Context, args []string) int {
195196 case f == "code-claude" || f == "code-codex" || f == "code-vibe":
196197 // An extension needs the editor.
197198 in.set(f, "code-server")
199新增: case f == "code-opencode":
200新增: // OpenCode's extension requires both the editor and the OpenCode CLI.
201新增: in.set(f, "code-server", "opencode")
198202 case contains(software, f):
199203 in.set(f)
200204 default:
@@ -343,7 +347,12 @@ func (e *app) askCodeExtensions(in install) {
343347 return
344348 }
345349 var names []string
346删除: for _, a := range []struct{ key, name string }{{"claude", "Claude Code"}, {"codex", "Codex"}, {"vibe", "Mistral Vibe"}} {
350新增: for _, a := range []struct{ key, name string }{
351新增: {"claude", "Claude Code"},
352新增: {"opencode", "OpenCode"},
353新增: {"codex", "Codex"},
354新增: {"vibe", "Mistral Vibe"},
355新增: } {
347356 if in[a.key] {
348357 names = append(names, a.name)
349358 }
@@ -352,11 +361,15 @@ func (e *app) askCodeExtensions(in install) {
352361 return
353362 }
354363 fmt.Fprintf(e.io.Stderr, " %s in the editor:\n", strings.Join(names, ", "))
355删除: choice := e.ui.AskChoice("Pick one", 1, "Extension and command line (agent-vm claude...)", "Extension only", "Command line only")
364新增: promptExtOnly := "Extension only"
365新增: if in["opencode"] {
366新增: promptExtOnly = "Extension only (OpenCode keeps the CLI, required by its extension)"
367新增: }
368新增: choice := e.ui.AskChoice("Pick one", 1, "Extension and command line (agent-vm claude...)", promptExtOnly, "Command line only")
356369 if choice == 3 {
357370 return
358371 }
359删除: in["code-claude"], in["code-codex"], in["code-vibe"] = in["claude"], in["codex"], in["vibe"]
372新增: in["code-claude"], in["code-opencode"], in["code-codex"], in["code-vibe"] = in["claude"], in["opencode"], in["codex"], in["vibe"]
360373 if choice == 2 {
361374 in["claude"], in["codex"], in["vibe"] = false, false, false
362375 }
修改internal/cli/setup_test.go+19 −0看文件
@@ -70,6 +70,7 @@ func on(m map[string]string) string {
7070 return strings.Join(out, ",")
7171}
7272
73新增:// TestSetupPreinstall verifies --preinstall flag combinations.
7374func TestSetupPreinstall(t *testing.T) {
7475 for _, c := range []struct {
7576 args []string
@@ -80,6 +81,7 @@ func TestSetupPreinstall(t *testing.T) {
8081 {[]string{"--preinstall=none"}, ""},
8182 {[]string{"--preinstall=all"}, strings.Join(software, ",")},
8283 {[]string{"--preinstall=python, docker,claude"}, "python,docker,claude"},
84新增: {[]string{"--preinstall=code-opencode"}, "opencode,code-server,code-opencode"},
8385 {[]string{"--preinstall=code-vibe"}, "code-server,code-vibe"},
8486 // Codex needs npm: node goes in, and it is said.
8587 {[]string{"--preinstall=codex"}, "node,codex"},
@@ -132,6 +134,7 @@ func wizardRun(t *testing.T, answers ...string) (*testEnv, []string) {
132134 return te, stdin
133135}
134136
137新增:// TestSetupWizard verifies interactive setup wizard choices and defaults.
135138func TestSetupWizard(t *testing.T) {
136139 // Enter everywhere: the default set and resources.
137140 te, stdin := wizardRun(t)
@@ -164,6 +167,22 @@ func TestSetupWizard(t *testing.T) {
164167 strings.Contains(te.out(), " agent-vm claude\n") {
165168 t.Errorf("output: %s", te.out())
166169 }
170新增:
171新增: // OpenCode as extension only (keeps the required OpenCode CLI)
172新增: te, stdin = wizardRun(t,
173新增: "n", // the default set
174新增: "n", "y", "n", "n", "", // Claude, OpenCode, Codex, Vibe, Pi
175新增: "y", "2", // code-server, extension only
176新增: "n", "n", "n", // Docker, Chromium, gh
177新增: "n", "n", "", "", "", // Python, Node, Ruby, Rust, Go
178新增: "", // resources
179新增: )
180新增: if got := on(exportsOf(t, stdin)); got != "opencode,code-server,code-opencode" {
181新增: t.Errorf("opencode extension: %s", got)
182新增: }
183新增: if !strings.Contains(te.out(), "Extension only (OpenCode keeps the CLI, required by its extension)") {
184新增: t.Errorf("prompt not shown: %s", te.out())
185新增: }
167186}
168187
169188// code-server makes the default memory 4, but --memory wins. No terminal:
修改tests/setup-script.sh+13 −12看文件
@@ -109,12 +109,13 @@ check "sshfs wrapper: an older sshfs gets the arguments unchanged" \
109109# An agent is there as a command, as an extension, or both: either way its
110110# config (managed settings, MCP servers) is written. The lines setup derives
111111# it with, run as setup does.
112删除:has_block="$(awk '/^HAS_CLAUDE=0 HAS_CODEX=0 HAS_VIBE=0$/,/HAS_VIBE=1$/' "$SETUP_SH")"
112新增:has_block="$(awk '/^HAS_CLAUDE=0 HAS_OPENCODE=0 HAS_CODEX=0 HAS_VIBE=0$/,/HAS_VIBE=1$/' "$SETUP_SH")"
113新增:# has derives the HAS_* flags for the given set of agent install flags.
113114# shellcheck disable=SC2034 # read by the eval'd block
114删除:has() { ( INSTALL_CLAUDE="$1" INSTALL_CODE_CLAUDE="$2" INSTALL_CODEX="$3" INSTALL_CODE_CODEX="$4" INSTALL_VIBE="$5" INSTALL_CODE_VIBE="$6"
115删除: eval "$has_block"; echo "$HAS_CLAUDE$HAS_CODEX$HAS_VIBE" ); }
115新增:has() { ( INSTALL_CLAUDE="$1" INSTALL_CODE_CLAUDE="$2" INSTALL_OPENCODE="$3" INSTALL_CODE_OPENCODE="$4" INSTALL_CODEX="$5" INSTALL_CODE_CODEX="$6" INSTALL_VIBE="$7" INSTALL_CODE_VIBE="$8"
116新增: eval "$has_block"; echo "$HAS_CLAUDE$HAS_OPENCODE$HAS_CODEX$HAS_VIBE" ); }
116117check "setup: the agents' config, for a command or an extension" \
117删除: "$(has 1 0 0 0 0 0) $(has 0 1 0 0 0 0) $(has 0 0 0 1 0 0) $(has 0 0 0 0 1 1) $(has 0 0 0 0 0 0)" "100 100 010 001 000"
118新增: "$(has 1 0 0 0 0 0 0 0) $(has 0 1 0 0 0 0 0 0) $(has 0 0 1 0 0 0 0 0) $(has 0 0 0 1 0 0 0 0) $(has 0 0 0 0 1 0 0 0) $(has 0 0 0 0 0 1 0 0) $(has 0 0 0 0 0 0 1 1) $(has 0 0 0 0 0 0 0 0)" "1000 1000 0100 0100 0010 0010 0001 0000"
118119
119120# =============================================================================
120121section "MCP config writer"
@@ -128,7 +129,7 @@ else
128129 (
129130 HOME="$MCPHOME"
130131 eval "$(awk '/^configure_mcp\(\) \{/,/^\}/' "$SETUP_SH")"
131删除: HAS_CLAUDE=1 INSTALL_OPENCODE=1 HAS_VIBE=1 HAS_CODEX=1
132新增: HAS_CLAUDE=1 HAS_OPENCODE=1 HAS_VIBE=1 HAS_CODEX=1
132133 for _ in 1 2; do # twice: the writer must be idempotent
133134 configure_mcp chrome-devtools npx -y chrome-devtools-mcp@latest --headless=true
134135 configure_mcp playwright env PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npx -y @playwright/mcp@latest
@@ -253,7 +254,7 @@ else
253254 cs_block="$(awk '/^toml_prepend\(\) \{/,/^\}/' "$SETUP_SH")
254255$(awk '/^if \[\[ "\$INSTALL_CODE_SERVER" == "1" \]\]; then/,/^fi$/' "$SETUP_SH")
255256$(awk '/^configure_mcp\(\) \{/,/^\}/' "$SETUP_SH")"
256删除: # <home> <claude> <codex> <vibe>: the extensions asked for.
257新增: # <home> <claude> <opencode> <codex> <vibe>: the extensions asked for.
257258 # Under set -e, as the script runs: a failing step must show here. Twice:
258259 # what it writes must not pile up when it runs again in the same VM. The
259260 # first run's state is kept in <home>/first.
@@ -261,8 +262,8 @@ $(awk '/^configure_mcp\(\) \{/,/^\}/' "$SETUP_SH")"
261262 run_cs_block() {
262263 mkdir -p "$1/.config/code-server"; echo "password: from-the-base" > "$1/.config/code-server/config.yaml"
263264 ( set -e
264删除: HOME="$1"; INSTALL_CODE_SERVER=1 INSTALL_CODE_CLAUDE="$2" INSTALL_CODE_CODEX="$3" INSTALL_CODE_VIBE="$4"
265删除: HAS_CLAUDE="$2" HAS_CODEX="$3" HAS_VIBE="$4" INSTALL_OPENCODE=0
265新增: HOME="$1"; INSTALL_CODE_SERVER=1 INSTALL_CODE_CLAUDE="$2" INSTALL_CODE_OPENCODE="$3" INSTALL_CODE_CODEX="$4" INSTALL_CODE_VIBE="$5"
266新增: HAS_CLAUDE="$2" HAS_OPENCODE="$3" HAS_CODEX="$4" HAS_VIBE="$5"
266267 curl() { echo "curl $*" >> "$HOME/calls.log"; }
267268 code-server() { echo "code-server $*" >> "$HOME/calls.log"; }
268269 code_server_schemas() { echo "schemas $*" >> "$HOME/calls.log"; mkdir -p "$(dirname "$2")"; echo '{"json.schemas":[]}' > "$2"; }
@@ -275,7 +276,7 @@ $(awk '/^configure_mcp\(\) \{/,/^\}/' "$SETUP_SH")"
275276 echo 'done' > "$HOME/finished" ) >/dev/null 2>&1
276277 }
277278 CSB="$SB/cs-bare"; mkdir -p "$CSB"
278删除: run_cs_block "$CSB" 0 0 0
279新增: run_cs_block "$CSB" 0 0 0 0
279280 check "code-server alone: no extension installed" "$(grep -c '^code-server' "$CSB/calls.log")" "0"
280281 check "code-server alone: Copilot off" \
281282 "$(jq -r '."chat.disableAIFeatures"' "$CSB/.local/share/code-server/User/settings.json")" "true"
@@ -297,14 +298,14 @@ $(awk '/^configure_mcp\(\) \{/,/^\}/' "$SETUP_SH")"
297298 check "code-server alone: runs to the end under set -e" "$(cat "$CSB/finished" 2>/dev/null)" "done"
298299
299300 CSA="$SB/cs-all"; mkdir -p "$CSA"
300删除: run_cs_block "$CSA" 1 1 1
301新增: run_cs_block "$CSA" 1 1 1 1
301302 check "with the extensions: runs to the end under set -e" "$(cat "$CSA/finished" 2>/dev/null)" "done"
302303 check "codex: written on a fresh home" "$(head -n 2 "$CSA/first/.codex" 2>/dev/null | sort | tr '\n' ' ')" \
303304 'approval_policy = "never" sandbox_mode = "danger-full-access" '
304305 check "vibe: written on a fresh home" "$(cat "$CSA/first/.vibe" 2>/dev/null)" 'default_agent = "auto-approve"'
305删除: check "the three extensions, in one call" \
306新增: check "the four extensions, in one call" \
306307 "$(grep '^code-server' "$CSA/calls.log" | head -n 1)" \
307删除: "code-server --install-extension anthropic.claude-code --install-extension openai.chatgpt --install-extension mistralai.mistral-vibe-code"
308新增: "code-server --install-extension anthropic.claude-code --install-extension sst-dev.opencode --install-extension openai.chatgpt --install-extension mistralai.mistral-vibe-code"
308309 # The permission keys are machine-scoped: code-server reads them from the
309310 # machine settings only.
310311 check "claude: bypass mode allowed and picked, in the machine settings" \
修改www/src/i18n/en.ts+2 −2看文件
@@ -681,12 +681,12 @@ export const en = {
681681 ['MCP', 'Chrome DevTools MCP, wired into every installed agent but Pi (no MCP support)', 'mcp-chrome', 'yes'],
682682 ['MCP', 'Playwright MCP, reusing the same Chromium', 'mcp-playwright', 'no'],
683683 ['Editor', 'code-server (VS Code in the browser, for `agent-vm code`), dark theme, GitHub Copilot off, no telemetry', 'code-server', 'no'],
684删除: ['Editor', 'The Claude Code, Codex or Mistral Vibe extension, each starting with no permission prompts, with code-server', 'code-claude, code-codex, code-vibe', 'no'],
684新增: ['Editor', 'The Claude Code, OpenCode, Codex or Mistral Vibe extension, each starting with no permission prompts, with code-server', 'code-claude, code-opencode, code-codex, code-vibe', 'no'],
685685 ],
686686 contentsCode:
687687 'agent-vm setup --preinstall=default # no prompts\nagent-vm setup --preinstall=default,rust # plus Rust\nagent-vm setup --preinstall=python,docker,claude # minimal Claude setup\nagent-vm setup --preinstall=default,code-claude # plus the editor\nagent-vm setup --disk 50 --memory 16 --cpus 8 # a bigger template',
688688 contentsNote:
689删除: '`codex` and `pi` pull in `node`, and so does `mcp-chrome` with `chromium` and an agent. Both MCP servers are skipped without `node` and `chromium`. Each editor extension ships its own copy of its agent (200 to 600 MB): the wizard asks whether to keep the command-line one too. Without it, `agent-vm claude` says it is not installed. This is only what the template ships: the agent is root in the VM and reaches the internet, so it installs whatever else it needs.',
689新增: '`codex` and `pi` pull in `node`, and so does `mcp-chrome` with `chromium` and an agent. Both MCP servers are skipped without `node` and `chromium`. Each editor extension ships its own copy of its agent (200 to 600 MB): the wizard asks whether to keep the command-line one too (OpenCode’s extension requires the CLI, which is always installed with it). Without it, `agent-vm claude` says it is not installed. This is only what the template ships: the agent is root in the VM and reaches the internet, so it installs whatever else it needs.',
690690 dockerTitle: 'Why not Docker',
691691 dockerLede:
692692 'On Linux, containers share the host kernel, so a compromised dependency that finds a kernel bug is on your host. On macOS, Docker Desktop already runs a VM, which narrows the gap, but it is one VM shared by every container rather than one per project. A VM brings its own kernel, and root inside it still has the hypervisor between it and your machine. The practical differences matter as much as the security one.',
修改www/src/i18n/fr.ts+2 −2看文件
@@ -683,12 +683,12 @@ export const fr: Dictionary = {
683683 ['MCP', 'Chrome DevTools MCP, câblé dans chaque agent installé sauf Pi (pas de support MCP)', 'mcp-chrome', 'oui'],
684684 ['MCP', 'Playwright MCP, réutilisant le même Chromium', 'mcp-playwright', 'non'],
685685 ['Éditeur', 'code-server (VS Code dans le navigateur, pour `agent-vm code`), thème sombre, GitHub Copilot désactivé, sans télémétrie', 'code-server', 'non'],
686删除: ['Éditeur', 'L\'extension Claude Code, Codex ou Mistral Vibe, chacune démarrant sans demande de permission, avec code-server', 'code-claude, code-codex, code-vibe', 'non'],
686新增: ['Éditeur', 'L\'extension Claude Code, OpenCode, Codex ou Mistral Vibe, chacune démarrant sans demande de permission, avec code-server', 'code-claude, code-opencode, code-codex, code-vibe', 'non'],
687687 ],
688688 contentsCode:
689689 'agent-vm setup --preinstall=default # sans question\nagent-vm setup --preinstall=default,rust # avec Rust en plus\nagent-vm setup --preinstall=python,docker,claude # Claude seul, minimal\nagent-vm setup --preinstall=default,code-claude # avec l\'éditeur\nagent-vm setup --disk 50 --memory 16 --cpus 8 # une image plus grosse',
690690 contentsNote:
691删除: '`codex` et `pi` entraînent `node`, tout comme `mcp-chrome` avec `chromium` et un agent. Les deux serveurs MCP sont ignorés sans `node` et `chromium`. Chaque extension de l\'éditeur apporte sa propre copie de son agent (200 à 600 Mo) : l\'assistant demande s\'il faut garder aussi celle en ligne de commande. Sans elle, `agent-vm claude` dit qu\'il n\'est pas installé. Ce n\'est que ce que l\'image contient au départ : l\'agent est root dans la VM et atteint Internet, il installe lui-même ce qui lui manque.',
691新增: '`codex` et `pi` entraînent `node`, tout comme `mcp-chrome` avec `chromium` et un agent. Les deux serveurs MCP sont ignorés sans `node` et `chromium`. Chaque extension de l\'éditeur apporte sa propre copie de son agent (200 à 600 Mo) : l\'assistant demande s\'il faut garder aussi celle en ligne de commande (l\'extension d\'OpenCode nécessite l\'outil en ligne de commande, qui est toujours installé avec elle). Sans elle, `agent-vm claude` dit qu\'il n\'est pas installé. Ce n\'est que ce que l\'image contient au départ : l\'agent est root dans la VM et atteint Internet, il installe lui-même ce qui lui manque.',
692692 dockerTitle: 'Pourquoi pas Docker',
693693 dockerLede:
694694 'Sous Linux, les conteneurs partagent le noyau de l\'hôte : une dépendance compromise qui trouve une faille dans le noyau se retrouve sur ta machine. Sous macOS, Docker Desktop fait déjà tourner une VM, ce qui réduit l\'écart, mais c\'est une seule VM partagée par tous tes conteneurs, pas une par projet. Une VM a son propre noyau, et root dans la VM a encore l\'hyperviseur entre lui et ton poste. Les différences pratiques comptent autant que celle-ci.',