跳到主要内容

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

提交记录
修改README.md+1 −1看文件
@@ -28,7 +28,7 @@ agent-vm stop # or rm; list for all VMs
2828agent-vm doctor # what is wrong, and what to run
2929```
3030
31删除:Every command and option: [Usage](https://www.agent-vm.org/#usage) and [Reference](https://www.agent-vm.org/#reference).
31新增:Everyday use: [Usage](https://www.agent-vm.org/#usage). Every command, option, file and variable: [Reference](https://www.agent-vm.org/#reference).
3232
3333## Security
3434
修改www/README.md+1 −1看文件
@@ -7,7 +7,7 @@ static HTML and GitHub Pages serves it.
77
88```bash
99npm install
10删除:npm run dev # http://localhost:4321
10新增:npm run dev # http://localhost:4822
1111npm run build # -> dist/
1212npm run preview # serve dist/ locally
1313```
修改www/astro.config.mjs+1 −0看文件
@@ -7,6 +7,7 @@ import sitemap from '@astrojs/sitemap';
77export default defineConfig({
88 site: 'https://www.agent-vm.org',
99 trailingSlash: 'always',
10新增: server: { port: 4822 },
1011 i18n: {
1112 locales: ['en', 'fr'],
1213 defaultLocale: 'en',
修改www/src/components/Architecture.astro+2 −0看文件
@@ -1,4 +1,5 @@
11---
2新增:import CodeBlock from './CodeBlock.astro';
23import { inline } from '../lib/inline';
34import Heading from './Heading.astro';
45import { slug } from '../lib/slug';
@@ -105,6 +106,7 @@ const dg = d.architecture.diagram;
105106 </tbody>
106107 </table>
107108 </div>
109新增: <CodeBlock locale={locale} code={d.architecture.contentsCode} />
108110 <p class="prose arch__sub-note" set:html={inline(d.architecture.contentsNote)} />
109111 </div>
110112
修改www/src/components/Contribute.astro+14 −1看文件
@@ -29,11 +29,20 @@ const d = t(locale);
2929 <div class="contribute__col">
3030 <Heading as="h3" id={slug(en.contribute.testsTitle)} locale={locale} class="contribute__sub">{d.contribute.testsTitle}</Heading>
3131 <p class="prose contribute__body" set:html={inline(d.contribute.testsBody)} />
32新增: <ul class="contribute__rules contribute__tests">
33新增: {
34新增: d.contribute.testsList.map((item) => (
35新增: <li class="contribute__rule">
36新增: <span class="prose" set:html={inline(item)} />
37新增: </li>
38新增: ))
39新增: }
40新增: </ul>
3241 <CodeBlock locale={locale} code={d.contribute.testsCode} prompt />
3342
3443 <Heading as="h3" id={slug(en.contribute.shellsTitle)} locale={locale} class="contribute__sub contribute__sub--spaced">{d.contribute.shellsTitle}</Heading>
3544 <p class="prose contribute__body" set:html={inline(d.contribute.shellsBody)} />
36删除: <CodeBlock locale={locale} code={d.contribute.shellsCode} prompt />
45新增: <CodeBlock locale={locale} code={d.contribute.shellsCode} />
3746 </div>
3847
3948 <div class="contribute__col">
@@ -131,6 +140,10 @@ const d = t(locale);
131140 list-style: none;
132141 }
133142
143新增: .contribute__tests {
144新增: margin-bottom: 1rem;
145新增: }
146新增:
134147 .contribute__rule {
135148 position: relative;
136149 padding-left: 1.4rem;
新增www/src/components/DocGroups.astro+104 −0看文件
@@ -0,0 +1,104 @@
1新增:---
2新增:// Groups of topics, each with paragraphs, an optional list and an optional
3新增:// code sample. Used by Architecture and Security.
4新增:import CodeBlock from './CodeBlock.astro';
5新增:import { inline } from '../lib/inline';
6新增:import Heading from './Heading.astro';
7新增:import { slug } from '../lib/slug';
8新增:import type { Locale } from '../i18n';
9新增:
10新增:interface Topic {
11新增: title: string;
12新增: paras: string[];
13新增: list: string[];
14新增: code: string;
15新增:}
16新增:
17新增:interface Group {
18新增: id?: string;
19新增: title: string;
20新增: topics: Topic[];
21新增:}
22新增:
23新增:interface Props {
24新增: locale: Locale;
25新增: groups: Group[];
26新增: // The English groups: anchors come from their titles, so links work in
27新增: // every language.
28新增: source: Group[];
29新增:}
30新增:
31新增:const { locale, groups, source } = Astro.props;
32新增:---
33新增:
34新增:{
35新增: groups.map((group, g) => (
36新增: <div class="docs__group">
37新增: <Heading as="h3" id={source[g]!.id ?? slug(source[g]!.title)} locale={locale} class="docs__group-title">{group.title}</Heading>
38新增: <div class="docs__topics">
39新增: {group.topics.map((topic, i) => (
40新增: <article class="docs__topic">
41新增: <Heading as="h4" id={slug(source[g]!.topics[i]!.title)} locale={locale} class="docs__topic-title">{topic.title}</Heading>
42新增: {topic.paras.map((para) => <p class="prose docs__p" set:html={inline(para)} />)}
43新增: {topic.list.length > 0 && (
44新增: <ul class="docs__list">
45新增: {topic.list.map((item) => <li class="prose docs__p" set:html={inline(item)} />)}
46新增: </ul>
47新增: )}
48新增: {topic.code && <CodeBlock locale={locale} code={topic.code} />}
49新增: </article>
50新增: ))}
51新增: </div>
52新增: </div>
53新增: ))
54新增:}
55新增:
56新增:<style>
57新增: .docs__group {
58新增: display: grid;
59新增: gap: 1rem;
60新增: margin-top: clamp(2rem, 4vw, 3rem);
61新增: }
62新增:
63新增: .docs__group-title {
64新增: font-size: 1.15rem;
65新增: }
66新增:
67新增: .docs__topics {
68新增: display: grid;
69新增: grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
70新增: gap: 1px;
71新增: background: var(--line);
72新增: border: 1px solid var(--line);
73新增: border-radius: var(--radius-lg);
74新增: overflow: hidden;
75新增: }
76新增:
77新增: .docs__topic {
78新增: display: grid;
79新增: align-content: start;
80新增: min-width: 0;
81新增: gap: 0.75rem;
82新增: padding: clamp(1.25rem, 2.4vw, 1.75rem);
83新增: background: var(--surface);
84新增: }
85新增:
86新增: /* An odd count would otherwise leave a hole in the last row. */
87新增: .docs__topic:last-child:nth-child(odd) {
88新增: grid-column: 1 / -1;
89新增: }
90新增:
91新增: .docs__topic-title {
92新增: font-size: 1.02rem;
93新增: }
94新增:
95新增: .docs__p {
96新增: font-size: 0.91rem;
97新增: }
98新增:
99新增: .docs__list {
100新增: display: grid;
101新增: gap: 0.5rem;
102新增: padding-left: 1.1rem;
103新增: }
104新增:</style>
修改www/src/components/Docs.astro+7 −83看文件
@@ -1,103 +1,27 @@
11---
2删除:// A section of reference prose: groups of topics, each with paragraphs, an
3删除:// optional list and an optional code sample. Used for `reference` and
4删除:// `security`, which share this shape in the dictionaries.
5删除:import CodeBlock from './CodeBlock.astro';
2新增:// The Security section: groups of topics, see DocGroups.
3新增:import DocGroups from './DocGroups.astro';
64import { inline } from '../lib/inline';
75import Heading from './Heading.astro';
8删除:import { slug } from '../lib/slug';
96import { en } from '../i18n/en';
107import { t, type Locale } from '../i18n';
118
129interface Props {
1310 locale: Locale;
14删除: part: 'reference' | 'security';
1511}
1612
17删除:const { locale, part } = Astro.props;
18删除:const d = t(locale)[part];
19删除:// Anchors come from the English titles, so links work in every language.
20删除:const source = en[part];
13新增:const { locale } = Astro.props;
14新增:const d = t(locale).security;
2115---
2216
23删除:<section class="section docs" id={part}>
17新增:<section class="section docs" id="security">
2418 <div class="container">
2519 <div class="section-head">
2620 <p class="eyebrow">{d.eyebrow}</p>
27删除: <Heading as="h2" id={part} own={false} locale={locale}>{d.title}</Heading>
21新增: <Heading as="h2" id="security" own={false} locale={locale}>{d.title}</Heading>
2822 <p class="lede" set:html={inline(d.lede)} />
2923 </div>
3024
31删除: {
32删除: d.groups.map((group, g) => (
33删除: <div class="docs__group">
34删除: <Heading as="h3" id={slug(source.groups[g]!.title)} locale={locale} class="docs__group-title">{group.title}</Heading>
35删除: <div class="docs__topics">
36删除: {group.topics.map((topic, i) => (
37删除: <article class="docs__topic">
38删除: <Heading as="h4" id={slug(source.groups[g]!.topics[i]!.title)} locale={locale} class="docs__topic-title">{topic.title}</Heading>
39删除: {topic.paras.map((para) => <p class="prose docs__p" set:html={inline(para)} />)}
40删除: {topic.list.length > 0 && (
41删除: <ul class="docs__list">
42删除: {topic.list.map((item) => <li class="prose docs__p" set:html={inline(item)} />)}
43删除: </ul>
44删除: )}
45删除: {topic.code && <CodeBlock locale={locale} code={topic.code} />}
46删除: </article>
47删除: ))}
48删除: </div>
49删除: </div>
50删除: ))
51删除: }
25新增: <DocGroups locale={locale} groups={d.groups} source={en.security.groups} />
5226 </div>
5327</section>
54删除:
55删除:<style>
56删除: .docs__group {
57删除: display: grid;
58删除: gap: 1rem;
59删除: margin-top: clamp(2rem, 4vw, 3rem);
60删除: }
61删除:
62删除: .docs__group-title {
63删除: font-size: 1.15rem;
64删除: }
65删除:
66删除: .docs__topics {
67删除: display: grid;
68删除: grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
69删除: gap: 1px;
70删除: background: var(--line);
71删除: border: 1px solid var(--line);
72删除: border-radius: var(--radius-lg);
73删除: overflow: hidden;
74删除: }
75删除:
76删除: .docs__topic {
77删除: display: grid;
78删除: align-content: start;
79删除: min-width: 0;
80删除: gap: 0.75rem;
81删除: padding: clamp(1.25rem, 2.4vw, 1.75rem);
82删除: background: var(--surface);
83删除: }
84删除:
85删除: /* An odd count would otherwise leave a hole in the last row. */
86删除: .docs__topic:last-child:nth-child(odd) {
87删除: grid-column: 1 / -1;
88删除: }
89删除:
90删除: .docs__topic-title {
91删除: font-size: 1.02rem;
92删除: }
93删除:
94删除: .docs__p {
95删除: font-size: 0.91rem;
96删除: }
97删除:
98删除: .docs__list {
99删除: display: grid;
100删除: gap: 0.5rem;
101删除: padding-left: 1.1rem;
102删除: }
103删除:</style>
修改www/src/components/Hero.astro+3 −2看文件
@@ -1,5 +1,6 @@
11---
22import InstallTabs from './InstallTabs.astro';
3新增:import { inline } from '../lib/inline';
34import { t, type Locale } from '../i18n';
45
56interface Props {
@@ -86,8 +87,8 @@ const session: Array<{ kind: 'cmd' | 'out' | 'ok' | 'dim' | 'gap'; text: string
8687 {
8788 d.hero.points.map((point) => (
8889 <li class="hero__point">
89删除: <h2 class="hero__point-title">{point.title}</h2>
90删除: <p class="hero__point-body">{point.body}</p>
90新增: <h2 class="hero__point-title" set:html={inline(point.title)} />
91新增: <p class="hero__point-body" set:html={inline(point.body)} />
9192 </li>
9293 ))
9394 }
修改www/src/components/Install.astro+1 −85看文件
@@ -75,40 +75,6 @@ const d = t(locale);
7575 }
7676 </ol>
7777 </div>
78删除:
79删除: {/* Sits with step 2 rather than in its own reference section: it is only
80删除: ever about `agent-vm setup`, which is on this page. */}
81删除: <div class="install__preinstall">
82删除: <Heading as="h3" id={slug(en.install.preinstallTitle)} locale={locale} class="install__sub">{d.install.preinstallTitle}</Heading>
83删除: <p class="prose install__sub-body" set:html={inline(d.install.preinstallBody)} />
84删除: <p class="install__names">{d.install.preinstallNames}</p>
85删除: <div class="table-wrap">
86删除: <table class="table--code table--grid">
87删除: <thead>
88删除: <tr>{d.install.setupHeaders.map((header) => <th scope="col">{header}</th>)}</tr>
89删除: </thead>
90删除: <tbody>
91删除: {
92删除: d.install.setup.map(([flag, description, fallback]) => (
93删除: <tr>
94删除: <td>{flag}</td>
95删除: <td set:html={inline(description ?? '')} />
96删除: <td class="install__default">{fallback}</td>
97删除: </tr>
98删除: ))
99删除: }
100删除: </tbody>
101删除: </table>
102删除: </div>
103删除: <CodeBlock locale={locale} code={d.install.preinstallCode} />
104删除: </div>
105删除:
106删除: <div class="install__extras">
107删除: <div class="note">
108删除: <strong class="note__title">{d.install.updateTitle}</strong>
109删除: <p class="prose" set:html={inline(d.install.updateBody)} />
110删除: </div>
111删除: </div>
11278 </div>
11379</section>
11480
@@ -201,58 +167,8 @@ const d = t(locale);
201167 max-width: 44rem;
202168 }
203169
204删除: .install__preinstall {
205删除: display: grid;
206删除: gap: 1rem;
207删除: min-width: 0;
208删除: margin-top: clamp(2.5rem, 5vw, 4rem);
209删除: }
210删除:
211删除: .install__sub {
212删除: font-size: 1.05rem;
213删除: }
214删除:
215删除: .install__sub-body {
216删除: font-size: 0.93rem;
217删除: margin-top: -0.35rem;
218删除: max-width: 48rem;
219删除: }
220删除:
221删除: .install__names {
222删除: font-family: var(--font-mono);
223删除: font-size: 0.8rem;
224删除: line-height: 2;
225删除: color: var(--accent);
226删除: padding: 0.9rem 1.1rem;
227删除: border: 1px solid var(--accent-line);
228删除: border-radius: var(--radius);
229删除: background: var(--accent-wash);
230删除: overflow-wrap: anywhere;
231删除: }
232删除:
233删除: .install__default {
234删除: font-family: var(--font-mono);
235删除: font-size: 0.78rem;
236删除: color: var(--ink-3);
237删除: white-space: nowrap;
238删除: }
239删除:
240删除: .install__extras {
241删除: display: grid;
242删除: grid-template-columns: minmax(0, 1fr);
243删除: gap: clamp(1.25rem, 3vw, 2.5rem);
244删除: margin-top: clamp(2.5rem, 5vw, 4rem);
245删除: align-items: start;
246删除: max-width: 52rem;
247删除: }
248删除:
249删除: .install__extras .prose {
250删除: font-size: 0.93rem;
251删除: }
252删除:
253170 @media (max-width: 62rem) {
254删除: .install__layout,
255删除: .install__extras {
171新增: .install__layout {
256172 grid-template-columns: minmax(0, 1fr);
257173 }
258174
修改www/src/components/Landing.astro+3 −2看文件
@@ -3,6 +3,7 @@ import Hero from './Hero.astro';
33import Threat from './Threat.astro';
44import Install from './Install.astro';
55import Usage from './Usage.astro';
6新增:import Reference from './Reference.astro';
67import Docs from './Docs.astro';
78import Architecture from './Architecture.astro';
89import Contribute from './Contribute.astro';
@@ -20,8 +21,8 @@ const { locale } = Astro.props;
2021<Threat locale={locale} />
2122<Install locale={locale} />
2223<Usage locale={locale} />
23删除:<Docs locale={locale} part="reference" />
2424<Architecture locale={locale} />
25删除:<Docs locale={locale} part="security" />
25新增:<Docs locale={locale} />
26新增:<Reference locale={locale} />
2627<Contribute locale={locale} />
2728<Credits locale={locale} />
修改www/src/components/Nav.astro+1 −1看文件
@@ -16,9 +16,9 @@ const home = localeHref(locale);
1616const links = [
1717 { href: `${home}#install`, label: d.nav.sections.install },
1818 { href: `${home}#usage`, label: d.nav.sections.usage },
19删除: { href: `${home}#reference`, label: d.nav.sections.reference },
2019 { href: `${home}#architecture`, label: d.nav.sections.architecture },
2120 { href: `${home}#security`, label: d.nav.sections.security },
21新增: { href: `${home}#reference`, label: d.nav.sections.reference },
2222 { href: `${home}#contribute`, label: d.nav.sections.contribute },
2323 { href: `${home}#credits`, label: d.nav.sections.credits },
2424];
新增www/src/components/Reference.astro+251 −0看文件
@@ -0,0 +1,251 @@
1新增:---
2新增:import CodeBlock from './CodeBlock.astro';
3新增:import DocGroups from './DocGroups.astro';
4新增:import { inline } from '../lib/inline';
5新增:import Heading from './Heading.astro';
6新增:import { slug } from '../lib/slug';
7新增:import { en } from '../i18n/en';
8新增:import { t, type Locale } from '../i18n';
9新增:
10新增:interface Props {
11新增: locale: Locale;
12新增:}
13新增:
14新增:const { locale } = Astro.props;
15新增:const d = t(locale).reference;
16新增:---
17新增:
18新增:<section class="section" id="reference">
19新增: <div class="container">
20新增: <div class="section-head">
21新增: <p class="eyebrow">{d.eyebrow}</p>
22新增: <Heading as="h2" id="reference" own={false} locale={locale}>{d.title}</Heading>
23新增: <p class="lede" set:html={inline(d.lede)} />
24新增: </div>
25新增:
26新增: <div class="ref__groups">
27新增: {
28新增: d.commandGroups.map((group) => (
29新增: <div class="ref__group">
30新增: <h3 class="ref__group-title">{group.title}</h3>
31新增: <div class="table-wrap">
32新增: <table class="ref__commands">
33新增: <tbody>
34新增: {group.rows.map(([command, description]) => (
35新增: <tr>
36新增: <th scope="row">{command}</th>
37新增: <td set:html={inline(description ?? '')} />
38新增: </tr>
39新增: ))}
40新增: </tbody>
41新增: </table>
42新增: </div>
43新增: </div>
44新增: ))
45新增: }
46新增: </div>
47新增:
48新增: <div class="ref__block">
49新增: <Heading as="h3" id={slug(en.reference.optionsTitle)} locale={locale} class="ref__sub">{d.optionsTitle}</Heading>
50新增: <p class="prose ref__note" set:html={inline(d.optionsNote)} />
51新增: <div class="table-wrap">
52新增: <table class="table--code table--grid">
53新增: <thead>
54新增: <tr>{d.optionsHeaders.map((header) => <th scope="col">{header}</th>)}</tr>
55新增: </thead>
56新增: <tbody>
57新增: {
58新增: d.options.map(([flag, description, fallback]) => (
59新增: <tr>
60新增: <td>{flag}</td>
61新增: <td set:html={inline(description ?? '')} />
62新增: <td class="ref__default">{fallback}</td>
63新增: </tr>
64新增: ))
65新增: }
66新增: </tbody>
67新增: </table>
68新增: </div>
69新增: </div>
70新增:
71新增: <div class="ref__block">
72新增: <Heading as="h3" id={slug(en.reference.envTitle)} locale={locale} class="ref__sub">{d.envTitle}</Heading>
73新增: <p class="prose ref__note" set:html={inline(d.envNote)} />
74新增: <div class="table-wrap">
75新增: <table class="table--code table--grid">
76新增: <thead>
77新增: <tr>{d.envHeaders.map((header) => <th scope="col">{header}</th>)}</tr>
78新增: </thead>
79新增: <tbody>
80新增: {
81新增: d.env.map(([name, description, fallback]) => (
82新增: <tr>
83新增: <td>{name}</td>
84新增: <td set:html={inline(description ?? '')} />
85新增: <td class="ref__default">{fallback}</td>
86新增: </tr>
87新增: ))
88新增: }
89新增: </tbody>
90新增: </table>
91新增: </div>
92新增: </div>
93新增:
94新增: <div class="ref__block ref__split">
95新增: <div class="ref__col">
96新增: <Heading as="h3" id={slug(en.reference.customTitle)} locale={locale} class="ref__sub">{d.customTitle}</Heading>
97新增: <p class="prose ref__note" set:html={inline(d.customLede)} />
98新增: <div class="table-wrap">
99新增: <table class="table--code ref__files">
100新增: <thead>
101新增: <tr>{d.customTable.headers.map((header) => <th scope="col">{header}</th>)}</tr>
102新增: </thead>
103新增: <tbody>
104新增: {
105新增: d.customTable.rows.map((row) => (
106新增: <tr>
107新增: {row.map((cell, index) =>
108新增: index === 0 ? (
109新增: <th scope="row">
110新增: <code>{cell}</code>
111新增: </th>
112新增: ) : (
113新增: <td>{cell}</td>
114新增: ),
115新增: )}
116新增: </tr>
117新增: ))
118新增: }
119新增: </tbody>
120新增: </table>
121新增: </div>
122新增:
123新增: <Heading as="h4" id={slug(en.reference.volumesTitle)} locale={locale} class="ref__sub">{d.volumesTitle}</Heading>
124新增: <p class="prose ref__note" set:html={inline(d.volumesBody)} />
125新增: <CodeBlock locale={locale} code={d.volumesCode} />
126新增: <p class="prose ref__note" set:html={inline(d.volumesNote)} />
127新增: </div>
128新增:
129新增: <div class="ref__col">
130新增: <Heading as="h3" id="node" locale={locale} class="ref__sub">{d.nodeTitle}</Heading>
131新增: <p class="prose ref__note" set:html={inline(d.nodeBody)} />
132新增: <CodeBlock locale={locale} code={d.nodeCode} />
133新增: <p class="prose ref__note" set:html={inline(d.nodeNote)} />
134新增: </div>
135新增: </div>
136新增:
137新增: <div class="ref__block ref__split">
138新增: <div class="ref__col">
139新增: <Heading as="h3" id={slug(en.reference.scriptsTitle)} locale={locale} class="ref__sub">{d.scriptsTitle}</Heading>
140新增: {d.scriptsParas.map((para) => <p class="prose ref__note" set:html={inline(para)} />)}
141新增: </div>
142新增: <div class="ref__col">
143新增: <CodeBlock locale={locale} code={d.scriptsCode} />
144新增: </div>
145新增: </div>
146新增:
147新增: <DocGroups locale={locale} groups={d.groups} source={en.reference.groups} />
148新增: </div>
149新增:</section>
150新增:
151新增:<style>
152新增: .ref__groups {
153新增: display: grid;
154新增: grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
155新增: gap: clamp(1.5rem, 3vw, 2.5rem);
156新增: align-items: start;
157新增: }
158新增:
159新增: .ref__group {
160新增: display: grid;
161新增: align-content: start;
162新增: min-width: 0;
163新增: }
164新增:
165新增: .ref__group-title {
166新增: margin-bottom: 0.75rem;
167新增: font-family: var(--font-mono);
168新增: font-size: 0.72rem;
169新增: font-weight: 500;
170新增: letter-spacing: 0.12em;
171新增: text-transform: uppercase;
172新增: color: var(--ink-3);
173新增: }
174新增:
175新增: /* No thead on the command tables: the group title names the block, and a
176新增: repeated "Command / What it does" row on five tables is noise. */
177新增: .ref__commands th[scope='row'] {
178新增: padding: 0.72rem 1rem;
179新增: border-bottom: 1px solid var(--line);
180新增: text-align: left;
181新增: vertical-align: top;
182新增: font-family: var(--font-mono);
183新增: font-size: 0.83rem;
184新增: font-weight: 450;
185新增: white-space: nowrap;
186新增: color: var(--accent);
187新增: }
188新增:
189新增: .ref__commands tbody tr:last-child th[scope='row'] {
190新增: border-bottom: 0;
191新增: }
192新增:
193新增: .ref__block {
194新增: display: grid;
195新增: gap: 1rem;
196新增: align-content: start;
197新增: min-width: 0;
198新增: margin-top: clamp(2.5rem, 5vw, 4rem);
199新增: }
200新增:
201新增: .ref__split {
202新增: grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
203新增: gap: clamp(1.75rem, 4vw, 3.25rem);
204新增: align-items: start;
205新增: }
206新增:
207新增: .ref__col {
208新增: display: grid;
209新增: gap: 1rem;
210新增: min-width: 0;
211新增: }
212新增:
213新增: .ref__sub {
214新增: font-size: 1.05rem;
215新增: }
216新增:
217新增: .ref__note {
218新增: font-size: 0.9rem;
219新增: }
220新增:
221新增: .ref__files th[scope='row'] {
222新增: padding: 0.72rem 1rem;
223新增: border-bottom: 1px solid var(--line);
224新增: text-align: left;
225新增: font-weight: 500;
226新增: vertical-align: top;
227新增: }
228新增:
229新增: .ref__files tbody tr:last-child th[scope='row'] {
230新增: border-bottom: 0;
231新增: }
232新增:
233新增: .ref__files th[scope='row'] code {
234新增: font-size: 0.8rem;
235新增: color: var(--accent);
236新增: white-space: nowrap;
237新增: }
238新增:
239新增: .ref__default {
240新增: font-family: var(--font-mono);
241新增: font-size: 0.78rem;
242新增: color: var(--ink-3);
243新增: white-space: nowrap;
244新增: }
245新增:
246新增: @media (max-width: 62rem) {
247新增: .ref__split {
248新增: grid-template-columns: minmax(0, 1fr);
249新增: }
250新增: }
251新增:</style>
修改www/src/components/Usage.astro+3 −183看文件
@@ -35,119 +35,20 @@ const d = t(locale);
3535 </div>
3636
3737 <div class="usage__split">
38删除: <div class="usage__custom">
39删除: <Heading as="h3" id={slug(en.usage.customTitle)} locale={locale} class="usage__sub">{d.usage.customTitle}</Heading>
40删除: <p class="prose usage__sub-body" set:html={inline(d.usage.customLede)} />
41删除: <div class="table-wrap">
42删除: <table class="table--code">
43删除: <thead>
44删除: <tr>{d.usage.customTable.headers.map((header) => <th scope="col">{header}</th>)}</tr>
45删除: </thead>
46删除: <tbody>
47删除: {
48删除: d.usage.customTable.rows.map((row) => (
49删除: <tr>
50删除: {row.map((cell, index) =>
51删除: index === 0 ? (
52删除: <th scope="row">
53删除: <code>{cell}</code>
54删除: </th>
55删除: ) : (
56删除: <td>{cell}</td>
57删除: ),
58删除: )}
59删除: </tr>
60删除: ))
61删除: }
62删除: </tbody>
63删除: </table>
64删除: </div>
65删除:
66删除: <Heading as="h4" id={slug(en.usage.volumesTitle)} locale={locale} class="usage__sub">{d.usage.volumesTitle}</Heading>
67删除: <p class="prose usage__sub-body" set:html={inline(d.usage.volumesBody)} />
68删除: <CodeBlock locale={locale} code={d.usage.volumesCode} />
69删除: <p class="prose usage__note" set:html={inline(d.usage.volumesNote)} />
70删除: </div>
71删除:
7238 <div class="usage__git">
7339 <Heading as="h3" id={slug(en.usage.gitTitle)} locale={locale} class="usage__sub">{d.usage.gitTitle}</Heading>
7440 <p class="prose usage__sub-body" set:html={inline(d.usage.gitBody)} />
7541 <CodeBlock locale={locale} code={d.usage.gitCode} />
76删除: <p class="prose usage__note" set:html={inline(d.usage.gitNote)} />
42新增: </div>
7743
44新增: <div class="usage__git">
45新增: <p class="prose usage__note" set:html={inline(d.usage.gitNote)} />
7846 <div class="note note--accent">
7947 <strong class="note__title">{d.usage.gitHumanTitle}</strong>
8048 <p class="prose usage__note" set:html={inline(d.usage.gitHumanBody)} />
8149 </div>
8250 </div>
8351 </div>
84删除:
85删除: {/* The reference tail. The cards above show the commands in use; this is
86删除: the exhaustive list, with the details prose would bury. */}
87删除: <div class="usage__ref">
88删除: <Heading as="h3" id={slug(en.usage.refTitle)} locale={locale} class="usage__sub">{d.usage.refTitle}</Heading>
89删除: <p class="prose usage__sub-body" set:html={inline(d.usage.refNote)} />
90删除:
91删除: <div class="usage__groups">
92删除: {
93删除: d.usage.commandGroups.map((group) => (
94删除: <div class="usage__group">
95删除: <h4 class="usage__group-title">{group.title}</h4>
96删除: <div class="table-wrap">
97删除: <table class="usage__commands">
98删除: <tbody>
99删除: {group.rows.map(([command, description]) => (
100删除: <tr>
101删除: <th scope="row">{command}</th>
102删除: <td set:html={inline(description ?? '')} />
103删除: </tr>
104删除: ))}
105删除: </tbody>
106删除: </table>
107删除: </div>
108删除: </div>
109删除: ))
110删除: }
111删除: </div>
112删除:
113删除: <h4 class="usage__group-title usage__group-title--spaced">{d.usage.optionsTitle}</h4>
114删除: <p class="prose usage__note" set:html={inline(d.usage.optionsNote)} />
115删除: <div class="table-wrap">
116删除: <table class="table--code table--grid">
117删除: <thead>
118删除: <tr>{d.usage.optionsHeaders.map((header) => <th scope="col">{header}</th>)}</tr>
119删除: </thead>
120删除: <tbody>
121删除: {
122删除: d.usage.options.map(([flag, description, fallback]) => (
123删除: <tr>
124删除: <td>{flag}</td>
125删除: <td set:html={inline(description ?? '')} />
126删除: <td class="usage__default">{fallback}</td>
127删除: </tr>
128删除: ))
129删除: }
130删除: </tbody>
131删除: </table>
132删除: </div>
133删除: </div>
134删除:
135删除: <div class="usage__split">
136删除: <div class="usage__git">
137删除: <Heading as="h3" id="git" locale={locale} class="usage__sub">{d.usage.gitGuardTitle}</Heading>
138删除: <p class="prose usage__sub-body" set:html={inline(d.usage.gitGuardBody)} />
139删除: <CodeBlock locale={locale} code={d.usage.gitGuardCode} />
140删除: <p class="prose usage__note" set:html={inline(d.usage.gitGuardNote)} />
141删除: <p class="prose usage__note" set:html={inline(d.usage.gitGuardEditor)} />
142删除: </div>
143删除:
144删除: <div class="usage__git">
145删除: <Heading as="h3" id="node" locale={locale} class="usage__sub">{d.usage.nodeTitle}</Heading>
146删除: <p class="prose usage__sub-body" set:html={inline(d.usage.nodeBody)} />
147删除: <CodeBlock locale={locale} code={d.usage.nodeCode} />
148删除: <p class="prose usage__note" set:html={inline(d.usage.nodeNote)} />
149删除: </div>
150删除: </div>
15152 </div>
15253</section>
15354
@@ -200,7 +101,6 @@ const d = t(locale);
200101 align-items: start;
201102 }
202103
203删除: .usage__custom,
204104 .usage__git {
205105 display: grid;
206106 gap: 1rem;
@@ -221,86 +121,6 @@ const d = t(locale);
221121 font-size: 0.88rem;
222122 }
223123
224删除: .usage__split th[scope='row'] {
225删除: padding: 0.72rem 1rem;
226删除: border-bottom: 1px solid var(--line);
227删除: text-align: left;
228删除: font-weight: 500;
229删除: vertical-align: top;
230删除: }
231删除:
232删除: .usage__split tbody tr:last-child th[scope='row'] {
233删除: border-bottom: 0;
234删除: }
235删除:
236删除: .usage__split th[scope='row'] code {
237删除: font-size: 0.8rem;
238删除: color: var(--accent);
239删除: white-space: nowrap;
240删除: }
241删除:
242删除: /* Reference tail ---------------------------------------------------------- */
243删除:
244删除: .usage__ref {
245删除: display: grid;
246删除: gap: 1rem;
247删除: align-content: start;
248删除: min-width: 0;
249删除: margin-top: clamp(2.5rem, 5vw, 4rem);
250删除: }
251删除:
252删除: .usage__groups {
253删除: display: grid;
254删除: grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
255删除: gap: clamp(1.5rem, 3vw, 2.5rem);
256删除: align-items: start;
257删除: }
258删除:
259删除: .usage__group {
260删除: display: grid;
261删除: align-content: start;
262删除: min-width: 0;
263删除: }
264删除:
265删除: .usage__group-title {
266删除: margin-bottom: 0.75rem;
267删除: font-family: var(--font-mono);
268删除: font-size: 0.72rem;
269删除: font-weight: 500;
270删除: letter-spacing: 0.12em;
271删除: text-transform: uppercase;
272删除: color: var(--ink-3);
273删除: }
274删除:
275删除: .usage__group-title--spaced {
276删除: margin-top: clamp(1.5rem, 3vw, 2.25rem);
277删除: }
278删除:
279删除: /* No thead on the command tables: the group title names the block, and a
280删除: repeated "Command / What it does" row on five tables is noise. */
281删除: .usage__commands th[scope='row'] {
282删除: padding: 0.72rem 1rem;
283删除: border-bottom: 1px solid var(--line);
284删除: text-align: left;
285删除: vertical-align: top;
286删除: font-family: var(--font-mono);
287删除: font-size: 0.83rem;
288删除: font-weight: 450;
289删除: white-space: nowrap;
290删除: color: var(--accent);
291删除: }
292删除:
293删除: .usage__commands tbody tr:last-child th[scope='row'] {
294删除: border-bottom: 0;
295删除: }
296删除:
297删除: .usage__default {
298删除: font-family: var(--font-mono);
299删除: font-size: 0.78rem;
300删除: color: var(--ink-3);
301删除: white-space: nowrap;
302删除: }
303删除:
304124 @media (max-width: 62rem) {
305125 .usage__split {
306126 grid-template-columns: minmax(0, 1fr);
修改www/src/i18n/en.ts+190 −186看文件
@@ -37,16 +37,16 @@ export const en = {
3737 title: 'Give agents a machine they can wreck.',
3838 titleAccent: 'Keep yours.',
3939 lede:
40删除: 'AI coding agents need broad permissions to be useful: they install dependencies, run builds, start servers. agent-vm gives each project its own Linux VM and runs the agent in there instead. Your SSH keys, your browser sessions and the rest of your disk are invisible to it.',
40新增: 'agent-vm runs AI coding agents with every permission, in a Linux VM per project. Your SSH keys, your browser sessions and the rest of your disk are invisible to them.',
4141 installLabel: 'Get started',
4242 ctaPrimary: 'Install it',
4343 ctaSecondary: 'How it works',
4444 meta: 'MIT licensed · macOS, Linux, Windows (experimental) · built on Lima',
4545 terminalCaption:
46删除: 'Only the project directory is mounted. One VM per directory, created on first use and reused afterwards.',
46新增: 'Only the project directory is mounted.',
4747 points: [
4848 {
49删除: title: 'Lima is the only host dependency',
49新增: title: '[Lima](https://lima-vm.io/) is the only host dependency',
5050 body: 'No Node, no npm, no Docker Desktop on your machine: the toolchain lives in the VM. On Linux, Lima also needs QEMU and access to KVM.',
5151 },
5252 {
@@ -58,8 +58,8 @@ export const en = {
5858 body: 'A dev server started in the VM answers on localhost at the same port. Lima does it; there is no flag and no config.',
5959 },
6060 {
61删除: title: 'Five agents, one command',
62删除: body: 'OpenCode, Claude Code, Codex CLI and Mistral Vibe, each launched with its own auto-approve flag. Pi, opt-in, never asks in the first place.',
61新增: title: 'Batteries included, root for the rest',
62新增: body: 'The base VM ships dev tools, Docker, headless Chromium and the agents, picked in a setup wizard. The agent is root in its VM: it installs whatever else it needs.',
6363 },
6464 ],
6565 },
@@ -72,7 +72,7 @@ export const en = {
7272 reasons: [
7373 {
7474 title: 'Dependency installs run arbitrary code',
75删除: body: 'Every `npm install` executes third-party install scripts before anyone has read them. In 2025 the Shai-Hulud worm used that to spread through thousands of npm packages: it collected npm tokens, GitHub PATs, SSH keys and cloud credentials, then republished itself using them. Nothing about the installs looked unusual.',
75新增: body: 'npm ran every package’s install scripts by default until npm 12 (July 2026), pip still runs a source package’s build, Cargo its `build.rs`, and your tests then run whatever got installed. In 2025 the Shai-Hulud worm spread through thousands of npm packages that way: it collected npm tokens, GitHub PATs, SSH keys and cloud credentials, then republished itself using them.',
7676 },
7777 {
7878 title: 'Approval prompts stop working',
@@ -84,7 +84,7 @@ export const en = {
8484 },
8585 ],
8686 closing:
87删除: 'A VM limits what a mistake or a compromised agent can reach: your source tree and whatever you put in [its env file](#share-secrets-across-vms), but not your SSH keys, your git credentials or your browser sessions. [`--readonly`](#tighten-the-session) narrows it further, and the host enforces it, so root in the guest cannot lift it. The shared project is guarded too: with a Lima that has `sshfs.readonlyNames`, every `.git` in it is read-only for the VM, so the agent cannot plant a hook or a config in `.git` that git on your host would then run (see [Protecting .git](#git) below). What stays open is the network: the agent can send data anywhere, and Lima puts your host loopback at `192.168.5.2`, so a dev database listening on localhost is reachable from the VM.',
87新增: 'A VM limits what a mistake or a compromised agent can reach to the project and what you hand it, such as [its env file](#share-secrets-across-vms). What stays open is the network: see [Security](#security).',
8888 },
8989
9090 install: {
@@ -97,7 +97,7 @@ export const en = {
9797 { name: 'macOS, Linux or Windows', note: 'Windows is experimental: Git Bash, QEMU and Lima for Windows required.', href: '' },
9898 {
9999 name: 'Lima',
100删除: note: 'agent-vm setup offers to install it with Homebrew, as a build that keeps `.git` read-only until that is merged upstream. On Linux, QEMU and KVM too. On Windows, QEMU (winget) and the Windows Hypervisor Platform feature; setup offers the Lima download.',
100新增: note: '`agent-vm setup` offers to install it. On Linux, QEMU and KVM too; on Windows, QEMU.',
101101 href: 'https://lima-vm.io/docs/installation/',
102102 },
103103 {
@@ -132,38 +132,21 @@ export const en = {
132132 id: 'windows',
133133 label: 'Windows',
134134 code: '# in Git Bash (experimental)\nwinget install SoftwareFreedom.QEMU\ncurl -fsSL https://www.agent-vm.org/install.sh | sh',
135删除: note: 'Experimental. Run it in Git Bash: it is the curl installer, and `agent-vm setup` then offers a Lima build for Windows. Take it: with Lima’s own, the shares use `reverse-sshfs`, which does not keep the VM to them, and root in the VM may reach your SSH keys and the rest of your disk (a start says so, and asks). VMs also need Windows’ own hypervisor, the Windows Hypervisor Platform feature. It is off by default and only an administrator can turn it on, once (Windows Features, or `DISM /Online /Enable-Feature /FeatureName:HypervisorPlatform /All`, then a reboot). On a managed laptop, that is a request to IT. Without it, VMs do not start.',
135新增: note: 'Experimental, in Git Bash. `agent-vm setup` then offers a Lima build for Windows: take it, Lima’s own does not keep the VM to its shares. VMs also need the Windows Hypervisor Platform feature, which an administrator turns on once: see [Windows and WSL](#windows-and-wsl).',
136136 },
137137 ],
138138 steps: [
139139 {
140140 title: 'Build the base template',
141删除: body: 'Run once. Without Lima, it first offers to install it, the build that keeps `.git` read-only for the VMs. Its wizard then offers a default set; press Enter to accept it. After it, a Lima that cannot keep `.git` read-only gets the same offer. Then it creates a Debian 13 VM, installs the toolchain and the agents, and keeps it, stopped, as a reusable template.',
141新增: body: 'Run once. Without Lima, or without the build that keeps `.git` [read-only](#git), it first offers to install it. A wizard then picks what goes in the template: Enter takes the default set (see [What is in the VM](#what-is-in-the-vm)). It builds a Debian 13 VM with it and keeps it, stopped, as the template.',
142142 code: 'agent-vm setup',
143143 },
144144 {
145145 title: 'Run an agent in your project',
146删除: body: 'Clones the template into a VM for this directory, mounts the working directory, launches the agent with permissions already granted. Before the VM boots, agent-vm may stop on a security question, such as a git setting it offers to make: see [Protecting .git](#git).',
146新增: body: 'Clones the template into a VM for this directory, mounts the directory and launches the agent with permissions already granted. A start may first stop on a security question: see [Protecting .git](#git).',
147147 code: 'cd your-project\nagent-vm opencode # or: agent-vm claude',
148148 },
149149 ],
150删除: preinstallTitle: 'Choosing what goes in the template',
151删除: preinstallBody:
152删除: 'Lowercase, comma-separated. `default` is everything except Ruby, Rust, Go, Pi and the Playwright MCP. `all` is everything, `none` is nothing. `codex` and `pi` pull in `node`, and so does `mcp-chrome` when `chromium` and an agent are selected, because those installs use `npm` and `npx`. Both MCP servers are skipped without `node` and `chromium`. With no terminal attached, the wizard is skipped and the default set is installed. `setup` also takes `--disk`, `--memory` and `--cpus` for the template itself.',
153删除: preinstallNames:
154删除: 'python · node · ruby · rust · golang · docker · chromium · gh · claude · opencode · codex · vibe · pi · mcp-chrome · mcp-playwright',
155删除: preinstallCode:
156删除: 'agent-vm setup # interactive wizard\nagent-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=node,chromium,opencode # no MCP wired in\nagent-vm setup --disk 50 --memory 16 --cpus 8 # heavier workloads',
157删除: setupHeaders: ['Flag', 'What it does', 'Default'],
158删除: setup: [
159删除: ['--disk GB', 'Base template disk size.', '10'],
160删除: ['--memory GB', 'Base template memory.', '3'],
161删除: ['--cpus N', 'Base template CPU count.', '1'],
162删除: ['--preinstall=LIST', 'Install only this comma-separated subset. Skips the wizard.', 'wizard'],
163删除: ],
164删除: updateTitle: 'Updating',
165删除: updateBody:
166删除: 'Installed with curl: run the installer again. With Homebrew: `brew upgrade agent-vm`. From a clone: `git pull`, nothing to reinstall. `agent-vm uninstall` removes the link that curl and git installs make. From 0.1.0, run `agent-vm setup` once: a VM from a base 0.1.0 built boots once more on its next start to install `sshfs`, which keeping `.git` read-only needs, and `--reset` gives it the new base. That migration will be removed in a future release.',
167150 },
168151
169152
@@ -171,7 +154,7 @@ export const en = {
171154 eyebrow: 'Usage',
172155 title: 'Everyday commands.',
173156 lede:
174删除: 'Every VM is keyed to a directory, `--scratch` ones excepted. Run an agent command twice in the same folder and you get the same machine back, with its packages, its containers and its logins intact.',
157新增: 'Run them from your project directory. The [Reference](#reference) lists every command, option and file.',
175158 cards: [
176159 {
177160 title: 'Run an agent',
@@ -180,66 +163,40 @@ export const en = {
180163 },
181164 {
182165 title: 'Reach the dev server',
183删除: body: 'Lima forwards ports opened inside the VM to the host. Start a server from the agent or from a shell and it answers on localhost at the same port, in your browser. It also means that anything the agent listens on inside the VM shows up on your own localhost: treat those ports as the agent’s.',
184删除: code: 'agent-vm run npm run dev # then open localhost:5173\nagent-vm shell # same for docker compose up',
166新增: body: 'Lima forwards every port opened in the VM to the same port on your localhost, so a dev server opens in your browser as usual. Treat those ports as the agent’s.',
167新增: code: 'agent-vm run npm run dev # then open localhost:5173\nagent-vm run docker compose up',
185168 },
186169 {
187170 title: 'Get inside',
188171 body: 'A shell to poke around, or a single command when you already know what you want.',
189172 code: 'agent-vm shell # zsh in the VM\nagent-vm run npm install # one-off command\nagent-vm run --tty opencode # allocate a PTY for TUIs\nagent-vm sh -c "ls -la | grep config"',
190173 },
191删除: {
192删除: title: 'Connect an IDE over SSH',
193删除: body: 'VS Code Remote-SSH, JetBrains Gateway or a GUI agent can keep their window on the host and run the rest in the VM. Lima writes an SSH config per VM with the current port, under the alias `agent-vm info` prints as `ssh_host`. Put the lines below at the top of `~/.ssh/config`, above any `Host *`: ssh takes the first value it finds, and a `ForwardAgent yes` there would hand the VM every key in your SSH agent, as would VS Code’s `remote.SSH.enableAgentForwarding` without these lines. For a tool that saves the port instead of the alias, `--ssh-port` fixes it (`0` goes back to a new one on each start).',
194删除: code: '# top of ~/.ssh/config\nInclude ~/.lima/*/ssh.config\nHost lima-agent-vm-*\n ForwardAgent no\n ForwardX11 no\n\nagent-vm info | grep ^ssh_host # the alias to use\nagent-vm --ssh-port 2222 shell # a fixed port',
195删除: },
196174 {
197175 title: 'Manage the fleet',
198176 body: 'The current directory’s VM is marked with `>` in `list`. If a directory is renamed, `list` is the only way to find its VM again.',
199删除: code: 'agent-vm list # all VMs, current one marked, base of each\nagent-vm stop # stop, keep the disk\nagent-vm rm # stop and delete\nagent-vm destroy-all # every VM, base template included\nagent-vm doctor # what is wrong, and what to run',
177新增: code: 'agent-vm list # every VM, the current one marked\nagent-vm stop # stop, keep the disk\nagent-vm rm # stop and delete\nagent-vm destroy-all # every VM, base template included\nagent-vm doctor # what is wrong, and what to run',
200178 },
201179 {
202180 title: 'Tighten the session',
203删除: body: 'Useful for review and audit work, where the agent has no business writing anything. `--readonly` makes every host share read-only: the project and the [`~/.agent-vm/volumes`](#customisation-files) entries, `rw` ones included, since a writable volume containing the project would be a second way in. It is set on the Lima shares, so the host refuses the writes (the hypervisor, or Lima’s SFTP server on the shares that protect `.git`) and root in the VM cannot lift it. Where Lima would only apply it inside the guest, agent-vm refuses the flag: `reverse-sshfs` without `readonlyNames`, and virtiofs under QEMU. A running VM in the other mode is restarted, asked first (no by default): declined, or with no terminal, the command fails, in either direction, so another session’s read-only VM is not made writable under it. The VM’s own disk, `$HOME` and `/tmp` stay writable, so the agent can still install packages and write caches. Anything it writes inside the project fails, including `node_modules`, its own state directory, and whatever a runtime script writes: the mode is applied before those run. `--scratch` goes further: a new VM with nothing of yours mounted, which the agent fills from the network (a `git clone` with a token from `agent-vm env`), deleted when the command ends; on a terminal it asks first, and a no opens a shell in the VM. Its work leaves the same way, as a push or a pull request. Logins do not survive it, so agents need their token in `agent-vm env`: `ANTHROPIC_API_KEY`, or `CLAUDE_CODE_OAUTH_TOKEN` from `claude setup-token`.',
204删除: code: 'agent-vm --readonly shell # nothing on the host is writable\nagent-vm --scratch claude # nothing of yours mounted, deleted on exit\nagent-vm --rm run npm test # destroy the VM on exit',
181新增: body: '`--readonly` makes every host share read-only, `rw` volumes included, and the host enforces it: root in the VM cannot lift it. Packages still install on the VM’s own disk, but nothing lands in the project. `--scratch` mounts nothing of yours: the agent clones the code with a token from `agent-vm env`, pushes its work, and the VM is deleted at exit.',
182新增: code: 'agent-vm --readonly shell # nothing on the host writable\nagent-vm --scratch claude # nothing mounted, gone at exit\nagent-vm --rm run npm test # destroy the VM on exit',
205183 },
206184 {
207185 title: 'Resize on the fly',
208删除: body: 'A new VM gets the base template’s: 10 GB of disk, 3 GB of memory and 1 CPU, unless `setup` was given others. Pass a flag with another value and the VM is stopped, reconfigured and restarted; a running one is asked about first (no by default), and declined, or with no terminal, it keeps its settings. Disk can grow, never shrink. CPU and memory are clamped to half the host per VM, which is not a budget across all of them: VMs persist, so several running at once add up. `agent-vm list` shows what you have, `rm` and `destroy-all` reclaim it.',
186新增: body: 'A new VM gets the template’s 10 GB of disk, 3 GB of memory and 1 CPU. Pass another value and the VM is reconfigured, after asking if it is running. Disk only grows. CPU and memory are capped at half the host, per VM.',
209187 code: 'agent-vm --disk 50 opencode\nagent-vm --memory 16 --cpus 8 shell\nagent-vm --reset claude # re-clone from the base template',
210188 },
211189 {
212190 title: 'Share secrets across VMs',
213删除: body: 'Plain `KEY=value` lines in `~/.agent-vm/env`, pushed into every VM on every invocation and loaded in its shells. Use the subcommands rather than editing the file by hand: a shell sources it, so one unescaped quote breaks every secret in the file, not just that line.',
214删除: code: 'agent-vm env set GH_TOKEN # paste it: not shown, not in history\nagent-vm env list # names only, never values\nagent-vm env has ANTHROPIC_API_KEY\n\n# scoped to this project only\nagent-vm project-env set SOME_PATH ./config',
191新增: body: '`KEY=value` lines in `~/.agent-vm/env`, pushed into every VM on each command. Everything in the VM can read them: use narrow tokens you can revoke. Edit with `env set`, since one bad quote in the file breaks all of it.',
192新增: code: 'agent-vm env set GH_TOKEN # pasted unseen, not in history\nagent-vm env list # names only, never values\nagent-vm env has ANTHROPIC_API_KEY\n\n# scoped to this project only\nagent-vm project-env set SOME_PATH ./config',
215193 },
216194 {
217删除: title: 'Ask from a script',
218删除: body: 'If you wrap agent-vm from another tool, use these rather than parsing human-facing output or reading `~/.agent-vm` directly: VM naming, the template name and the state files are implementation details and will change. `version --min` exits `0` when the engine is recent enough, `1` with a message when it is older, and `2` when the call itself is malformed, so a typo in the required version cannot read as "engine too old". One catch: an engine predating `--min` ignores the flag and exits `0`. In `info`, booleans are `1` or `0` and anything undeterminable reads `unknown`; all four commands work without Lima installed. A start with no terminal stops where it would ask a security question: `security_questions` in `info` lists them beforehand, and `--unsafe-disable-security-prompts` accepts them, or `--readonly` avoids them. A restart it would ask about fails too: `--readonly` on a running writable VM, or the other way round, and a resize of a running VM is left unapplied.',
219删除: code: 'agent-vm version --min 0.2.0 || exit 1 # silent when OK\nagent-vm name [dir] # VM name for a directory\nagent-vm info [dir] # one key=value per line\nagent-vm help # the built-in help\n\n# info keys: version, template, state_dir,\n# project_env, dir, vm_name, base_exists,\n# vm_exists, vm_running, vm_stale,\n# ssh_host, ssh_config, git_protected,\n# security_questions',
195新增: title: 'Connect an IDE over SSH',
196新增: body: 'VS Code Remote-SSH, JetBrains Gateway or a GUI agent can work in the VM over SSH, through the alias `agent-vm info` prints as `ssh_host`. Put these lines at the top of `~/.ssh/config`: a `ForwardAgent yes` found before them would hand the VM your SSH keys. `--ssh-port` pins the port for tools that save it.',
197新增: code: '# top of ~/.ssh/config\nInclude ~/.lima/*/ssh.config\nHost lima-agent-vm-*\n ForwardAgent no\n ForwardX11 no\n\nagent-vm info | grep ^ssh_host # the alias to use\nagent-vm --ssh-port 2222 shell # a fixed port',
220198 },
221199 ],
222删除: customTitle: 'Customisation files',
223删除: customLede:
224删除: 'Six optional files, none of them needed to get started. The per-user ones sit in `~/.agent-vm/`, the per-project ones in the project itself.',
225删除: customTable: {
226删除: headers: ['File', 'Scope', 'Runs when'],
227删除: rows: [
228删除: ['~/.agent-vm/env', 'All VMs', 'Pushed in on every invocation'],
229删除: ['~/.agent-vm/volumes', 'All VMs, or the projects an entry names', 'Mounted at VM creation'],
230删除: ['~/.agent-vm/setup.sh', 'Base template', 'Once, during agent-vm setup'],
231删除: ['~/.agent-vm/runtime.sh', 'All VMs', 'Every command that enters a VM, first'],
232删除: ['.agent-vm.runtime.sh', 'Single project', 'Every command that enters its VM, after the global one'],
233删除: ['.agent-vm.env', 'Single project', 'Pushed in after the shared env, so it wins'],
234删除: ],
235删除: },
236删除: volumesTitle: 'Extra mounts: ~/.agent-vm/volumes',
237删除: volumesBody:
238删除: 'One `source[:destination][:mode][:project]` per line, `~` expanded on the left, `#` for comments. The mode is `ro` (default) or `rw`, and `rw` only works for directories. Without a destination, the path is mounted at the same place in the VM. A relative destination is inside the project, over whatever the project has there. The fourth field, after an explicit mode, limits the entry to the projects it matches, `*` matching anything. An entry that does not read that way is skipped with a warning, never mounted everywhere.',
239删除: volumesCode:
240删除: '# ~/.agent-vm/volumes\n~/.gitconfig # same path, read-only\n~/.cache/shared:/home/you.guest/.cache/shared:rw\n\n# only in ~/work/webapp, as its .claude, read-only\n~/.claude-vm/webapp:.claude:ro:~/work/webapp\n\n# every project under ~/work\n~/.cache/pip:/home/you.guest/.cache/pip:rw:~/work/*\n\n# same path, one project only\n~/datasets::ro:~/work/ml',
241删除: volumesNote:
242删除: 'Kept on your side and not in the project on purpose: the agent can write the project, and a mount list there would let it mount any host directory into its own VM. For the same reason, a relative destination that leaves the project with `..` or goes through a symlink in it is skipped. agent-vm creates a missing mount point in the project on your machine, so an empty `.claude` shows up there too. Changes apply to new VMs: `--reset` re-applies them.',
243200 gitTitle: 'Letting the agent commit',
244201 gitBody:
245202 'git reads its identity from the environment, so the shared env file covers it with no `git config` inside the VM. All four variables are needed: git refuses to commit without a committer, not just an author.',
@@ -249,24 +206,13 @@ export const en = {
249206 'These variables win over `git config`, in every repository of the VM: for per-repository identities, set `user.name` and `user.email` from a runtime script instead. `gh` picks up `GH_TOKEN` on its own, so `gh pr create` works with nothing else. Plain `git push` over HTTPS needs a credential helper: one `gh auth setup-git` line in your [runtime script](#customisation-files).',
250207 gitHumanTitle: 'That said, keep the commits human',
251208 gitHumanBody:
252删除: 'Being able to commit is not a reason to let it. A commit says you read the diff, so let the agent write the code, read it, and commit it yourself. With a Lima that [keeps `.git` read-only](#git), that is the only way: the agent cannot commit in the shared project, unless you turn the protection off, which gives it a way to run commands on your host.',
253删除: gitGuardTitle: 'Protecting .git',
254删除: gitGuardBody:
255删除: 'Git on your machine runs what a repository’s `.git/config` and hooks name: `core.fsmonitor` on every `git status`, hooks on commit. Your editor and shell prompt run `git status` on their own, so a VM able to write `.git` could run commands on your host within seconds, and nothing of it would show in `git diff`. With a Lima that has `sshfs.readonlyNames`, every `.git` in the shares is read-only for the VM, at any depth, and Lima’s SFTP server enforces it on the host: the agent reads the history but cannot commit. It is not merged upstream yet ([lima-vm/lima#5529](https://github.com/lima-vm/lima/issues/5529)), so `agent-vm setup` offers a build that has it. The shares then use `reverse-sshfs`, slower on many files (see [Node.js](#node)).',
256删除: gitGuardCode:
257删除: 'brew unlink lima; brew install sylvinus/tap/lima-sylvinus\nagent-vm doctor # where you stand\nagent-vm --unsafe-writable-git claude # let it commit anyway\n# no Homebrew: build github.com/sylvinus/lima\n# Windows (Git Bash): setup offers this download; by hand (AMD64 shown):\nbase=https://github.com/sylvinus/lima/releases/download/v2.3.0-sylvinus.2\ncurl -fsSLO "$base/lima-2.3.0-sylvinus.2-Windows-AMD64.zip" \\\n -fsSLO "$base/lima-additional-guestagents-2.3.0-sylvinus.2-Windows-AMD64.zip"\nsha256sum -c <<\'EOF\' # the checksums agent-vm pins\n053f3479b397628b79fe46b0268a50a7f1fc51073691d7d8bce78c9be2ae2787 lima-2.3.0-sylvinus.2-Windows-AMD64.zip\na0828aa4518e21c9519d341be9f32adf07cbeb74a3f8beadaa2f350c45b5933b lima-additional-guestagents-2.3.0-sylvinus.2-Windows-AMD64.zip\nEOF\nfor z in lima-*-Windows-AMD64.zip; do unzip -q -o "$z" -d ~/.local/share/lima-sylvinus; done\nexport PATH="$HOME/.local/share/lima-sylvinus/bin:$PATH" # and in ~/.bash_profile',
258删除: gitGuardNote:
259删除: 'Every `.hg` is read-only too, and so is the folder each `core.hooksPath` points to in the project (`.husky` for husky). A running VM gets new protections at its next start, which agent-vm offers. The `.git` name is not the only way in, though. A folder the VM fills with git’s internal files (`HEAD`, `objects/`, `refs/`, a `config`) is a repository to git under any name, and git runs the commands its `config` names, such as its pager as soon as you type `git log` there: `git config --global safe.bareRepository explicit` makes git ignore such folders. A config file included from the project, or a setting whose command is a file in it, is the same kind of door. Before a VM boots with writable shares, agent-vm stops on each of these it finds, and on a Lima without `readonlyNames`, and asks whether to go on: Enter, or no terminal, aborts. It offers to set `safe.bareRepository` for you. `doctor` lists them, and `info` names them for scripts. `--unsafe-writable-git`, or `AGENT_VM_UNSAFE_WRITABLE_GIT=1` in your shell, turns the protection off so the agent can commit, and reopens that path to your host: a warning says so on every run.',
260删除: gitGuardEditor:
261删除: 'Your editor is the same kind of door. The agent can write a `.vscode/tasks.json`, workspace settings, an `eslint.config.js` or a `build.rs`, which VS Code and its extensions can run. When VS Code asks, leave the project untrusted (Restricted Mode), and do not trust a parent folder: that trusts everything below it. JetBrains IDEs have the same choice (Safe Mode). The rest is in [Security](#what-else-on-your-machine-reads-the-project).',
262删除: nodeTitle: 'Node.js: node_modules in the VM',
263删除: nodeBody:
264删除: 'Hundreds of thousands of files are slow across the share, and native packages differ between macOS and Linux anyway. Mount a folder of the VM’s own disk over `node_modules` from the project’s [runtime script](#customisation-files), which runs on every command:',
265删除: nodeCode:
266删除: '#!/bin/bash\n# .agent-vm.runtime.sh\nset -e\nmkdir -p "$HOME/node_modules" node_modules\nmountpoint -q node_modules ||\n sudo mount --bind "$HOME/node_modules" node_modules',
267删除: nodeNote: 'The host sees an empty `node_modules`, or keeps its own: install there too if your editor needs the packages. `--reset` and `rm` delete the VM’s copy. In a workspace, the root `node_modules` holds nearly everything (npm hoists, pnpm keeps its store in `node_modules/.pnpm`); repeat the mount for a package with a large one of its own. A dev server in the VM may need polling to see edits made on the host (Vite: `server.watch.usePolling`).',
268删除: refTitle: 'Every command',
269删除: refNote: 'Call the command, do not source the file: a shell function is not inherited by child processes, so a tool that spawns a shell cannot see one.',
209新增: 'Being able to commit is not a reason to let it. A commit says you read the diff, so let the agent write the code, read it, and commit it yourself. With `.git` [protected](#git), that is the only way.',
210新增: },
211新增:
212新增: reference: {
213新增: eyebrow: 'Reference',
214新增: title: 'Every command, option and file.',
215新增: lede: 'What the sections above leave out: the full command set, the configuration files and variables, and what a script can rely on.',
270216 commandGroups: [
271217 {
272218 title: 'Run an agent',
@@ -275,7 +221,7 @@ export const en = {
275221 ['claude [args]', 'Run Claude Code with `--dangerously-skip-permissions`.'],
276222 ['codex [args]', 'Run Codex CLI with `--dangerously-bypass-approvals-and-sandbox`.'],
277223 ['vibe [args]', 'Run Mistral Vibe with `--agent auto-approve`.'],
278删除: ['pi [args]', 'Run Pi, which has no permission prompts. Opt-in at setup.'],
224新增: ['pi [args]', 'Run Pi, which has no permission prompts.'],
279225 ],
280226 },
281227 {
@@ -300,7 +246,7 @@ export const en = {
300246 rows: [
301247 ['install', 'Put `agent-vm` on your `PATH`, from the clone: `./agent-vm.sh install`. The curl installer runs it for you.'],
302248 ['uninstall', 'Remove that link. VMs and `~/.agent-vm` stay.'],
303删除: ['setup', 'Create the base VM template. Run once.'],
249新增: ['setup', 'Build the base template. `--preinstall=LIST` skips the wizard ([What is in the VM](#what-is-in-the-vm)); `--disk`, `--memory` and `--cpus` size it.'],
304250 ['env <sub>', '`set`, `get`, `has`, `unset`, `list` on the secrets shared by every VM.'],
305251 ['project-env <sub>', 'Same subcommands, scoped to this project. Wins over the shared file.'],
306252 ['help', 'Show the built-in help.'],
@@ -324,64 +270,119 @@ export const en = {
324270 ['--cpus N', 'CPU count. Clamped to half the host, per VM.', 'the template’s (1)'],
325271 ['--ssh-port N', 'Fixed host port for the VM’s SSH, for tools that save it. `0` goes back to a new one on each start. Restarts a running VM, asked first.', 'a new one per start'],
326272 ['--reset', 'Destroy and re-clone the VM from the base template.', 'off'],
327删除: ['--readonly', 'Every host share read-only (project and volumes), host-side. Restarts a running VM, asked first.', 'off'],
273新增: ['--readonly', 'Every host share read-only, project and volumes. Restarts a running VM, asked first.', 'off'],
328274 ['--unsafe-writable-git', 'Leave every `.git` writable so the agent can commit, with a warning. See [Protecting .git](#git).', 'off'],
329删除: ['--unsafe-disable-security-prompts', 'Go on where a start would stop to ask a security question (see [Protecting .git](#git)), without offering to change your git config. The warnings are still printed. For scripts with no terminal; `AGENT_VM_UNSAFE_DISABLE_SECURITY_PROMPTS=1` in your shell does the same.', 'off'],
275新增: ['--unsafe-disable-security-prompts', 'Go on where a start would stop on a security question (see [Protecting .git](#git)). The warnings are still printed. Same as `AGENT_VM_UNSAFE_DISABLE_SECURITY_PROMPTS=1`.', 'off'],
330276 ['--rm', 'Destroy the VM once the command exits.', 'off'],
331删除: ['--scratch', 'A new VM with nothing of yours mounted, neither the project nor the volumes, deleted when the command ends, Ctrl-C included. On a terminal, the deletion is asked first (yes by default): no opens a shell in the VM, and leaving it asks again. The project’s env file and runtime script stay out; `~/.agent-vm/env` and `runtime.sh` go in. The folder’s own VM is left alone, and several can run at once. A run killed outright leaves its VM behind: the next `--scratch` run deletes it, and `doctor` lists it until then. See [Tighten the session](#tighten-the-session).', 'off'],
277新增: ['--scratch', 'A new VM with nothing of yours mounted, deleted when the command ends (asked first on a terminal). `~/.agent-vm/env` and `runtime.sh` go in, the project’s files do not. Several can run at once.', 'off'],
332278 ],
333删除: },
334删除:
335删除:
336删除:
337删除: reference: {
338删除: eyebrow: 'Reference',
339删除: title: 'The details.',
340删除: lede: 'What the cards above leave out: installer options, what setup does, the configuration files, and the variables for scripts.',
279新增: envTitle: 'Environment variables',
280新增: envNote: 'Read from your shell, never from a file of the project.',
281新增: envHeaders: ['Variable', 'What it does', 'Default'],
282新增: env: [
283新增: ['AGENT_VM_STATE_DIR', 'Moves `~/.agent-vm`, for tests, CI or a second install, without moving `HOME` (and Lima’s VMs with it).', '~/.agent-vm'],
284新增: ['AGENT_VM_PROJECT_ENV', 'The project’s env file, relative to the project or absolute.', '.agent-vm.env'],
285新增: ['AGENT_VM_PROJECT_RUNTIME', 'The project’s runtime script, relative to the project or absolute. Outside the project, the host reads it.', '.agent-vm.runtime.sh'],
286新增: ['AGENT_VM_HOST_SHARE', 'CPU and memory per VM are capped at the host’s divided by this. `1`: the whole host.', '2'],
287新增: ['AGENT_VM_BIN_DIR', 'Where `install` links `agent-vm`.', '~/.local/bin'],
288新增: ['AGENT_VM_LIMA_DIR', 'Windows: where `setup` puts its Lima build.', '~/.local/share/lima-sylvinus'],
289新增: ['AGENT_VM_QEMU_DIR', 'Windows: where QEMU is, when not on `PATH`.', '/c/Program Files/qemu'],
290新增: ['AGENT_VM_UNSAFE_WRITABLE_GIT', '`1`: same as `--unsafe-writable-git`.', 'unset'],
291新增: ['AGENT_VM_UNSAFE_DISABLE_SECURITY_PROMPTS', '`1`: same as `--unsafe-disable-security-prompts`.', 'unset'],
292新增: ],
293新增: customTitle: 'Customisation files',
294新增: customLede:
295新增: 'Six optional files, none of them needed to get started. The per-user ones sit in `~/.agent-vm/`, the per-project ones in the project itself.',
296新增: customTable: {
297新增: headers: ['File', 'Scope', 'Runs when'],
298新增: rows: [
299新增: ['~/.agent-vm/env', 'All VMs', 'Pushed in on every invocation'],
300新增: ['~/.agent-vm/volumes', 'All VMs, or the projects an entry names', 'Mounted at VM creation'],
301新增: ['~/.agent-vm/setup.sh', 'Base template', 'Once, during agent-vm setup'],
302新增: ['~/.agent-vm/runtime.sh', 'All VMs', 'Every command that enters a VM, first'],
303新增: ['.agent-vm.runtime.sh', 'Single project', 'Every command that enters its VM, after the global one'],
304新增: ['.agent-vm.env', 'Single project', 'Pushed in after the shared env, so it wins'],
305新增: ],
306新增: },
307新增: volumesTitle: 'Extra mounts: ~/.agent-vm/volumes',
308新增: volumesBody:
309新增: 'One `source[:destination][:mode][:project]` per line, `~` expanded on the left, `#` for comments. The mode is `ro` (default) or `rw`, and `rw` only works for directories. Without a destination, the path is mounted at the same place in the VM; a relative one is inside the project. The fourth field limits the entry to the projects it matches, `*` matching anything.',
310新增: volumesCode:
311新增: '# ~/.agent-vm/volumes\n~/.gitconfig # same path, read-only\n~/.cache/shared:/home/you.guest/.cache/shared:rw\n\n# only in ~/work/webapp, as its .claude, read-only\n~/.claude-vm/webapp:.claude:ro:~/work/webapp\n\n# every project under ~/work\n~/.cache/pip:/home/you.guest/.cache/pip:rw:~/work/*\n\n# same path, one project only\n~/datasets::ro:~/work/ml',
312新增: volumesNote:
313新增: 'The list lives on your side, not in the project: the agent writes the project, and could otherwise mount any host folder into its VM. A relative destination that leaves the project, through `..` or a symlink, is skipped. Changes apply to new VMs: `--reset` re-applies them.',
314新增: nodeTitle: 'Node.js: node_modules in the VM',
315新增: nodeBody:
316新增: 'Hundreds of thousands of files are slow across the share, and native packages differ between macOS and Linux anyway. Mount a folder of the VM’s own disk over `node_modules` from the project’s [runtime script](#customisation-files), which runs on every command:',
317新增: nodeCode:
318新增: '#!/bin/bash\n# .agent-vm.runtime.sh\nset -e\nmkdir -p "$HOME/node_modules" node_modules\nmountpoint -q node_modules ||\n sudo mount --bind "$HOME/node_modules" node_modules',
319新增: nodeNote: 'The host sees an empty `node_modules`, or keeps its own: install there too if your editor needs the packages. In a workspace, repeat the mount for a package with a large `node_modules` of its own. A dev server in the VM may need polling to see edits made on the host (Vite: `server.watch.usePolling`).',
320新增: scriptsTitle: 'From a script',
321新增: scriptsParas: [
322新增: 'Use these commands rather than parsing human-facing output or reading `~/.agent-vm`: VM names and state files are implementation details. All of them work without Lima.',
323新增: '`version --min` exits `0` when recent enough, `1` when older, `2` on a malformed call; an engine predating `--min` ignores it and exits `0`. In `info`, booleans are `1` or `0`, `unknown` when undeterminable, and `base_exists=1` means the template is usable.',
324新增: 'A start asks its questions only when stderr is a terminal: otherwise it stops there. `security_questions` in `info` names them beforehand (`lima`, `lima-unknown`, `hooks`, `git-config`, `bare-repo` or `none`), and `--unsafe-disable-security-prompts` accepts them once the user agreed.',
325新增: ],
326新增: scriptsCode:
327新增: 'agent-vm version --min 0.2.0 || exit 1 # silent when OK\nagent-vm name [dir] # VM name for a directory\nagent-vm info [dir] # one key=value per line\n\n# info keys: version, template, state_dir,\n# project_env, dir, vm_name, base_exists,\n# vm_exists, vm_running, vm_stale,\n# ssh_host, ssh_config, git_protected,\n# security_questions',
341328 groups: [
342329 {
343删除: title: 'Install and setup',
330新增: title: 'Install and update',
344331 topics: [
345332 {
346333 title: 'Installer options',
347334 paras: [
348删除: 'Options go after `sh -s --`: `--version X.Y.Z`, `--git` for a clone of `main`, `--dir DIR` for another place than `~/.local/share/agent-vm` (or `$XDG_DATA_HOME/agent-vm`). To read the installer first, download it, then run it with `sh`.',
349删除: 'It ends with `agent-vm install`, which links `agent-vm` into `~/.local/bin` (`AGENT_VM_BIN_DIR` changes it), or writes a small launcher where Git Bash makes no symlinks. The command works from any shell, fish included: the `source .../agent-vm.sh` line earlier versions added to your shell rc is no longer needed, and `install` says so when it finds one. `./install.sh` remains as a wrapper, for now.',
335新增: 'Options go after `sh -s --`: `--version X.Y.Z`, `--git` for a clone of `main`, `--dir DIR` instead of `~/.local/share/agent-vm`. To read the installer first, download it, then run it with `sh`.',
350336 ],
351337 list: [],
352删除: code: 'curl -fsSL https://www.agent-vm.org/install.sh | sh -s -- --dir ~/tools/agent-vm\ncurl -fsSLO https://www.agent-vm.org/install.sh && sh install.sh',
338新增: code: 'curl -fsSL https://www.agent-vm.org/install.sh |\n sh -s -- --dir ~/tools/agent-vm\n\n# read it first\ncurl -fsSLO https://www.agent-vm.org/install.sh\nsh install.sh',
353339 },
354340 {
355删除: title: 'What setup does',
341新增: title: 'Updating',
356342 paras: [
357删除: 'The wizard first offers the default set; answer `n` to be asked about each component. Creating the VM (the first run downloads a Debian image) and installing packages show their last 10 lines, in place; the full output goes to `~/.agent-vm/setup.log`.',
358删除: 'The `mcp-*` names wire an MCP server into every installed agent but Pi, which has no MCP support. Leave them out to keep the agents’ MCP config untouched, when MCP servers are managed per project. `mcp-playwright` does not pull in `node`: list it too.',
359删除: 'Running `setup` again rebuilds the template, not the existing VMs: agent-vm warns when a VM comes from an older template, and `--reset` re-clones it. An interrupted `setup` leaves an unusable template, which `info` reports as `base_exists=0`; run `setup` again.',
343新增: 'Run the curl installer again, `brew upgrade agent-vm`, or `git pull` in a clone. `agent-vm uninstall` removes the link; VMs and `~/.agent-vm` stay.',
344新增: 'Running `setup` again rebuilds the template, not the VMs cloned from it: agent-vm warns about those, and `--reset` re-clones one. Its full log is in `~/.agent-vm/setup.log`.',
345新增: 'From 0.1.0, run `agent-vm setup`: until then, each VM from a base 0.1.0 built boots once more to install `sshfs`.',
360346 ],
361347 list: [],
362348 code: '',
363349 },
364350 {
365删除: title: 'Windows, WSL and paths',
351新增: title: 'Windows and WSL',
366352 paras: [
367删除: 'On Windows, `setup` puts the Lima build in `~/.local/share/lima-sylvinus` (`AGENT_VM_LIMA_DIR` moves it) and looks for QEMU in `/c/Program Files/qemu` when it is not on `PATH` (`AGENT_VM_QEMU_DIR` points elsewhere).',
368删除: 'In WSL2, KVM needs nested virtualization, which the Windows host has to pass through; WSL1 cannot run VMs. `setup` and `doctor` say which case you are in.',
369删除: 'Lima cannot mount a path containing whitespace, and agent-vm refuses one, as it does a path with a quote, a backslash or a control character. iCloud Drive paths contain spaces: go through a symlink.',
353新增: 'VMs need the Windows Hypervisor Platform feature. It is off by default and only an administrator can turn it on, once, in Windows Features or with the command below, then a reboot. On a managed laptop, that is a request to IT.',
354新增: 'In WSL2, KVM needs nested virtualization from the Windows host; WSL1 cannot run VMs.',
370355 ],
371356 list: [],
372删除: code: 'ln -s ~/Library/Mobile\\ Documents/com~apple~CloudDocs/Dev ~/Dev\ncd ~/Dev/your-project && agent-vm claude',
357新增: code: '# in PowerShell as administrator, then reboot\nDISM /Online /Enable-Feature `\n /FeatureName:HypervisorPlatform /All',
358新增: },
359新增: {
360新增: title: 'Paths',
361新增: paras: [
362新增: 'Paths with whitespace, quotes, backslashes or control characters are refused. iCloud Drive paths have spaces: go through a symlink.',
363新增: ],
364新增: list: [],
365新增: code: 'ln -s ~/Library/Mobile\\ Documents/com~apple~CloudDocs/Dev \\\n ~/Dev\ncd ~/Dev/your-project && agent-vm claude',
366新增: },
367新增: {
368新增: title: 'Ports and doctor',
369新增: paras: [
370新增: 'A port set with `--ssh-port` stays until `--reset` or `rm`. `doctor` prints no secret, so its output can go into an issue as is.',
371新增: ],
372新增: list: [],
373新增: code: '',
373374 },
374375 ],
375376 },
376377 {
377删除: title: 'Agents',
378新增: title: 'Agents and configuration',
378379 topics: [
379380 {
380381 title: 'How each agent runs',
381382 paras: [
382删除: 'Claude Code also gets bypass mode from managed settings (`/etc/claude-code/managed-settings.json`): it drops the command-line flag when it relaunches itself ([#72479](https://github.com/anthropics/claude-code/issues/72479)). OpenCode’s `--auto` approves every prompt not explicitly denied. For Pi, setup sets `defaultProjectTrust: "always"`, so a project’s `.pi/` extensions and skills load.',
383删除: 'Log in inside the VM (`claude login`, `gh auth login`): the login stays with that VM. Mounting your host credentials instead would hand your main login to everything in the VM.',
384删除: 'Lima passes `COLORTERM` into the VM. A terminal with 24-bit colour that does not set it (Terminal.app on macOS 26 may not) needs `export COLORTERM=truecolor`.',
383新增: 'Claude Code also gets bypass mode from managed settings, since it drops the flag when it relaunches itself ([#72479](https://github.com/anthropics/claude-code/issues/72479)). For Pi, setup sets `defaultProjectTrust: "always"`.',
384新增: 'Log in inside the VM (`claude login`, `gh auth login`): the login stays with that VM. Mounting your host credentials would hand them to everything in it.',
385新增: 'A 24-bit colour terminal that does not set `COLORTERM` (Terminal.app on macOS 26) needs `export COLORTERM=truecolor`.',
385386 ],
386387 list: [],
387388 code: '',
@@ -389,24 +390,17 @@ export const en = {
389390 {
390391 title: 'MCP servers',
391392 paras: [
392删除: 'Playwright MCP runs with `--executable-path /usr/bin/chromium` and `PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1`, so it downloads no browsers of its own. For another engine, edit its entry (drop `--executable-path`, add `--browser firefox`) and run `npx playwright install firefox` in the VM.',
393删除: 'To add a server for Claude Code, add it to `mcpServers` in `~/.claude.json`, from `~/.agent-vm/setup.sh` or inside a VM.',
393新增: 'Playwright MCP uses the VM’s Chromium and downloads no browser. For another engine, edit its entry (drop `--executable-path`, add `--browser firefox`) and run `npx playwright install firefox`. Add your own servers to `mcpServers` in `~/.claude.json`, from `~/.agent-vm/setup.sh` or inside a VM.',
394394 ],
395395 list: [],
396删除: code: '{\n "mcpServers": {\n "postgres": {\n "command": "npx",\n "args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost:5432/mydb"]\n }\n }\n}',
396新增: code: '{\n "mcpServers": {\n "postgres": {\n "command": "npx",\n "args": [\n "-y",\n "@modelcontextprotocol/server-postgres",\n "postgresql://localhost:5432/mydb"\n ]\n }\n }\n}',
397397 },
398删除: ],
399删除: },
400删除: {
401删除: title: 'Configuration',
402删除: topics: [
403398 {
404399 title: 'The env files',
405400 paras: [
406删除: 'Plain `KEY=value` lines, `#` for comments, pushed into the VM on every command, so edits need no `--reset`. agent-vm knows none of the names: `gh` reads `GH_TOKEN`, Claude Code `ANTHROPIC_API_KEY` when not logged in, Codex `OPENAI_API_KEY`, Vibe `MISTRAL_API_KEY`.',
407删除: 'Everything in the VM can read them, the agent and its dependencies included, and send them out. Use dedicated, narrowly scoped tokens you can revoke.',
408删除: 'The project’s file, `.agent-vm.env` (`AGENT_VM_PROJECT_ENV` moves it, relative to the project or absolute), is pushed after the shared one and wins. It sits in a repository, so keep secrets out: `project-env set` prints the line that gitignores it, or the `git rm --cached` when it is already tracked. The VM can make it a symlink, so the VM reads it at each start, and `project-env` refuses a link, checked with `perl` so the VM cannot race it.',
409删除: '`get` and `has` read the file, never the environment, and never run it. They accept what `set` writes and plain dotenv lines (`KEY=value`, `export`, quotes, a trailing comment). A value that needs a shell (`$`, backquotes, backslashes, `~`, `;`, `|`...) exits `2`, as does a key that appears after such a line: the shell may read the lines that follow differently. `set` rewrites a value in a form they read. Without a value, `set` reads it from standard input, or has you type it unseen, so a secret stays out of your shell history.',
401新增: 'agent-vm knows none of the names: `gh` reads `GH_TOKEN`, Claude Code `ANTHROPIC_API_KEY`, Codex `OPENAI_API_KEY`, Vibe `MISTRAL_API_KEY`. Edits need no `--reset`.',
402新增: 'The project’s `.agent-vm.env` is pushed after the shared one and wins. It sits in a repository, so keep secrets out: `project-env set` prints the line that gitignores it.',
403新增: '`get` and `has` read the file without running it, and exit `2` on a value that needs a shell. `set` without a value reads it unseen, out of your shell history.',
410404 ],
411405 list: [],
412406 code: '',
@@ -414,9 +408,8 @@ export const en = {
414408 {
415409 title: 'Extra mounts, in detail',
416410 paras: [
417删除: 'A destination is used as written, with no `~`: the VM home is `/home/<you>.guest` (Lima 2.1 and later, `.linux` before). A source that does not exist is skipped with a warning. `rw` works for directories only. A destination named `ro` or `rw` needs an explicit mode after it, and a destination cannot contain `:`.',
418删除: 'A single file is hardlinked into `~/.agent-vm/file-mounts/<vm>/` and bind-mounted in the VM, without its directory. Across filesystems it is copied instead, and host edits wait for the next start.',
419删除: 'A missing mount point in the project is created without following symlinks, which needs `perl`.',
411新增: 'A destination is used as written, with no `~`: the VM home is `/home/<you>.guest` (`.linux` before Lima 2.1). A missing source is skipped with a warning.',
412新增: 'A single file is hardlinked into `~/.agent-vm/file-mounts/<vm>/` and bind-mounted. Across filesystems it is copied, and host edits wait for the next start.',
420413 ],
421414 list: [],
422415 code: '# ~/.agent-vm/volumes: your Claude instructions and skills,\n# not the whole ~/.claude, which holds your login on Linux\n~/.claude/CLAUDE.md:/home/you.guest/.claude/CLAUDE.md\n~/.claude/skills:/home/you.guest/.claude/skills',
@@ -424,48 +417,55 @@ export const en = {
424417 {
425418 title: 'Setup and runtime scripts',
426419 paras: [
427删除: '`~/.agent-vm/setup.sh` runs once, in the template, at the end of `setup`, as the VM user with sudo. `~/.agent-vm/runtime.sh` runs in the VM on every command that enters one, then the project’s `.agent-vm.runtime.sh`: both must be safe to run again. [`runtime.example.sh`](https://github.com/sylvinus/agent-vm/blob/main/runtime.example.sh) covers git identity, `gh auth setup-git`, skills, MCP servers and a status line. Keep private keys out: the agent can read whatever they set up.',
428删除: '`setup.sh` runs under zsh. A runtime script runs under the shell its shebang names (bash or sh, zsh otherwise). Both are fed on standard input: `$0` is the shell, and a command in it that reads standard input reads the rest of the script, so give it `</dev/null`.',
429删除: '`AGENT_VM_PROJECT_RUNTIME` moves the project’s script, relative to the project or absolute, `..` resolved as `cd` does. Inside the project, the VM reads it; outside, the host. mise picks up `.ruby-version`, `.python-version`, `.node-version` and `.tool-versions`.',
420新增: '`~/.agent-vm/setup.sh` runs once in the template, at the end of `setup`, under zsh with sudo. `~/.agent-vm/runtime.sh`, then the project’s `.agent-vm.runtime.sh`, run on every command that enters the VM, so both must be safe to re-run. [`runtime.example.sh`](https://github.com/sylvinus/agent-vm/blob/main/runtime.example.sh) covers git identity, `gh auth setup-git`, skills and MCP servers.',
421新增: 'They are fed on standard input: give a command in them that reads it `</dev/null`. Keep private keys out, the agent can read what they set up.',
430422 ],
431423 list: [],
432424 code: '# .agent-vm.runtime.sh\nmise install\nnpm install\ndocker compose up -d',
433425 },
434426 ],
435427 },
428新增: ],
429新增: },
430新增:
431新增: security: {
432新增: eyebrow: 'Security',
433新增: title: 'What crosses the boundary.',
434新增: lede: 'The VM cannot leave its shares. What remains is what crosses them: the project folder, which the agent writes and your machine reads, the terminal, and the network.',
435新增: groups: [
436436 {
437删除: title: 'Operations and scripts',
437新增: id: 'git',
438新增: title: 'Protecting .git',
438439 topics: [
439440 {
440删除: title: 'Resources, ports, doctor',
441新增: title: 'Why .git',
441442 paras: [
442删除: 'CPU and memory are clamped to half the host per VM, with a notice. `AGENT_VM_HOST_SHARE` changes the divisor (`1` for the whole host); when the host capacity cannot be read, nothing is clamped.',
443删除: 'A port set with `--ssh-port` stays until `--reset` or `rm`. One another Lima VM is set to is refused; one used by anything else makes the start fail. The VM must run for SSH to connect.',
444删除: '`doctor` prints no secret, so its output can go into an issue as is. It exits `1` when a check fails.',
443新增: 'Git on your machine runs what a repository’s `.git/config` and hooks name: `core.fsmonitor` on every `git status`, hooks on commit. Your editor and prompt run `git status` on their own, so a VM able to write `.git` could run commands on your host within seconds, invisible in `git diff`.',
444新增: 'With a Lima that has `sshfs.readonlyNames`, every `.git` and `.hg` in the shares is read-only for the VM, at any depth, enforced on the host by Lima’s SFTP server. The agent reads the history but cannot commit. It is not merged upstream yet ([lima-vm/lima#5529](https://github.com/lima-vm/lima/issues/5529)), so `agent-vm setup` offers a build that has it. The shares then use `reverse-sshfs`, slower on many files (see [Node.js](#node)).',
445445 ],
446446 list: [],
447删除: code: '',
447新增: code: 'brew unlink lima; brew install sylvinus/tap/lima-sylvinus\nagent-vm doctor # where you stand\n\n# let the agent commit anyway\nagent-vm --unsafe-writable-git claude',
448448 },
449449 {
450删除: title: 'For integrators',
450新增: title: 'Beyond the name .git',
451451 paras: [
452删除: '`AGENT_VM_STATE_DIR` moves `~/.agent-vm`, for a test, a CI job or a second install, without moving `HOME` (which would move Lima’s VMs too). Read it back from `info` (`state_dir=`) rather than from `$HOME`.',
453删除: '`base_exists=1` means the template is usable, not only listed by Lima. `agent-vm.sh` can be sourced under `set -u` and `pipefail`, not `set -e`.',
454删除: 'A start asks its questions on the terminal, and only when stderr is one too: a tool that captures stderr gets the answer "no", so the start stops. `security_questions=` in `info` says beforehand what the start of a VM that is not running would stop on (`lima`, `lima-unknown`, `hooks`, `git-config`, `bare-repo`, or `none`), and `git_protected=` whether `.git` would be read-only. Pass `--unsafe-disable-security-prompts` to go on anyway, once the user has agreed.',
452新增: 'The folder a `core.hooksPath` points to in the project (`.husky` for husky) is read-only too. A folder holding git’s internals (`HEAD`, `objects/`, `refs/`, a `config`) is a repository under any name: setting `safe.bareRepository` to `explicit` in your global git config makes git ignore it. A config included from the project, or hooks at the top of a repository, are the same kind of door.',
453新增: 'Before a VM boots with writable shares, agent-vm stops on each of these it finds, and on a Lima without `readonlyNames`, and asks: Enter, or no terminal, aborts. `doctor` lists them. `--unsafe-writable-git` (or `AGENT_VM_UNSAFE_WRITABLE_GIT=1` in your shell, never read from the project) lets the agent commit and reopens that path to your host, with a warning on every run.',
455454 ],
456455 list: [],
457456 code: '',
458457 },
458新增: {
459新增: title: 'The Lima build',
460新增: paras: [
461新增: 'On Windows, `setup` downloads it and checks it against checksums pinned in agent-vm. Elsewhere, Homebrew installs it, or build it from source.',
462新增: 'A Lima whose answer agent-vm cannot read stops the start with an error, rather than passing for one without `readonlyNames`.',
463新增: ],
464新增: list: [],
465新增: code: '# back to Homebrew’s Lima\nbrew uninstall lima-sylvinus && brew link lima\n\n# the Lima build, without Homebrew (needs Go and make)\ngit clone --depth 1 -b v2.3.0-sylvinus.2 https://github.com/sylvinus/lima\ncd lima && make native && sudo make install',
466新增: },
459467 ],
460468 },
461删除: ],
462删除: },
463删除:
464删除: security: {
465删除: eyebrow: 'Security',
466删除: title: 'What crosses the boundary.',
467删除: lede: 'The VM cannot leave its shares. What remains is what crosses them: the project folder, which the agent writes and your machine reads, the terminal, and the network.',
468删除: groups: [
469469 {
470470 title: 'What agent-vm does',
471471 topics: [
@@ -479,15 +479,13 @@ export const en = {
479479 code: '',
480480 },
481481 {
482删除: title: '--readonly and .git, in detail',
482新增: title: '--readonly, in detail',
483483 paras: [
484删除: '`--readonly` covers every share, `rw` volumes included, with a notice naming them: a writable volume containing the project would be a second way in. Whether the host enforces it is decided from what Lima reports for the VM, never by asking the guest. agent-vm records the mounts it gave each VM, so one left with a writable share is changed; a stopped VM gets the mode before it boots.',
485删除: 'Every `.git` is read-only at any depth, whatever the case of the name. `git status`, `diff` and `log` work in the VM; `commit` does not. Every `.hg` is too, for Mercurial’s hooks.',
486删除: 'When git’s `core.hooksPath` puts the hooks in the project (husky sets `.husky/_`), the first folder of that path, from the top of its repository, is read-only as well, by its name and at any depth like `.git`, so the agent cannot change the hooks git runs on your commits. A name that does not start with a dot (`tools` for `tools/hooks`) would lock every folder of that name in the project, so the start asks first; yes is the default. Hooks at the top of a repository cannot be protected that way, so the start stops on them, as on the other risks above. The repository holding the project and those up to two levels below it are checked on every start: `doctor` says whether the VM has the names.',
487删除: 'A Lima whose answer agent-vm cannot read (a failing `limactl validate`, an unknown wording) stops the start with an error rather than being taken for one without `readonlyNames`, which would drop the protection of your VMs; `--readonly`, `--unsafe-writable-git` and `--scratch` still start. The `AGENT_VM_UNSAFE_*` variables must be exactly `1`, and are read from your shell, never from a file of the project. A tool that loads environment variables from the project on `cd` (mise’s `[env]`, for one) can set them, though: see [mise](#shell-commands-hooks) below. With a Lima that lacks `readonlyNames`, a VM goes back to Lima’s default mount type at its next start, since `reverse-sshfs` without it is the weaker one. Back to Homebrew’s Lima: `brew uninstall lima-sylvinus && brew link lima`.',
484新增: '`--readonly` covers every share, `rw` volumes included: a writable volume containing the project would be a second way in. Whether the host enforces it is read from what Lima reports, never from the guest. Where it would not (`reverse-sshfs` without `readonlyNames`, virtiofs under QEMU), the flag is refused.',
485新增: 'A running VM in the other mode is restarted, asked first. Declined, or with no terminal, the command fails, so another session’s read-only VM is never made writable under it.',
488486 ],
489487 list: [],
490删除: code: '# the Lima build, without Homebrew (needs Go and make)\ngit clone --depth 1 -b v2.3.0-sylvinus.2 https://github.com/sylvinus/lima\ncd lima && make native && sudo make install',
488新增: code: '',
491489 },
492490 ],
493491 },
@@ -497,34 +495,34 @@ export const en = {
497495 {
498496 title: 'The rule',
499497 paras: [
500删除: 'The agent writes the project folder, so anything on your machine that reads it and acts on what it finds can run what the agent wrote. agent-vm closes what nearly every machine has and what runs without you doing anything: git, through `.git`, `.hg`, hooks folders and git config (see [Protecting .git](#git)). It cannot know your other tools, and cannot lock the files they read without stopping the agent from working: it has to be able to write `.vscode/`, `docker-compose.yml` or `mise.toml`.',
501删除: 'So on your machine, open the project in your editor and use git in it; run everything else in the VM, with `agent-vm run`. The lists below are examples, sorted by what sets them off, not a complete inventory: check your own setup against them.',
498新增: 'Anything on your machine that reads the project and acts on what it finds can run what the agent wrote. agent-vm closes git’s doors (see [Protecting .git](#git)), but cannot lock the files your other tools read without stopping the agent from working.',
499新增: 'So on your machine, open the project in your editor and use git in it; run everything else in the VM, with `agent-vm run`. The lists below are examples, not an inventory.',
502500 ],
503501 list: [
504删除: 'Nothing at all: what runs when you `cd` into the folder, when your prompt redraws, when your editor opens it or a file manager shows it. The most dangerous kind, since you never decide.',
505删除: 'Something you do anyway: `git commit` runs hooks whose commands sit in the working tree, `docker compose up` mounts whatever the compose file names, your home directory included.',
506删除: 'Running project code: `npm test`, `make`, a build. That is the agent’s code by definition, so it belongs in the VM.',
502新增: 'Nothing at all: what runs when you `cd` into the folder, your prompt redraws, your editor opens it. The most dangerous kind.',
503新增: 'Something you do anyway: `git commit` runs hooks kept in the working tree, `docker compose up` mounts what the compose file names.',
504新增: 'Running project code: `npm test`, `make`, a build. That is the agent’s code: run it in the VM.',
507505 ],
508506 code: '',
509507 },
510508 {
511509 title: 'Keeping your checkout out of reach',
512510 paras: [
513删除: 'To take the question off the table, do not give agent-vm the checkout you work in. Clone the project a second time, run agent-vm there, and bring its work into your own checkout with `git fetch` once you have read the diff. Your editor, prompt and habits stay in a folder the VM cannot write, and nothing of yours opens the agent’s folder by reflex. Fetching reads objects and does not check them out, so the agent’s files reach your working tree only when you merge. It does run git in the clone’s `.git`, so this holds with a Lima that keeps `.git` read-only: without one, the VM can write that `.git` too, and git’s own documentation advises against fetching, as yourself, from a `.git` someone else could write.',
511新增: 'Do not give agent-vm the checkout you work in. Clone the project a second time, run agent-vm there, and `git fetch` its work into your checkout once you have read the diff. Fetching does not check files out, so the agent’s files reach your working tree only when you merge. This needs a Lima that keeps `.git` read-only: otherwise the VM can write the clone’s `.git`, which git then reads.',
514512 ],
515513 list: [],
516删除: code: '# once; --no-local copies the objects instead of hardlinking them\ngit clone --no-local ~/work/app ~/agent/app\n# the agent works there\ncd ~/agent/app && agent-vm claude\n# back in your checkout, when it is done\ncd ~/work/app\ngit fetch ~/agent/app HEAD:agent/review\ngit diff ...agent/review # read it all, .vscode/ and package.json included\ngit merge agent/review',
514新增: code: '# once; --no-local copies objects, no hardlinks\ngit clone --no-local ~/work/app ~/agent/app\n# the agent works there\ncd ~/agent/app && agent-vm claude\n# back in your checkout, when it is done\ncd ~/work/app\ngit fetch ~/agent/app HEAD:agent/review\ngit diff ...agent/review # read all of it\ngit merge agent/review',
517515 },
518516 {
519517 title: 'Editors and agents',
520518 paras: [
521删除: 'Anything that runs in the project on your machine can run code the agent wrote. A changed tracked file shows in `git diff`, a new one as untracked; one in an ignored path (`node_modules`, `.venv`, `target/`) shows nowhere.',
519新增: 'A changed tracked file shows in `git diff`, a new one as untracked; one in an ignored path (`node_modules`, `.venv`, `target/`) shows nowhere.',
522520 ],
523521 list: [
524删除: 'VS Code: open agent-vm projects in Restricted Mode (“No, I don’t trust the authors”), and do not trust a parent folder, which trusts everything below it. A trusted workspace runs tasks and extensions that execute project code: `eslint.config.js`, `vite.config.ts`, `build.rs` through rust-analyzer, the Python interpreter the settings name.',
522新增: 'VS Code: open agent-vm projects in Restricted Mode, and do not trust a parent folder. A trusted workspace runs project code through tasks and extensions: `eslint.config.js`, `vite.config.ts`, `build.rs`.',
525523 'JetBrains IDEs: “Preview in Safe Mode”. A trusted project runs its Gradle or Maven scripts on import.',
526删除: 'Neovim asks before running a project’s `.nvim.lua` or `.exrc` (`exrc`, off by default), and again when it changes; Vim does not ask, so leave `exrc` off. Emacs asks before applying risky `.dir-locals.el` values.',
527删除: 'Agents on your machine read project config that runs commands: `.claude/settings.json` hooks, `.mcp.json`, `.cursor/`. Review those before running one there, and treat `CLAUDE.md` and `AGENTS.md` as the VM’s writing.',
524新增: 'Vim: leave `exrc` off. Neovim and Emacs ask before running project config.',
525新增: 'Agents on your machine run commands from `.claude/settings.json` hooks, `.mcp.json` or `.cursor/`: review those, and treat `CLAUDE.md` and `AGENTS.md` as the VM’s writing.',
528526 ],
529527 code: '',
530528 },
@@ -533,11 +531,10 @@ export const en = {
533531 paras: [],
534532 list: [
535533 'direnv only loads an `.envrc` you allowed, and a change revokes it.',
536删除: 'mise trusts a config by its path: the agent can change a trusted `mise.toml`, and your shell runs its hooks and sets its env on the next `cd`, agent-vm’s own variables included. `mise settings set paranoid true` ties trust to the content.',
537删除: 'Mercurial runs hooks from `.hg/hgrc` in a repository you own, which files written through the share are. With a Lima that keeps `.git` read-only, every `.hg` is read-only too.',
538删除: '`npm run`, `make`, `./gradlew`, `pytest` (`conftest.py`), `node_modules/.bin`, an activated `.venv`: each runs files the agent can write. Run them in the VM, with `agent-vm run`.',
539删除: '`docker compose up` on your machine does what the compose file says, and a service can mount any folder of yours, `/` included, into a container running as root. Docker runs in the VM: use it there.',
540删除: 'Commit hooks: lefthook (`lefthook.yml`) and pre-commit (`.pre-commit-config.yaml`) keep their commands in the working tree, so `git commit` on your machine runs what the agent wrote there. Read them in the diff, or commit with `--no-verify`. With a Lima that keeps `.git` read-only, the `.husky/` folder of husky is read-only too, since `core.hooksPath` points into it (see [Protecting .git](#git)), but the commands its hooks call (`npx lint-staged`, `npm test`) run project files.',
534新增: 'mise trusts a config by its path, so the agent can change a trusted `mise.toml`: your shell runs its hooks and sets its env on the next `cd`, agent-vm’s `AGENT_VM_UNSAFE_*` variables included. `mise settings set paranoid true` ties trust to the content.',
535新增: '`npm run`, `make`, `./gradlew`, `pytest`, `node_modules/.bin`, an activated `.venv`: each runs files the agent can write. Run them in the VM.',
536新增: '`docker compose up` on your machine can mount any folder of yours into a root container. Docker runs in the VM: use it there.',
537新增: 'lefthook and pre-commit keep their commands in the working tree, and husky’s hooks call project scripts: read them in the diff, or commit with `--no-verify`.',
541538 ],
542539 code: '',
543540 },
@@ -545,9 +542,9 @@ export const en = {
545542 title: 'File managers',
546543 paras: [],
547544 list: [
548删除: 'macOS: files written through the share carry no quarantine flag, so Gatekeeper does not check an `.app`, `.command` or `.pkg` the agent left there. Do not open them from Finder.',
549删除: 'Windows: Explorer contacts the server named in a `.library-ms`, `.searchConnector-ms`, `.url`, `.lnk` or `desktop.ini` when it shows the folder, sending your NTLM hash ([CVE-2025-24054](https://research.checkpoint.com/2025/cve-2025-24054-ntlm-exploit-in-the-wild/), exploited in 2025). Keep Windows updated and outbound SMB blocked.',
550删除: 'Linux: KDE’s Dolphin ran commands from a `.desktop` or `.directory` file in a folder it only displayed (CVE-2019-14744, fixed in KDE Frameworks 5.61).',
545新增: 'macOS: files written through the share carry no quarantine flag, so Gatekeeper does not check an `.app`, `.command` or `.pkg` left there. Do not open them from Finder.',
546新增: 'Windows: Explorer contacts the server named in a `.library-ms`, `.url`, `.lnk` or `desktop.ini` it displays, sending your NTLM hash ([CVE-2025-24054](https://research.checkpoint.com/2025/cve-2025-24054-ntlm-exploit-in-the-wild/)). Keep Windows updated and outbound SMB blocked.',
547新增: 'Linux: KDE’s Dolphin ran commands from a `.desktop` file in a folder it only displayed (CVE-2019-14744, fixed in KDE Frameworks 5.61).',
551548 ],
552549 code: '',
553550 },
@@ -562,9 +559,9 @@ export const en = {
562559 'What the VM prints reaches your terminal unfiltered, and terminals act on escape sequences. agent-vm cannot filter them without breaking the agents’ full-screen interfaces.',
563560 ],
564561 list: [
565删除: 'Clipboard: OSC 52 lets a program set your clipboard, and in some terminals read it. Allow writes only if you need them, never reads, and check what you paste into a host shell.',
566删除: 'Replies typed for you: some sequences make the terminal type an answer. During a session it goes to the VM, but one sent just before exit lands in your host shell. Answers that carried a command were real bugs: iTerm2 [CVE-2024-38396](https://www.sentinelone.com/vulnerability-database/cve-2024-38396/) (fixed in 3.5.2), xterm before it. Keep your terminal updated.',
567删除: 'Features that act on your machine: iTerm2 file transfer and triggers, kitty remote control (off by default: keep it off), links whose text differs from their target.',
562新增: 'Clipboard: OSC 52 lets a program set your clipboard, and in some terminals read it. Never allow reads, and check what you paste into a host shell.',
563新增: 'Replies typed for you: a sequence sent just before exit can make the terminal type into your host shell. Some were real bugs (iTerm2 [CVE-2024-38396](https://www.sentinelone.com/vulnerability-database/cve-2024-38396/)): keep your terminal updated.',
564新增: 'Features that act on your machine: iTerm2 file transfer and triggers, kitty remote control (keep it off), links whose text differs from their target.',
568565 'Spoofing: the VM can print a fake host prompt after a fake exit. Check where you are before typing a secret.',
569566 ],
570567 code: '',
@@ -572,7 +569,7 @@ export const en = {
572569 {
573570 title: 'Network and ports',
574571 paras: [
575删除: 'The VM reaches the internet and every service on your machine’s loopback, at `192.168.5.2`: a dev database, another project’s VM through its forwarded ports. Lima forwards every port a VM listens on to your `127.0.0.1`, unless it is taken: a VM that listens first on 5432 receives the connections, and passwords, meant for your local Postgres. Blocking this is [on the roadmap](#roadmap).',
572新增: 'The VM reaches the internet and every service on your machine’s loopback, at `192.168.5.2`. Lima forwards every port a VM listens on to your `127.0.0.1` when it is free: a VM that listens first on 5432 receives the connections, and passwords, meant for your local Postgres. Blocking this is [on the roadmap](#roadmap).',
576573 ],
577574 list: [],
578575 code: '',
@@ -626,7 +623,7 @@ export const en = {
626623 'Each VM authenticates on its own: `claude login` happens inside it. Credentials persist across restarts of that VM and are shared with neither the host nor any other VM. The network is shared, though: see [Network and ports](#network-and-ports).',
627624 contentsTitle: 'What is in the VM',
628625 contentsLede:
629删除: 'The wizard’s default install and `--preinstall=default` produce the same set: everything below except the rows marked no.',
626新增: 'The setup wizard offers the default set: everything below except the rows marked no. Answer `n` to pick each item. `--preinstall` takes the names instead, comma-separated, plus `default`, `all` or `none`, and skips the wizard, as does a setup with no terminal.',
630627 contentsHeaders: ['Category', 'Packages', 'Name', 'Default'],
631628 contents: [
632629 ['Core', 'git, curl, wget, jq, zsh, ca-certificates, sshfs, build-essential, pkgconf, patch, unzip, zip, ripgrep, fd-find, htop', 'always', 'yes'],
@@ -645,8 +642,10 @@ export const en = {
645642 ['MCP', 'Chrome DevTools MCP, wired into every installed agent but Pi (no MCP support)', 'mcp-chrome', 'yes'],
646643 ['MCP', 'Playwright MCP, reusing the same Chromium', 'mcp-playwright', 'no'],
647644 ],
645新增: contentsCode:
646新增: '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 --disk 50 --memory 16 --cpus 8 # a bigger template',
648647 contentsNote:
649删除: 'This is only what the template ships, so a first run is not spent downloading a toolchain. The agent is root in the VM and has the network, so it installs whatever else it needs: `apt install`, `pip`, `cargo`, a language runtime that is not on the list.',
648新增: '`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`. This is only what the template ships: the agent is root in the VM and has the network, so it installs whatever else it needs.',
650649 dockerTitle: 'Why not Docker',
651650 dockerLede:
652651 '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.',
@@ -678,7 +677,7 @@ export const en = {
678677 ],
679678 ],
680679 dockerNote:
681删除: 'Docker runs natively inside the VM with no Docker-in-Docker, headless Chromium works out of the box, and Lima forwards ports on its own. On a Mac, this replaces Docker Desktop.',
680新增: 'Docker runs natively inside the VM with no Docker-in-Docker, and headless Chromium works out of the box. On a Mac, this replaces Docker Desktop.',
682681 },
683682
684683 roadmap: {
@@ -709,12 +708,17 @@ export const en = {
709708 'agent-vm is a small, readable Bash codebase with a test suite that creates no VMs and needs no network. Bug reports, engine fixes and support for new agents are all welcome.',
710709 testsTitle: 'Run the tests',
711710 testsBody:
712删除: 'The suite runs against a stub `limactl` in a throwaway `HOME`, with git reading its config from there only. No VM is created, started or deleted, your real `~/.agent-vm` and git config are untouched, and nothing is downloaded. It covers VM naming, resource comparison, staleness, the `info`, `version` and `name` surface, the `--preinstall` parser, the MCP config writer, and the project mount mode that `--readonly` rides on. `./test-e2e.sh` is the other half: it builds a real VM with `--preinstall=none` and checks what a stub cannot, starting with whether root in the guest can lift `--readonly`, and, with a Lima that has `readonlyNames`, whether it can write `.git`, and that a `--scratch` VM sees nothing of the host and is gone afterwards. It runs in its own `LIMA_HOME`, so your own VMs are never touched. The unit tests are `tests/NN-*.sh`, run in order in one shell after `tests/helpers.sh`, so a file can use what an earlier one set up; a new area gets its own file.',
711新增: 'Two suites. Neither touches your VMs, your `~/.agent-vm` or your git config.',
712新增: testsList: [
713新增: '`./test.sh` runs against a stub `limactl` in a throwaway `HOME`: no VM, no network. It covers naming, resources, the `info` and `version` surface, the `--preinstall` parser and the mount modes.',
714新增: '`./test-e2e.sh` builds a real VM with `--preinstall=none` in its own `LIMA_HOME`, and checks what a stub cannot: that root in the guest cannot lift `--readonly` or write `.git`, and that a `--scratch` VM sees nothing of the host.',
715新增: 'Unit tests are `tests/NN-*.sh`, run in order in one shell after `tests/helpers.sh`. A new area gets its own file.',
716新增: ],
713717 testsCode: './test.sh # fast, no VM\n./test-e2e.sh # real VM, needs Lima',
714718 shellsTitle: 'Test the shells that matter',
715719 shellsBody:
716720 'macOS still ships bash 3.2, which is stricter about empty array expansion under `set -u` than modern bash. A change that passes on bash 5 can still break on a stock Mac. The `bash:3.2` image has no git, so the tests that need it skip there: add it with `apk`.',
717删除: shellsCode: 'docker run --rm -v "$PWD:/w" -w /w bash:3.2 ./test.sh\ndocker run --rm -v "$PWD:/w" -w /w bash:3.2 sh -c \'apk add -q git && git config --global safe.directory "*" && ./test.sh\'',
721新增: shellsCode: 'docker run --rm -v "$PWD:/w" -w /w bash:3.2 ./test.sh\n\n# with git, for the tests that need it\ndocker run --rm -v "$PWD:/w" -w /w bash:3.2 sh -c \'\n set -e\n apk add -q git\n git config --global safe.directory "*"\n ./test.sh\'',
718722 structureTitle: 'Where things live',
719723 structureHeaders: ['File', 'What it is'],
720724 structure: [
@@ -769,7 +773,7 @@ export const en = {
769773 { name: 'OpenCode', note: 'Open-source terminal agent.', href: 'https://github.com/anomalyco/opencode' },
770774 { name: 'Codex CLI', note: 'OpenAI.', href: 'https://github.com/openai/codex' },
771775 { name: 'Mistral Vibe', note: 'Mistral AI.', href: 'https://docs.mistral.ai/vibe/code/cli/install-setup' },
772删除: { name: 'Pi', note: 'Minimal open-source harness. Opt-in.', href: 'https://pi.dev' },
776新增: { name: 'Pi', note: 'Minimal open-source harness.', href: 'https://pi.dev' },
773777 ],
774778 },
775779 {
@@ -782,7 +786,7 @@ export const en = {
782786 },
783787 {
784788 name: 'Playwright MCP',
785删除: note: 'Opt-in, pointed at the same Chromium.',
789新增: note: 'Pointed at the same Chromium.',
786790 href: 'https://github.com/microsoft/playwright-mcp',
787791 },
788792 ],
修改www/src/i18n/fr.ts+190 −186看文件
@@ -39,16 +39,16 @@ export const fr: Dictionary = {
3939 title: 'Donne aux agents une machine qu\'ils peuvent casser.',
4040 titleAccent: 'Garde la tienne.',
4141 lede:
42删除: 'Un agent de code a besoin de droits étendus pour être utile : il installe des dépendances, lance des builds, démarre des serveurs. agent-vm donne à chaque projet sa propre VM Linux, et c\'est là que l\'agent travaille. Il n\'y voit ni tes clés SSH, ni tes sessions de navigateur, ni le reste de ton disque.',
42新增: 'agent-vm lance les agents de code IA avec toutes les permissions, dans une VM Linux par projet. Ils n\'y voient ni tes clés SSH, ni tes sessions de navigateur, ni le reste de ton disque.',
4343 installLabel: 'Pour commencer',
4444 ctaPrimary: 'Installer',
4545 ctaSecondary: 'Comment ça marche',
4646 meta: 'Licence MIT · macOS, Linux, Windows (expérimental) · basé sur Lima',
4747 terminalCaption:
48删除: 'Seul le dossier du projet est monté. Une VM par dossier, créée au premier lancement puis réutilisée.',
48新增: 'Seul le dossier du projet est monté.',
4949 points: [
5050 {
51删除: title: 'Lima, seule dépendance côté hôte',
51新增: title: '[Lima](https://lima-vm.io/), seule dépendance côté hôte',
5252 body: 'Ni Node, ni npm, ni Docker Desktop sur ta machine : la chaîne d\'outils vit dans la VM. Sous Linux, Lima a aussi besoin de QEMU et d\'un accès à KVM.',
5353 },
5454 {
@@ -60,8 +60,8 @@ export const fr: Dictionary = {
6060 body: 'Un serveur de dev lancé dans la VM répond sur localhost, au même port. C\'est Lima qui s\'en charge : aucune option, aucune configuration.',
6161 },
6262 {
63删除: title: 'Cinq agents, une commande',
64删除: body: 'OpenCode, Claude Code, Codex CLI et Mistral Vibe, chacun lancé avec son option d\'approbation automatique. Pi, en option, ne demande jamais rien.',
63新增: title: 'Tout est prêt, et root pour le reste',
64新增: body: 'La VM de base contient les outils de dev, Docker, Chromium headless et les agents, choisis dans un assistant de setup. L\'agent est root dans sa VM : il installe lui-même ce qui lui manque.',
6565 },
6666 ],
6767 },
@@ -74,7 +74,7 @@ export const fr: Dictionary = {
7474 reasons: [
7575 {
7676 title: 'Installer une dépendance, c\'est exécuter du code',
77删除: body: 'Chaque `npm install` exécute des scripts d\'installation tiers avant que quiconque les ait lus. En 2025, le ver Shai-Hulud s\'est propagé ainsi dans des milliers de paquets npm : il récupérait jetons npm, PAT GitHub, clés SSH et identifiants cloud, puis s\'en servait pour publier des versions infectées d\'autres paquets. Ces installations n\'avaient rien d\'anormal en apparence.',
77新增: body: 'npm a lancé les scripts d\'installation de chaque paquet par défaut jusqu\'à npm 12 (juillet 2026), pip lance toujours le build d\'un paquet source, Cargo son `build.rs`, et tes tests exécutent ensuite tout ce qui a été installé. En 2025, le ver Shai-Hulud s\'est propagé ainsi dans des milliers de paquets npm : il récupérait jetons npm, PAT GitHub, clés SSH et identifiants cloud, puis s\'en servait pour se republier.',
7878 },
7979 {
8080 title: 'On finit par tout valider',
@@ -86,7 +86,7 @@ export const fr: Dictionary = {
8686 },
8787 ],
8888 closing:
89删除: 'Une VM limite ce qu\'une erreur ou un agent compromis peut atteindre : ton code source et ce que tu as mis dans [son fichier d\'env](#share-secrets-across-vms), mais ni tes clés SSH, ni tes identifiants git, ni tes sessions de navigateur. [`--readonly`](#tighten-the-session) restreint encore, et c\'est l\'hôte qui l\'applique : root dans l\'invité ne peut pas le lever. Le projet partagé est protégé lui aussi : avec un Lima qui a `sshfs.readonlyNames`, chaque `.git` y est en lecture seule pour la VM, donc l\'agent ne peut pas déposer dans `.git` un hook ou une config que git lancerait ensuite sur ton hôte (voir [Protéger .git](#git) plus bas). Reste le réseau : l\'agent peut envoyer des données n\'importe où, et Lima expose le loopback de l\'hôte en `192.168.5.2`, donc une base de données de dev qui écoute sur localhost est joignable depuis la VM.',
89新增: 'Une VM limite ce qu\'une erreur ou un agent compromis peut atteindre au projet et à ce que tu lui confies, comme [son fichier d\'env](#share-secrets-across-vms). Reste le réseau : voir [Sécurité](#security).',
9090 },
9191
9292 install: {
@@ -99,7 +99,7 @@ export const fr: Dictionary = {
9999 { name: 'macOS, Linux ou Windows', note: 'Windows est expérimental : Git Bash, QEMU et Lima pour Windows requis.', href: '' },
100100 {
101101 name: 'Lima',
102删除: note: 'agent-vm setup propose de l\'installer avec Homebrew, dans une version qui garde les `.git` en lecture seule, en attendant son intégration en amont. Sous Linux, il faut aussi QEMU et KVM. Sous Windows, QEMU (winget) et la fonctionnalité Windows Hypervisor Platform ; setup propose le téléchargement de Lima.',
102新增: note: '`agent-vm setup` propose de l\'installer. Sous Linux, il faut aussi QEMU et KVM ; sous Windows, QEMU.',
103103 href: 'https://lima-vm.io/docs/installation/',
104104 },
105105 {
@@ -134,38 +134,21 @@ export const fr: Dictionary = {
134134 id: 'windows',
135135 label: 'Windows',
136136 code: '# dans Git Bash (expérimental)\nwinget install SoftwareFreedom.QEMU\ncurl -fsSL https://www.agent-vm.org/install.sh | sh',
137删除: note: 'Expérimental. À lancer dans Git Bash : c\'est l\'installeur curl, et `agent-vm setup` propose ensuite une version de Lima pour Windows. Prends-la : avec le Lima d\'origine, les partages passent par `reverse-sshfs`, qui ne cantonne pas la VM à ses partages, et root dans la VM peut atteindre tes clés SSH et le reste de ton disque (un démarrage le dit, et demande). Les VM ont aussi besoin de l\'hyperviseur de Windows, la fonctionnalité Windows Hypervisor Platform. Elle est désactivée par défaut et seul un administrateur peut l\'activer, une fois (Fonctionnalités de Windows, ou `DISM /Online /Enable-Feature /FeatureName:HypervisorPlatform /All`, puis un redémarrage). Sur un portable géré, c\'est une demande à faire au service informatique. Sans elle, les VM ne démarrent pas.',
137新增: note: 'Expérimental, dans Git Bash. `agent-vm setup` propose ensuite une version de Lima pour Windows : prends-la, celle d\'origine ne cantonne pas la VM à ses partages. Les VM ont aussi besoin de la fonctionnalité Windows Hypervisor Platform, qu\'un administrateur active une fois : voir [Windows et WSL](#windows-and-wsl).',
138138 },
139139 ],
140140 steps: [
141141 {
142142 title: 'Construire l\'image de base',
143删除: body: 'À faire une seule fois. Sans Lima, propose d\'abord de l\'installer, dans la version qui garde les `.git` en lecture seule pour les VM. L\'assistant propose ensuite une sélection par défaut : il suffit d\'appuyer sur Entrée pour l\'accepter. Après lui, un Lima qui ne sait pas garder les `.git` en lecture seule reçoit la même proposition. Crée enfin une VM Debian 13, y installe la chaîne d\'outils et les agents, puis l\'arrête et la garde comme image de base.',
143新增: body: 'À faire une seule fois. Sans Lima, ou sans la version qui garde `.git` [en lecture seule](#git), propose d\'abord de l\'installer. Un assistant choisit ensuite ce qui entre dans l\'image : Entrée prend la sélection par défaut (voir [Ce qu\'il y a dans la VM](#what-is-in-the-vm)). Crée avec elle une VM Debian 13, puis la garde, arrêtée, comme image de base.',
144144 code: 'agent-vm setup',
145145 },
146146 {
147147 title: 'Lancer un agent dans ton projet',
148删除: body: 'Clone l\'image en une VM dédiée à ce dossier, y monte le répertoire de travail et lance l\'agent, sans demande de confirmation. Avant le démarrage de la VM, agent-vm peut s\'arrêter sur une question de sécurité, par exemple un réglage git qu\'il propose de faire : voir [Protéger .git](#git).',
148新增: body: 'Clone l\'image en une VM dédiée à ce dossier, y monte le dossier et lance l\'agent, sans demande de confirmation. Un démarrage peut d\'abord s\'arrêter sur une question de sécurité : voir [Protéger .git](#git).',
149149 code: 'cd ton-projet\nagent-vm opencode # ou : agent-vm claude',
150150 },
151151 ],
152删除: preinstallTitle: 'Choisir ce qui entre dans l\'image',
153删除: preinstallBody:
154删除: 'En minuscules, séparés par des virgules. `default` installe tout sauf Ruby, Rust, Go, Pi et le MCP Playwright, `all` installe tout, `none` rien. `codex` et `pi` entraînent `node`, tout comme `mcp-chrome` quand `chromium` et un agent sont choisis, parce que ces installations passent par `npm` et `npx`. Les deux serveurs MCP sont ignorés sans `node` et `chromium`. Sans terminal, l\'assistant est sauté et la sélection par défaut est installée. `setup` accepte aussi `--disk`, `--memory` et `--cpus` pour l\'image elle-même.',
155删除: preinstallNames:
156删除: 'python · node · ruby · rust · golang · docker · chromium · gh · claude · opencode · codex · vibe · pi · mcp-chrome · mcp-playwright',
157删除: preinstallCode:
158删除: 'agent-vm setup # assistant interactif\nagent-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=node,chromium,opencode # sans MCP\nagent-vm setup --disk 50 --memory 16 --cpus 8 # pour les gros projets',
159删除: setupHeaders: ['Option', 'Rôle', 'Défaut'],
160删除: setup: [
161删除: ['--disk GB', 'Taille du disque de l\'image de base.', '10'],
162删除: ['--memory GB', 'Mémoire de l\'image de base.', '3'],
163删除: ['--cpus N', 'Nombre de CPU de l\'image de base.', '1'],
164删除: ['--preinstall=LIST', 'N\'installe que cette liste, séparée par des virgules. Saute l\'assistant.', 'assistant'],
165删除: ],
166删除: updateTitle: 'Mise à jour',
167删除: updateBody:
168删除: 'Installé avec curl : relance l\'installeur. Avec Homebrew : `brew upgrade agent-vm`. Depuis un clone : `git pull`, rien à réinstaller. `agent-vm uninstall` retire le lien que posent les installations curl et git. Depuis la 0.1.0, lance `agent-vm setup` une fois : une VM issue d\'une base construite par la 0.1.0 redémarre une fois de plus à son prochain lancement pour installer `sshfs`, nécessaire pour garder `.git` en lecture seule, et `--reset` lui donne la nouvelle base. Cette migration sera retirée dans une prochaine version.',
169152 },
170153
171154
@@ -173,7 +156,7 @@ export const fr: Dictionary = {
173156 eyebrow: 'Utilisation',
174157 title: 'Les commandes du quotidien.',
175158 lede:
176删除: 'Chaque VM est rattachée à un dossier, sauf celles de `--scratch`. Relance une commande d\'agent dans le même dossier et tu retrouves la même machine, avec ses paquets, ses conteneurs et ses identifiants.',
159新增: 'À lancer depuis le dossier de ton projet. La [Référence](#reference) liste chaque commande, option et fichier.',
177160 cards: [
178161 {
179162 title: 'Lancer un agent',
@@ -182,66 +165,40 @@ export const fr: Dictionary = {
182165 },
183166 {
184167 title: 'Accéder au serveur de dev',
185删除: body: 'Lima redirige vers l\'hôte les ports ouverts dans la VM. Démarre un serveur depuis l\'agent ou depuis un shell : il répond sur localhost au même port, dans ton navigateur. L\'inverse est vrai aussi : tout port sur lequel l\'agent écoute dans la VM apparaît sur ton propre localhost. Considère ces ports comme les siens.',
186删除: code: 'agent-vm run npm run dev # puis ouvre localhost:5173\nagent-vm shell # pareil pour docker compose up',
168新增: body: 'Lima redirige chaque port ouvert dans la VM vers le même port de ton localhost : un serveur de dev s\'ouvre dans ton navigateur comme d\'habitude. Considère ces ports comme ceux de l\'agent.',
169新增: code: 'agent-vm run npm run dev # puis ouvre localhost:5173\nagent-vm run docker compose up',
187170 },
188171 {
189172 title: 'Entrer dans la VM',
190173 body: 'Un shell pour aller voir ce qui s\'y passe, ou une commande isolée quand tu sais déjà ce que tu veux.',
191174 code: 'agent-vm shell # zsh dans la VM\nagent-vm run npm install # commande unique\nagent-vm run --tty opencode # un PTY pour les TUI\nagent-vm sh -c "ls -la | grep config"',
192175 },
193删除: {
194删除: title: 'Brancher un IDE en SSH',
195删除: body: 'VS Code Remote-SSH, JetBrains Gateway ou un agent graphique peuvent garder leur fenêtre sur l\'hôte et faire tourner le reste dans la VM. Lima écrit une config SSH par VM avec le port du démarrage en cours, sous l\'alias que `agent-vm info` affiche comme `ssh_host`. Mets les lignes ci-dessous en haut de `~/.ssh/config`, au-dessus de tout `Host *` : ssh garde la première valeur qu\'il trouve, et un `ForwardAgent yes` à cet endroit donnerait à la VM toutes les clés de ton agent SSH, tout comme le `remote.SSH.enableAgentForwarding` de VS Code sans ces lignes. Pour un outil qui enregistre le port plutôt que l\'alias, `--ssh-port` le fixe (`0` revient à un nouveau port à chaque démarrage).',
196删除: code: '# en haut de ~/.ssh/config\nInclude ~/.lima/*/ssh.config\nHost lima-agent-vm-*\n ForwardAgent no\n ForwardX11 no\n\nagent-vm info | grep ^ssh_host # l\'alias à utiliser\nagent-vm --ssh-port 2222 shell # un port fixe',
197删除: },
198176 {
199177 title: 'Gérer le parc',
200178 body: 'Dans `list`, la VM du dossier courant est marquée d\'un `>`. Si un dossier a été renommé, seul `list` permet de retrouver sa VM.',
201删除: code: 'agent-vm list # toutes les VM, la courante marquée, base de chacune\nagent-vm stop # arrête, garde le disque\nagent-vm rm # arrête et supprime\nagent-vm destroy-all # toutes les VM, image de base comprise\nagent-vm doctor # ce qui ne va pas, et quoi lancer',
179新增: code: 'agent-vm list # chaque VM, la courante marquée\nagent-vm stop # arrête, garde le disque\nagent-vm rm # arrête et supprime\nagent-vm destroy-all # tout, image de base comprise\nagent-vm doctor # ce qui ne va pas, et quoi lancer',
202180 },
203181 {
204182 title: 'Restreindre la session',
205删除: body: 'Pratique pour une relecture ou un audit, où l\'agent n\'a rien à écrire. `--readonly` passe tous les partages de l\'hôte en lecture seule : le projet et les entrées de [`~/.agent-vm/volumes`](#customisation-files), y compris celles en `rw`, puisqu\'un volume accessible en écriture qui contient le projet serait un second accès. La restriction s\'applique aux partages Lima : c\'est l\'hôte qui refuse les écritures (l\'hyperviseur, ou le serveur SFTP de Lima sur les partages qui protègent `.git`), et root dans la VM ne peut pas la lever. Là où Lima ne l\'appliquerait que dans l\'invité, agent-vm refuse l\'option : `reverse-sshfs` sans `readonlyNames`, et virtiofs sous QEMU. Une VM en marche dans l\'autre mode est redémarrée, après confirmation (non par défaut) : refusé, ou sans terminal, la commande échoue, dans un sens comme dans l\'autre, pour qu\'une VM en lecture seule d\'une autre session ne repasse pas en écriture sous elle. Le disque de la VM, `$HOME` et `/tmp` restent accessibles en écriture, donc l\'agent peut toujours installer des paquets et écrire ses caches. Toute écriture dans le projet échoue en revanche, y compris `node_modules`, le dossier d\'état de l\'agent et ce qu\'y écrirait un script de runtime, puisque le mode est appliqué avant leur exécution. `--scratch` va plus loin : une nouvelle VM où rien de ce qui est à toi n\'est monté, que l\'agent remplit depuis le réseau (un `git clone` avec un jeton tiré d\'`agent-vm env`), supprimée à la fin de la commande ; sur un terminal, elle demande d\'abord, et un non ouvre un shell dans la VM. Son travail sort par le même chemin, en push ou en pull request. Les connexions n\'y survivent pas : les agents ont besoin de leur jeton dans `agent-vm env`, `ANTHROPIC_API_KEY`, ou `CLAUDE_CODE_OAUTH_TOKEN` obtenu par `claude setup-token`.',
206删除: code: 'agent-vm --readonly shell # rien n\'est modifiable sur l\'hôte\nagent-vm --scratch claude # rien de toi n\'est monté, supprimée à la sortie\nagent-vm --rm run npm test # détruit la VM à la sortie',
183新增: body: '`--readonly` passe tous les partages de l\'hôte en lecture seule, volumes `rw` compris, et c\'est l\'hôte qui l\'impose : root dans la VM ne peut pas le lever. Les paquets s\'installent toujours sur le disque de la VM, mais rien n\'arrive dans le projet. `--scratch` ne monte rien de ce qui est à toi : l\'agent clone le code avec un jeton tiré d\'`agent-vm env`, pousse son travail, et la VM est supprimée à la sortie.',
184新增: code: 'agent-vm --readonly shell # rien de modifiable sur l\'hôte\nagent-vm --scratch claude # rien de monté, supprimée après\nagent-vm --rm run npm test # détruit la VM à la sortie',
207185 },
208186 {
209187 title: 'Redimensionner à la volée',
210删除: body: 'Une nouvelle VM reprend ceux de l\'image de base : 10 Go de disque, 3 Go de mémoire, 1 CPU, sauf si `setup` en a reçu d\'autres. Passe une option avec une autre valeur et la VM est arrêtée, reconfigurée puis redémarrée ; une VM en marche demande d\'abord (non par défaut), et refusé, ou sans terminal, elle garde ses réglages. Le disque peut grandir, jamais rétrécir. CPU et mémoire sont plafonnés à la moitié de l\'hôte, mais VM par VM, pas au total : les VM persistent, et plusieurs VM allumées en même temps s\'additionnent. `agent-vm list` montre ce qui tourne, `rm` et `destroy-all` libèrent la place.',
188新增: body: 'Une nouvelle VM reprend les 10 Go de disque, 3 Go de mémoire et 1 CPU de l\'image. Passe une autre valeur et la VM est reconfigurée, après confirmation si elle tourne. Le disque ne fait que grandir. CPU et mémoire sont plafonnés à la moitié de l\'hôte, par VM.',
211189 code: 'agent-vm --disk 50 opencode\nagent-vm --memory 16 --cpus 8 shell\nagent-vm --reset claude # re-cloner depuis l\'image',
212190 },
213191 {
214192 title: 'Partager des secrets entre VM',
215删除: body: 'De simples lignes `CLÉ=valeur` dans `~/.agent-vm/env`, poussées dans chaque VM à chaque lancement et chargées dans ses shells. Passe par les sous-commandes plutôt que d\'éditer le fichier à la main : il est sourcé par un shell, donc une seule apostrophe mal échappée casse tous les secrets du fichier, pas seulement cette ligne.',
216删除: code: 'agent-vm env set GH_TOKEN # colle-le : ni affiché, ni dans l\'historique\nagent-vm env list # les noms, jamais les valeurs\nagent-vm env has ANTHROPIC_API_KEY\n\n# limité à ce projet\nagent-vm project-env set SOME_PATH ./config',
193新增: body: 'Des lignes `CLÉ=valeur` dans `~/.agent-vm/env`, poussées dans chaque VM à chaque commande. Tout ce qui tourne dans la VM peut les lire : mets-y des jetons étroits et révocables. Passe par `env set` : une seule apostrophe mal placée casse tout le fichier.',
194新增: code: 'agent-vm env set GH_TOKEN # masqué, hors historique\nagent-vm env list # les noms, jamais les valeurs\nagent-vm env has ANTHROPIC_API_KEY\n\n# limité à ce projet\nagent-vm project-env set SOME_PATH ./config',
217195 },
218196 {
219删除: title: 'Interroger depuis un script',
220删除: body: 'Si tu pilotes agent-vm depuis un autre outil, passe par ces commandes plutôt que de parser la sortie destinée aux humains ou de lire `~/.agent-vm` : le nommage des VM, le nom de l\'image et les fichiers d\'état sont des détails d\'implémentation, amenés à changer. `version --min` renvoie `0` si le moteur est assez récent, `1` avec un message s\'il est trop ancien, et `2` si l\'appel lui-même est mal formé : une faute de frappe dans la version demandée ne passe donc pas pour un « moteur trop ancien ». Attention : un moteur antérieur à `--min` ignore l\'option et renvoie `0`. Dans `info`, les booléens valent `1` ou `0`, et ce qui ne peut pas être déterminé vaut `unknown`. Ces quatre commandes fonctionnent sans Lima. Sans terminal, un démarrage s\'arrête là où il poserait une question de sécurité : `security_questions` dans `info` les liste à l\'avance, `--unsafe-disable-security-prompts` les accepte, et `--readonly` les évite. Un redémarrage qu\'il demanderait échoue aussi : `--readonly` sur une VM en marche accessible en écriture, ou l\'inverse, et un redimensionnement d\'une VM en marche n\'est pas appliqué.',
221删除: code: 'agent-vm version --min 0.2.0 || exit 1 # silencieux si OK\nagent-vm name [dir] # nom de la VM d\'un dossier\nagent-vm info [dir] # une paire clé=valeur par ligne\nagent-vm help # l\'aide intégrée\n\n# clés de info : version, template, state_dir,\n# project_env, dir, vm_name, base_exists,\n# vm_exists, vm_running, vm_stale,\n# ssh_host, ssh_config, git_protected,\n# security_questions',
197新增: title: 'Brancher un IDE en SSH',
198新增: body: 'VS Code Remote-SSH, JetBrains Gateway ou un agent graphique peuvent travailler dans la VM en SSH, par l\'alias qu\'`agent-vm info` affiche comme `ssh_host`. Mets ces lignes en haut de `~/.ssh/config` : un `ForwardAgent yes` trouvé avant elles donnerait tes clés SSH à la VM. `--ssh-port` fixe le port pour les outils qui l\'enregistrent.',
199新增: code: '# en haut de ~/.ssh/config\nInclude ~/.lima/*/ssh.config\nHost lima-agent-vm-*\n ForwardAgent no\n ForwardX11 no\n\nagent-vm info | grep ^ssh_host # l\'alias à utiliser\nagent-vm --ssh-port 2222 shell # un port fixe',
222200 },
223201 ],
224删除: customTitle: 'Fichiers de personnalisation',
225删除: customLede:
226删除: 'Six fichiers facultatifs, aucun n\'est nécessaire pour démarrer. Ceux propres à l\'utilisateur sont dans `~/.agent-vm/`, ceux propres à un projet dans le projet lui-même.',
227删除: customTable: {
228删除: headers: ['Fichier', 'Portée', 'Quand'],
229删除: rows: [
230删除: ['~/.agent-vm/env', 'Toutes les VM', 'Copié à chaque lancement'],
231删除: ['~/.agent-vm/volumes', 'Toutes les VM, ou les projets qu\'une entrée désigne', 'Monté à la création de la VM'],
232删除: ['~/.agent-vm/setup.sh', 'Image de base', 'Une fois, pendant agent-vm setup'],
233删除: ['~/.agent-vm/runtime.sh', 'Toutes les VM', 'À chaque commande qui entre dans une VM, en premier'],
234删除: ['.agent-vm.runtime.sh', 'Un seul projet', 'À chaque commande qui entre dans sa VM, après le global'],
235删除: ['.agent-vm.env', 'Un seul projet', 'Copié après l\'env partagé, et prioritaire sur lui'],
236删除: ],
237删除: },
238删除: volumesTitle: 'Montages en plus : ~/.agent-vm/volumes',
239删除: volumesBody:
240删除: 'Une ligne `source[:destination][:mode][:projet]` par montage, `~` développé à gauche, `#` pour les commentaires. Le mode est `ro` (par défaut) ou `rw`, et `rw` ne marche que pour les dossiers. Sans destination, le chemin est monté au même endroit dans la VM. Une destination relative est dans le projet, par-dessus ce que le projet a à cet endroit. Le quatrième champ, après un mode explicite, limite l\'entrée aux projets qu\'il désigne, `*` couvrant n\'importe quoi. Une entrée qui ne se lit pas ainsi est ignorée avec un avertissement, jamais montée partout.',
241删除: volumesCode:
242删除: '# ~/.agent-vm/volumes\n~/.gitconfig # même chemin, lecture seule\n~/.cache/shared:/home/you.guest/.cache/shared:rw\n\n# seulement dans ~/work/webapp, comme son .claude, en lecture seule\n~/.claude-vm/webapp:.claude:ro:~/work/webapp\n\n# tous les projets sous ~/work\n~/.cache/pip:/home/you.guest/.cache/pip:rw:~/work/*\n\n# même chemin, un seul projet\n~/datasets::ro:~/work/ml',
243删除: volumesNote:
244删除: 'Gardé de ton côté et pas dans le projet, exprès : l\'agent peut écrire dans le projet, et une liste de montages rangée là lui permettrait de monter n\'importe quel dossier de l\'hôte dans sa propre VM. Pour la même raison, une destination relative qui sort du projet avec `..` ou passe par un lien symbolique du projet est ignorée. agent-vm crée le point de montage manquant dans le projet sur ta machine : un `.claude` vide y apparaît donc aussi. Les changements valent pour les nouvelles VM : `--reset` les réapplique.',
245202 gitTitle: 'Laisser l\'agent commiter',
246203 gitBody:
247204 'git lit son identité dans l\'environnement : le fichier d\'env partagé suffit, sans aucun `git config` dans la VM. Les quatre variables sont nécessaires, car git exige un committer et pas seulement un auteur.',
@@ -251,24 +208,13 @@ export const fr: Dictionary = {
251208 'Ces variables passent avant `git config`, dans tous les dépôts de la VM : pour une identité par dépôt, règle plutôt `user.name` et `user.email` depuis un script de runtime. `gh` lit `GH_TOKEN` de lui-même, donc `gh pr create` fonctionne sans rien d\'autre. Un `git push` en HTTPS a besoin, lui, d\'un credential helper : une ligne `gh auth setup-git` dans ton [script de runtime](#customisation-files).',
252209 gitHumanTitle: 'Cela dit, garde la main sur les commits',
253210 gitHumanBody:
254删除: 'Que l\'agent puisse commiter ne veut pas dire qu\'il doit le faire. Un commit signifie que tu as lu le diff : laisse l\'agent écrire le code, relis-le et commite toi-même. Avec un Lima qui [garde les `.git` en lecture seule](#git), c\'est même le seul moyen : l\'agent ne peut pas commiter dans le projet partagé, sauf si tu désactives la protection, ce qui lui donne un moyen de lancer des commandes sur ton hôte.',
255删除: gitGuardTitle: 'Protéger .git',
256删除: gitGuardBody:
257删除: 'Git, sur ta machine, exécute ce que désignent le `.git/config` et les hooks d\'un dépôt : `core.fsmonitor` à chaque `git status`, les hooks au commit. Ton éditeur et ton prompt de shell lancent `git status` d\'eux-mêmes : une VM capable d\'écrire dans `.git` pourrait donc lancer des commandes sur ton hôte en quelques secondes, sans que rien n\'apparaisse dans `git diff`. Avec un Lima qui a `sshfs.readonlyNames`, chaque `.git` des partages est en lecture seule pour la VM, à toute profondeur, et c\'est le serveur SFTP de Lima, sur l\'hôte, qui l\'impose : l\'agent lit l\'historique mais ne peut pas commiter. Ce n\'est pas encore intégré en amont ([lima-vm/lima#5529](https://github.com/lima-vm/lima/issues/5529)) : `agent-vm setup` propose une version qui l\'a. Les partages passent alors en `reverse-sshfs`, plus lent sur beaucoup de fichiers (voir [Node.js](#node)).',
258删除: gitGuardCode:
259删除: 'brew unlink lima; brew install sylvinus/tap/lima-sylvinus\nagent-vm doctor # où tu en es\nagent-vm --unsafe-writable-git claude # commiter quand même\n# sans Homebrew : compiler github.com/sylvinus/lima\n# Windows (Git Bash) : setup propose ce téléchargement ; à la main (AMD64) :\nbase=https://github.com/sylvinus/lima/releases/download/v2.3.0-sylvinus.2\ncurl -fsSLO "$base/lima-2.3.0-sylvinus.2-Windows-AMD64.zip" \\\n -fsSLO "$base/lima-additional-guestagents-2.3.0-sylvinus.2-Windows-AMD64.zip"\nsha256sum -c <<\'EOF\' # les sommes fixées par agent-vm\n053f3479b397628b79fe46b0268a50a7f1fc51073691d7d8bce78c9be2ae2787 lima-2.3.0-sylvinus.2-Windows-AMD64.zip\na0828aa4518e21c9519d341be9f32adf07cbeb74a3f8beadaa2f350c45b5933b lima-additional-guestagents-2.3.0-sylvinus.2-Windows-AMD64.zip\nEOF\nfor z in lima-*-Windows-AMD64.zip; do unzip -q -o "$z" -d ~/.local/share/lima-sylvinus; done\nexport PATH="$HOME/.local/share/lima-sylvinus/bin:$PATH" # et dans ~/.bash_profile',
260删除: gitGuardNote:
261删除: 'Chaque `.hg` est aussi en lecture seule, de même que le dossier vers lequel pointe chaque `core.hooksPath` du projet (`.husky` pour husky). Une VM en marche reçoit les nouvelles protections à son prochain démarrage, qu\'agent-vm propose. Le nom `.git` n\'est pas la seule entrée pour autant. Un dossier que la VM remplit des fichiers internes de git (`HEAD`, `objects/`, `refs/`, un `config`) est un dépôt pour git sous n\'importe quel nom, et git lance les commandes que désigne son `config`, comme son pager dès que tu tapes `git log` dans ce dossier : `git config --global safe.bareRepository explicit` fait ignorer ces dossiers par git. Un fichier de config inclus depuis le projet, ou un réglage dont la commande est un fichier du projet, ouvre la même porte. Avant de démarrer une VM aux partages modifiables, agent-vm s\'arrête sur chacun de ceux qu\'il trouve, et sur un Lima sans `readonlyNames`, pour demander s\'il faut continuer : Entrée, ou l\'absence de terminal, annule. Il propose de régler `safe.bareRepository` pour toi. `doctor` les liste, et `info` les nomme pour les scripts. `--unsafe-writable-git`, ou `AGENT_VM_UNSAFE_WRITABLE_GIT=1` dans ton shell, désactive la protection pour que l\'agent puisse commiter, et rouvre ce chemin vers ton hôte : un avertissement le rappelle à chaque lancement.',
262删除: gitGuardEditor:
263删除: 'Ton éditeur est une porte du même genre. L\'agent peut écrire un `.vscode/tasks.json`, des réglages d\'espace de travail, un `eslint.config.js` ou un `build.rs`, que VS Code et ses extensions peuvent exécuter. Quand VS Code te le demande, laisse le projet non approuvé (mode restreint), et n\'approuve pas un dossier parent : cela approuve tout ce qu\'il contient. Les IDE JetBrains proposent le même choix (Safe Mode). La suite est dans [Sécurité](#what-else-on-your-machine-reads-the-project).',
264删除: nodeTitle: 'Node.js : node_modules dans la VM',
265删除: nodeBody:
266删除: 'Des centaines de milliers de fichiers sont lents à travers le partage, et les paquets natifs diffèrent de toute façon entre macOS et Linux. Monte un dossier du disque de la VM par-dessus `node_modules` depuis le [script de runtime](#customisation-files) du projet, lancé à chaque commande :',
267删除: nodeCode:
268删除: '#!/bin/bash\n# .agent-vm.runtime.sh\nset -e\nmkdir -p "$HOME/node_modules" node_modules\nmountpoint -q node_modules ||\n sudo mount --bind "$HOME/node_modules" node_modules',
269删除: nodeNote: 'L\'hôte voit un `node_modules` vide, ou garde le sien : installe aussi de ce côté si ton éditeur a besoin des paquets. `--reset` et `rm` suppriment la copie de la VM. Dans un workspace, le `node_modules` de la racine contient presque tout (npm remonte les paquets, pnpm garde son store dans `node_modules/.pnpm`) ; répète le montage pour un paquet qui a un gros `node_modules` à lui. Un serveur de dev dans la VM peut avoir besoin du polling pour voir les modifications faites sur l\'hôte (Vite : `server.watch.usePolling`).',
270删除: refTitle: 'Toutes les commandes',
271删除: refNote: 'Appelle la commande au lieu de sourcer le fichier : une fonction shell n\'est pas héritée par les processus fils, donc un outil qui lance un shell ne la voit pas.',
211新增: 'Que l\'agent puisse commiter ne veut pas dire qu\'il doit le faire. Un commit signifie que tu as lu le diff : laisse l\'agent écrire le code, relis-le et commite toi-même. Avec `.git` [protégé](#git), c\'est même le seul moyen.',
212新增: },
213新增:
214新增: reference: {
215新增: eyebrow: 'Référence',
216新增: title: 'Chaque commande, option et fichier.',
217新增: lede: 'Ce que les sections précédentes laissent de côté : toutes les commandes, les fichiers et variables de configuration, et ce sur quoi un script peut compter.',
272218 commandGroups: [
273219 {
274220 title: 'Lancer un agent',
@@ -277,7 +223,7 @@ export const fr: Dictionary = {
277223 ['claude [args]', 'Lance Claude Code avec `--dangerously-skip-permissions`.'],
278224 ['codex [args]', 'Lance Codex CLI avec `--dangerously-bypass-approvals-and-sandbox`.'],
279225 ['vibe [args]', 'Lance Mistral Vibe avec `--agent auto-approve`.'],
280删除: ['pi [args]', 'Lance Pi, qui ne demande aucune permission. En option à l\'installation.'],
226新增: ['pi [args]', 'Lance Pi, qui ne demande aucune permission.'],
281227 ],
282228 },
283229 {
@@ -302,7 +248,7 @@ export const fr: Dictionary = {
302248 rows: [
303249 ['install', 'Met `agent-vm` dans ton `PATH`, depuis le clone : `./agent-vm.sh install`. L\'installeur curl le lance pour toi.'],
304250 ['uninstall', 'Retire ce lien. Les VM et `~/.agent-vm` restent.'],
305删除: ['setup', 'Crée l\'image de base. Une seule fois.'],
251新增: ['setup', 'Construit l\'image de base. `--preinstall=LIST` saute l\'assistant ([Ce qu\'il y a dans la VM](#what-is-in-the-vm)) ; `--disk`, `--memory` et `--cpus` la dimensionnent.'],
306252 ['env <sub>', '`set`, `get`, `has`, `unset`, `list` sur les secrets partagés par toutes les VM.'],
307253 ['project-env <sub>', 'Mêmes sous-commandes, limitées à ce projet. Prime sur le fichier partagé.'],
308254 ['help', 'Affiche l\'aide intégrée.'],
@@ -326,64 +272,119 @@ export const fr: Dictionary = {
326272 ['--cpus N', 'Nombre de CPU. Plafonné à la moitié de l\'hôte, par VM.', 'celui de l\'image (1)'],
327273 ['--ssh-port N', 'Port fixe sur l\'hôte pour le SSH de la VM, pour les outils qui l\'enregistrent. `0` revient à un nouveau port à chaque démarrage. Redémarre une VM en marche, après confirmation.', 'un nouveau par démarrage'],
328274 ['--reset', 'Détruit la VM et la re-clone depuis l\'image de base.', 'inactif'],
329删除: ['--readonly', 'Tous les partages de l\'hôte en lecture seule (projet et volumes), côté hôte. Redémarre une VM en marche, après confirmation.', 'inactif'],
275新增: ['--readonly', 'Tous les partages de l\'hôte en lecture seule, projet et volumes. Redémarre une VM en marche, après confirmation.', 'inactif'],
330276 ['--unsafe-writable-git', 'Laisse chaque `.git` modifiable pour que l\'agent puisse commiter, avec un avertissement. Voir [Protéger .git](#git).', 'inactif'],
331删除: ['--unsafe-disable-security-prompts', 'Continue là où un démarrage s\'arrêterait pour poser une question de sécurité (voir [Protéger .git](#git)), sans proposer de modifier ta config git. Les avertissements restent affichés. Pour les scripts sans terminal ; `AGENT_VM_UNSAFE_DISABLE_SECURITY_PROMPTS=1` dans ton shell fait de même.', 'inactif'],
277新增: ['--unsafe-disable-security-prompts', 'Continue là où un démarrage s\'arrêterait sur une question de sécurité (voir [Protéger .git](#git)). Les avertissements restent affichés. Équivaut à `AGENT_VM_UNSAFE_DISABLE_SECURITY_PROMPTS=1`.', 'inactif'],
332278 ['--rm', 'Détruit la VM dès que la commande se termine.', 'inactif'],
333删除: ['--scratch', 'Une nouvelle VM où rien de ce qui est à toi n\'est monté, ni le projet ni les volumes, supprimée à la fin de la commande, Ctrl-C compris. Sur un terminal, la suppression est d\'abord demandée (oui par défaut) : non ouvre un shell dans la VM, et en sortir repose la question. Le fichier d\'env et le script de runtime du projet restent dehors ; `~/.agent-vm/env` et `runtime.sh` y entrent. La VM du dossier n\'est pas touchée, et plusieurs peuvent tourner en même temps. Une exécution tuée net laisse sa VM derrière elle : la prochaine exécution de `--scratch` la supprime, et `doctor` la signale d\'ici là. Voir [Restreindre la session](#tighten-the-session).', 'inactif'],
279新增: ['--scratch', 'Une nouvelle VM où rien de ce qui est à toi n\'est monté, supprimée à la fin de la commande (après confirmation sur un terminal). `~/.agent-vm/env` et `runtime.sh` y entrent, les fichiers du projet non. Plusieurs peuvent tourner en même temps.', 'inactif'],
334280 ],
335删除: },
336删除:
337删除:
338删除:
339删除: reference: {
340删除: eyebrow: 'Référence',
341删除: title: 'Les détails.',
342删除: lede: 'Ce que les cartes ci-dessus laissent de côté : les options de l\'installeur, ce que fait setup, les fichiers de configuration et les variables pour les scripts.',
281新增: envTitle: 'Variables d\'environnement',
282新增: envNote: 'Lues dans ton shell, jamais dans un fichier du projet.',
283新增: envHeaders: ['Variable', 'Rôle', 'Défaut'],
284新增: env: [
285新增: ['AGENT_VM_STATE_DIR', 'Déplace `~/.agent-vm`, pour des tests, la CI ou une seconde installation, sans déplacer `HOME` (et les VM de Lima avec).', '~/.agent-vm'],
286新增: ['AGENT_VM_PROJECT_ENV', 'Le fichier d\'env du projet, relatif au projet ou absolu.', '.agent-vm.env'],
287新增: ['AGENT_VM_PROJECT_RUNTIME', 'Le script de runtime du projet, relatif au projet ou absolu. Hors du projet, c\'est l\'hôte qui le lit.', '.agent-vm.runtime.sh'],
288新增: ['AGENT_VM_HOST_SHARE', 'CPU et mémoire par VM sont plafonnés à ceux de l\'hôte divisés par ce nombre. `1` : tout l\'hôte.', '2'],
289新增: ['AGENT_VM_BIN_DIR', 'Où `install` place le lien `agent-vm`.', '~/.local/bin'],
290新增: ['AGENT_VM_LIMA_DIR', 'Windows : où `setup` installe sa version de Lima.', '~/.local/share/lima-sylvinus'],
291新增: ['AGENT_VM_QEMU_DIR', 'Windows : où trouver QEMU, s\'il n\'est pas dans le `PATH`.', '/c/Program Files/qemu'],
292新增: ['AGENT_VM_UNSAFE_WRITABLE_GIT', '`1` : équivaut à `--unsafe-writable-git`.', 'non définie'],
293新增: ['AGENT_VM_UNSAFE_DISABLE_SECURITY_PROMPTS', '`1` : équivaut à `--unsafe-disable-security-prompts`.', 'non définie'],
294新增: ],
295新增: customTitle: 'Fichiers de personnalisation',
296新增: customLede:
297新增: 'Six fichiers facultatifs, aucun n\'est nécessaire pour démarrer. Ceux propres à l\'utilisateur sont dans `~/.agent-vm/`, ceux propres à un projet dans le projet lui-même.',
298新增: customTable: {
299新增: headers: ['Fichier', 'Portée', 'Quand'],
300新增: rows: [
301新增: ['~/.agent-vm/env', 'Toutes les VM', 'Copié à chaque lancement'],
302新增: ['~/.agent-vm/volumes', 'Toutes les VM, ou les projets qu\'une entrée désigne', 'Monté à la création de la VM'],
303新增: ['~/.agent-vm/setup.sh', 'Image de base', 'Une fois, pendant agent-vm setup'],
304新增: ['~/.agent-vm/runtime.sh', 'Toutes les VM', 'À chaque commande qui entre dans une VM, en premier'],
305新增: ['.agent-vm.runtime.sh', 'Un seul projet', 'À chaque commande qui entre dans sa VM, après le global'],
306新增: ['.agent-vm.env', 'Un seul projet', 'Copié après l\'env partagé, et prioritaire sur lui'],
307新增: ],
308新增: },
309新增: volumesTitle: 'Montages en plus : ~/.agent-vm/volumes',
310新增: volumesBody:
311新增: 'Une ligne `source[:destination][:mode][:projet]` par montage, `~` développé à gauche, `#` pour les commentaires. Le mode est `ro` (par défaut) ou `rw`, et `rw` ne marche que pour les dossiers. Sans destination, le chemin est monté au même endroit dans la VM ; une destination relative est dans le projet. Le quatrième champ limite l\'entrée aux projets qu\'il désigne, `*` couvrant n\'importe quoi.',
312新增: volumesCode:
313新增: '# ~/.agent-vm/volumes\n~/.gitconfig # même chemin, lecture seule\n~/.cache/shared:/home/you.guest/.cache/shared:rw\n\n# seulement dans ~/work/webapp, en .claude, lecture seule\n~/.claude-vm/webapp:.claude:ro:~/work/webapp\n\n# tous les projets sous ~/work\n~/.cache/pip:/home/you.guest/.cache/pip:rw:~/work/*\n\n# même chemin, un seul projet\n~/datasets::ro:~/work/ml',
314新增: volumesNote:
315新增: 'La liste reste de ton côté, pas dans le projet : l\'agent écrit dans le projet, et pourrait sinon monter n\'importe quel dossier de l\'hôte dans sa VM. Une destination relative qui sort du projet, par `..` ou un lien symbolique, est ignorée. Les changements valent pour les nouvelles VM : `--reset` les réapplique.',
316新增: nodeTitle: 'Node.js : node_modules dans la VM',
317新增: nodeBody:
318新增: 'Des centaines de milliers de fichiers sont lents à travers le partage, et les paquets natifs diffèrent de toute façon entre macOS et Linux. Monte un dossier du disque de la VM par-dessus `node_modules` depuis le [script de runtime](#customisation-files) du projet, lancé à chaque commande :',
319新增: nodeCode:
320新增: '#!/bin/bash\n# .agent-vm.runtime.sh\nset -e\nmkdir -p "$HOME/node_modules" node_modules\nmountpoint -q node_modules ||\n sudo mount --bind "$HOME/node_modules" node_modules',
321新增: nodeNote: 'L\'hôte voit un `node_modules` vide, ou garde le sien : installe aussi de ce côté si ton éditeur a besoin des paquets. Dans un workspace, répète le montage pour un paquet qui a un gros `node_modules` à lui. Un serveur de dev dans la VM peut avoir besoin du polling pour voir les modifications faites sur l\'hôte (Vite : `server.watch.usePolling`).',
322新增: scriptsTitle: 'Depuis un script',
323新增: scriptsParas: [
324新增: 'Passe par ces commandes plutôt que de parser la sortie destinée aux humains ou de lire `~/.agent-vm` : les noms de VM et les fichiers d\'état sont des détails d\'implémentation. Toutes fonctionnent sans Lima.',
325新增: '`version --min` renvoie `0` si la version suffit, `1` si elle est plus ancienne, `2` pour un appel mal formé ; un moteur antérieur à `--min` l\'ignore et renvoie `0`. Dans `info`, les booléens valent `1` ou `0`, `unknown` quand c\'est indéterminable, et `base_exists=1` veut dire que l\'image est utilisable.',
326新增: 'Un démarrage ne pose ses questions que si la sortie d\'erreur est un terminal : sinon, il s\'arrête là. `security_questions` dans `info` les nomme à l\'avance (`lima`, `lima-unknown`, `hooks`, `git-config`, `bare-repo` ou `none`), et `--unsafe-disable-security-prompts` les accepte une fois l\'accord de l\'utilisateur obtenu.',
327新增: ],
328新增: scriptsCode:
329新增: 'agent-vm version --min 0.2.0 || exit 1 # silencieux si OK\nagent-vm name [dir] # nom de la VM d\'un dossier\nagent-vm info [dir] # une paire clé=valeur par ligne\n\n# clés de info : version, template, state_dir,\n# project_env, dir, vm_name, base_exists,\n# vm_exists, vm_running, vm_stale,\n# ssh_host, ssh_config, git_protected,\n# security_questions',
343330 groups: [
344331 {
345删除: title: 'Installation et setup',
332新增: title: 'Installation et mise à jour',
346333 topics: [
347334 {
348335 title: 'Options de l\'installeur',
349336 paras: [
350删除: 'Les options se placent après `sh -s --` : `--version X.Y.Z`, `--git` pour un clone de `main`, `--dir DIR` pour un autre emplacement que `~/.local/share/agent-vm` (ou `$XDG_DATA_HOME/agent-vm`). Pour lire l\'installeur d\'abord, télécharge-le, puis lance-le avec `sh`.',
351删除: 'Il se termine par `agent-vm install`, qui place un lien `agent-vm` dans `~/.local/bin` (`AGENT_VM_BIN_DIR` le change), ou un petit lanceur là où Git Bash ne crée pas de liens. La commande marche depuis n\'importe quel shell, fish compris : la ligne `source .../agent-vm.sh` que les versions précédentes ajoutaient à ton rc de shell ne sert plus, et `install` le signale quand il la trouve. `./install.sh` reste, pour l\'instant, comme raccourci.',
337新增: 'Les options se placent après `sh -s --` : `--version X.Y.Z`, `--git` pour un clone de `main`, `--dir DIR` au lieu de `~/.local/share/agent-vm`. Pour lire l\'installeur d\'abord, télécharge-le, puis lance-le avec `sh`.',
352338 ],
353339 list: [],
354删除: code: 'curl -fsSL https://www.agent-vm.org/install.sh | sh -s -- --dir ~/tools/agent-vm\ncurl -fsSLO https://www.agent-vm.org/install.sh && sh install.sh',
340新增: code: 'curl -fsSL https://www.agent-vm.org/install.sh |\n sh -s -- --dir ~/tools/agent-vm\n\n# le lire d\'abord\ncurl -fsSLO https://www.agent-vm.org/install.sh\nsh install.sh',
355341 },
356342 {
357删除: title: 'Ce que fait setup',
343新增: title: 'Mettre à jour',
358344 paras: [
359删除: 'L\'assistant propose d\'abord la sélection par défaut ; réponds `n` pour être interrogé composant par composant. La création de la VM (le premier lancement télécharge une image Debian) et l\'installation des paquets n\'affichent que leurs 10 dernières lignes, sur place ; la sortie complète va dans `~/.agent-vm/setup.log`.',
360删除: 'Les noms `mcp-*` branchent un serveur MCP dans chaque agent installé, sauf Pi, qui n\'a pas de support MCP. Laisse-les de côté pour ne pas toucher à la config MCP des agents, quand les serveurs MCP se gèrent projet par projet. `mcp-playwright` n\'entraîne pas `node` : ajoute-le aussi.',
361删除: 'Relancer `setup` reconstruit l\'image de base, pas les VM existantes : agent-vm prévient quand une VM vient d\'une image plus ancienne, et `--reset` la reclone. Un `setup` interrompu laisse une image inutilisable, que `info` signale par `base_exists=0` : relance `setup`.',
345新增: 'Relance l\'installeur curl, `brew upgrade agent-vm`, ou `git pull` dans un clone. `agent-vm uninstall` retire le lien ; les VM et `~/.agent-vm` restent.',
346新增: 'Relancer `setup` reconstruit l\'image de base, pas les VM qui en sont clonées : agent-vm les signale, et `--reset` en reclone une. Son journal complet est dans `~/.agent-vm/setup.log`.',
347新增: 'Depuis la 0.1.0, lance `agent-vm setup` : d\'ici là, chaque VM issue d\'une base construite par la 0.1.0 redémarre une fois de plus pour installer `sshfs`.',
362348 ],
363349 list: [],
364350 code: '',
365351 },
366352 {
367删除: title: 'Windows, WSL et chemins',
353新增: title: 'Windows et WSL',
354新增: paras: [
355新增: 'Les VM ont besoin de la fonctionnalité Windows Hypervisor Platform. Elle est désactivée par défaut et seul un administrateur peut l\'activer, une fois, dans les Fonctionnalités de Windows ou avec la commande ci-dessous, puis un redémarrage. Sur un portable géré, c\'est une demande au service informatique.',
356新增: 'Sous WSL2, KVM demande la virtualisation imbriquée, transmise par l\'hôte Windows ; WSL1 ne peut pas faire tourner de VM.',
357新增: ],
358新增: list: [],
359新增: code: '# dans PowerShell en administrateur, puis redémarrer\nDISM /Online /Enable-Feature `\n /FeatureName:HypervisorPlatform /All',
360新增: },
361新增: {
362新增: title: 'Chemins',
368363 paras: [
369删除: 'Sous Windows, `setup` installe la version de Lima dans `~/.local/share/lima-sylvinus` (`AGENT_VM_LIMA_DIR` la déplace) et cherche QEMU dans `/c/Program Files/qemu` quand il n\'est pas dans le `PATH` (`AGENT_VM_QEMU_DIR` indique un autre dossier).',
370删除: 'Sous WSL2, KVM demande la virtualisation imbriquée, que l\'hôte Windows doit laisser passer ; WSL1 ne peut pas faire tourner de VM. `setup` et `doctor` disent dans quel cas tu es.',
371删除: 'Lima ne sait pas monter un chemin qui contient un espace, et agent-vm le refuse, comme un chemin avec un guillemet, une barre oblique inverse ou un caractère de contrôle. Les chemins d\'iCloud Drive contiennent des espaces : passe par un lien symbolique.',
364新增: 'Les chemins avec un espace, un guillemet, une barre oblique inverse ou un caractère de contrôle sont refusés. Les chemins d\'iCloud Drive contiennent des espaces : passe par un lien symbolique.',
372365 ],
373366 list: [],
374删除: code: 'ln -s ~/Library/Mobile\\ Documents/com~apple~CloudDocs/Dev ~/Dev\ncd ~/Dev/ton-projet && agent-vm claude',
367新增: code: 'ln -s ~/Library/Mobile\\ Documents/com~apple~CloudDocs/Dev \\\n ~/Dev\ncd ~/Dev/ton-projet && agent-vm claude',
368新增: },
369新增: {
370新增: title: 'Ports et doctor',
371新增: paras: [
372新增: 'Un port fixé avec `--ssh-port` reste jusqu\'à `--reset` ou `rm`. `doctor` n\'affiche aucun secret : sa sortie peut aller telle quelle dans une issue.',
373新增: ],
374新增: list: [],
375新增: code: '',
375376 },
376377 ],
377378 },
378379 {
379删除: title: 'Agents',
380新增: title: 'Agents et configuration',
380381 topics: [
381382 {
382383 title: 'Comment chaque agent est lancé',
383384 paras: [
384删除: 'Claude Code reçoit aussi le mode sans confirmation par des réglages gérés (`/etc/claude-code/managed-settings.json`) : il perd l\'option de ligne de commande quand il se relance lui-même ([#72479](https://github.com/anthropics/claude-code/issues/72479)). Le `--auto` d\'OpenCode accepte toute demande qui n\'est pas explicitement refusée. Pour Pi, setup règle `defaultProjectTrust: "always"`, pour que les extensions et skills du `.pi/` d\'un projet se chargent.',
385删除: 'Connecte-toi dans la VM (`claude login`, `gh auth login`) : la connexion reste dans cette VM. Monter tes identifiants de l\'hôte à la place donnerait ta connexion principale à tout ce qui tourne dans la VM.',
386删除: 'Lima transmet `COLORTERM` à la VM. Un terminal en couleurs 24 bits qui ne le définit pas (Terminal.app sous macOS 26, parfois) a besoin de `export COLORTERM=truecolor`.',
385新增: 'Claude Code reçoit aussi le mode sans confirmation par des réglages gérés, car il perd l\'option quand il se relance lui-même ([#72479](https://github.com/anthropics/claude-code/issues/72479)). Pour Pi, setup règle `defaultProjectTrust: "always"`.',
386新增: 'Connecte-toi dans la VM (`claude login`, `gh auth login`) : la connexion reste dans cette VM. Monter tes identifiants de l\'hôte les donnerait à tout ce qui y tourne.',
387新增: 'Un terminal en couleurs 24 bits qui ne définit pas `COLORTERM` (Terminal.app sous macOS 26) a besoin de `export COLORTERM=truecolor`.',
387388 ],
388389 list: [],
389390 code: '',
@@ -391,24 +392,17 @@ export const fr: Dictionary = {
391392 {
392393 title: 'Serveurs MCP',
393394 paras: [
394删除: 'Playwright MCP tourne avec `--executable-path /usr/bin/chromium` et `PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1` : il ne télécharge aucun navigateur à lui. Pour un autre moteur, modifie son entrée (retire `--executable-path`, ajoute `--browser firefox`) et lance `npx playwright install firefox` dans la VM.',
395删除: 'Pour ajouter un serveur à Claude Code, ajoute-le à `mcpServers` dans `~/.claude.json`, depuis `~/.agent-vm/setup.sh` ou dans une VM.',
395新增: 'Playwright MCP utilise le Chromium de la VM et ne télécharge aucun navigateur. Pour un autre moteur, modifie son entrée (retire `--executable-path`, ajoute `--browser firefox`) et lance `npx playwright install firefox`. Ajoute tes propres serveurs à `mcpServers` dans `~/.claude.json`, depuis `~/.agent-vm/setup.sh` ou dans une VM.',
396396 ],
397397 list: [],
398删除: code: '{\n "mcpServers": {\n "postgres": {\n "command": "npx",\n "args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost:5432/mydb"]\n }\n }\n}',
398新增: code: '{\n "mcpServers": {\n "postgres": {\n "command": "npx",\n "args": [\n "-y",\n "@modelcontextprotocol/server-postgres",\n "postgresql://localhost:5432/mydb"\n ]\n }\n }\n}',
399399 },
400删除: ],
401删除: },
402删除: {
403删除: title: 'Configuration',
404删除: topics: [
405400 {
406401 title: 'Les fichiers d\'environnement',
407402 paras: [
408删除: 'Des lignes `CLÉ=valeur`, `#` pour les commentaires, poussées dans la VM à chaque commande : une modification n\'a pas besoin de `--reset`. agent-vm ne connaît aucun des noms : `gh` lit `GH_TOKEN`, Claude Code `ANTHROPIC_API_KEY` quand il n\'est pas connecté, Codex `OPENAI_API_KEY`, Vibe `MISTRAL_API_KEY`.',
409删除: 'Tout ce qui tourne dans la VM peut les lire, l\'agent et ses dépendances compris, et les envoyer ailleurs. Mets-y des jetons dédiés, au périmètre étroit, que tu peux révoquer.',
410删除: 'Le fichier du projet, `.agent-vm.env` (`AGENT_VM_PROJECT_ENV` le déplace, relatif au projet ou absolu), est poussé après le fichier partagé et l\'emporte. Il est dans un dépôt, donc pas de secret dedans : `project-env set` affiche la ligne qui l\'ignore dans git, ou le `git rm --cached` quand il est déjà suivi. La VM peut en faire un lien symbolique : c\'est donc elle qui le lit à chaque démarrage, et `project-env` refuse un lien, vérifié avec `perl` pour que la VM ne puisse pas le devancer.',
411删除: '`get` et `has` lisent le fichier, jamais l\'environnement, et ne l\'exécutent jamais. Ils acceptent ce qu\'écrit `set` et les lignes dotenv simples (`CLÉ=valeur`, `export`, guillemets, commentaire en fin de ligne). Une valeur qui demande un shell (`$`, accents graves, barres obliques inverses, `~`, `;`, `|`...) sort avec le code `2`, comme une clé qui apparaît après une telle ligne : le shell peut lire les lignes suivantes autrement. `set` réécrit une valeur sous une forme qu\'ils lisent. Sans valeur, `set` la lit sur l\'entrée standard, ou te la fait taper sans l\'afficher : un secret reste ainsi hors de l\'historique de ton shell.',
403新增: 'agent-vm ne connaît aucun des noms : `gh` lit `GH_TOKEN`, Claude Code `ANTHROPIC_API_KEY`, Codex `OPENAI_API_KEY`, Vibe `MISTRAL_API_KEY`. Une modification n\'a pas besoin de `--reset`.',
404新增: 'Le `.agent-vm.env` du projet est poussé après le fichier partagé et l\'emporte. Il est dans un dépôt, donc pas de secret dedans : `project-env set` affiche la ligne qui l\'ignore dans git.',
405新增: '`get` et `has` lisent le fichier sans l\'exécuter, et sortent avec le code `2` sur une valeur qui demande un shell. `set` sans valeur te la fait taper sans l\'afficher, hors de l\'historique de ton shell.',
412406 ],
413407 list: [],
414408 code: '',
@@ -416,9 +410,8 @@ export const fr: Dictionary = {
416410 {
417411 title: 'Montages supplémentaires, en détail',
418412 paras: [
419删除: 'Une destination est prise telle quelle, sans `~` : le dossier personnel dans la VM est `/home/<toi>.guest` (Lima 2.1 et suivants, `.linux` avant). Une source qui n\'existe pas est ignorée, avec un avertissement. `rw` ne marche que pour les dossiers. Une destination nommée `ro` ou `rw` demande un mode explicite après elle, et une destination ne peut pas contenir `:`.',
420删除: 'Un fichier seul est lié en dur dans `~/.agent-vm/file-mounts/<vm>/` puis monté dans la VM, sans son dossier. D\'un système de fichiers à l\'autre, il est copié à la place, et les modifications de l\'hôte attendent le démarrage suivant.',
421删除: 'Un point de montage manquant dans le projet est créé sans suivre de lien symbolique, ce qui demande `perl`.',
413新增: 'Une destination est prise telle quelle, sans `~` : le dossier personnel dans la VM est `/home/<toi>.guest` (`.linux` avant Lima 2.1). Une source absente est ignorée, avec un avertissement.',
414新增: 'Un fichier seul est lié en dur dans `~/.agent-vm/file-mounts/<vm>/` puis monté. D\'un système de fichiers à l\'autre, il est copié, et les modifications de l\'hôte attendent le démarrage suivant.',
422415 ],
423416 list: [],
424417 code: '# ~/.agent-vm/volumes : tes instructions et skills Claude,\n# pas tout ~/.claude, qui contient ta connexion sous Linux\n~/.claude/CLAUDE.md:/home/toi.guest/.claude/CLAUDE.md\n~/.claude/skills:/home/toi.guest/.claude/skills',
@@ -426,48 +419,55 @@ export const fr: Dictionary = {
426419 {
427420 title: 'Scripts de setup et de runtime',
428421 paras: [
429删除: '`~/.agent-vm/setup.sh` tourne une fois, dans l\'image de base, à la fin de `setup`, en tant qu\'utilisateur de la VM avec sudo. `~/.agent-vm/runtime.sh` tourne dans la VM à chaque commande qui y entre, puis le `.agent-vm.runtime.sh` du projet : les deux doivent pouvoir être relancés. [`runtime.example.sh`](https://github.com/sylvinus/agent-vm/blob/main/runtime.example.sh) couvre l\'identité git, `gh auth setup-git`, les skills, les serveurs MCP et une ligne d\'état. Pas de clé privée dedans : l\'agent peut lire tout ce qu\'ils mettent en place.',
430删除: '`setup.sh` tourne sous zsh. Un script de runtime tourne sous le shell que nomme sa première ligne (bash ou sh, zsh sinon). Les deux sont lus sur l\'entrée standard : `$0` est le shell, et une commande du script qui lit l\'entrée standard lit la suite du script ; donne-lui `</dev/null`.',
431删除: '`AGENT_VM_PROJECT_RUNTIME` déplace le script du projet, relatif au projet ou absolu, `..` résolu comme le fait `cd`. Dans le projet, c\'est la VM qui le lit ; en dehors, l\'hôte. mise reprend `.ruby-version`, `.python-version`, `.node-version` et `.tool-versions`.',
422新增: '`~/.agent-vm/setup.sh` tourne une fois dans l\'image, à la fin de `setup`, sous zsh avec sudo. `~/.agent-vm/runtime.sh`, puis le `.agent-vm.runtime.sh` du projet, tournent à chaque commande qui entre dans la VM : les deux doivent pouvoir être relancés. [`runtime.example.sh`](https://github.com/sylvinus/agent-vm/blob/main/runtime.example.sh) couvre l\'identité git, `gh auth setup-git`, les skills et les serveurs MCP.',
423新增: 'Ils sont lus sur l\'entrée standard : donne `</dev/null` à une commande qui la lit. Pas de clé privée dedans, l\'agent peut lire ce qu\'ils mettent en place.',
432424 ],
433425 list: [],
434426 code: '# .agent-vm.runtime.sh\nmise install\nnpm install\ndocker compose up -d',
435427 },
436428 ],
437429 },
430新增: ],
431新增: },
432新增:
433新增: security: {
434新增: eyebrow: 'Sécurité',
435新增: title: 'Ce qui traverse la frontière.',
436新增: lede: 'La VM ne peut pas sortir de ses partages. Reste ce qui les traverse : le dossier du projet, que l\'agent écrit et que ta machine lit, le terminal et le réseau.',
437新增: groups: [
438438 {
439删除: title: 'Exploitation et scripts',
439新增: id: 'git',
440新增: title: 'Protéger .git',
440441 topics: [
441442 {
442删除: title: 'Ressources, ports, doctor',
443新增: title: 'Pourquoi .git',
443444 paras: [
444删除: 'Processeurs et mémoire sont plafonnés à la moitié de l\'hôte par VM, avec un avertissement. `AGENT_VM_HOST_SHARE` change le diviseur (`1` pour tout l\'hôte) ; quand la capacité de l\'hôte ne peut pas être lue, rien n\'est plafonné.',
445删除: 'Un port fixé avec `--ssh-port` reste jusqu\'à `--reset` ou `rm`. Un port déjà fixé pour une autre VM Lima est refusé ; un port pris par autre chose fait échouer le démarrage. La VM doit tourner pour que SSH se connecte.',
446删除: '`doctor` n\'affiche aucun secret : sa sortie peut aller telle quelle dans une issue. Il sort avec le code `1` quand une vérification échoue.',
445新增: 'Git, sur ta machine, exécute ce que désignent le `.git/config` et les hooks d\'un dépôt : `core.fsmonitor` à chaque `git status`, les hooks au commit. Ton éditeur et ton prompt lancent `git status` d\'eux-mêmes : une VM capable d\'écrire dans `.git` pourrait lancer des commandes sur ton hôte en quelques secondes, sans que rien n\'apparaisse dans `git diff`.',
446新增: 'Avec un Lima qui a `sshfs.readonlyNames`, chaque `.git` et `.hg` des partages est en lecture seule pour la VM, à toute profondeur, et c\'est le serveur SFTP de Lima, sur l\'hôte, qui l\'impose. L\'agent lit l\'historique mais ne peut pas commiter. Ce n\'est pas encore intégré en amont ([lima-vm/lima#5529](https://github.com/lima-vm/lima/issues/5529)) : `agent-vm setup` propose une version qui l\'a. Les partages passent alors en `reverse-sshfs`, plus lent sur beaucoup de fichiers (voir [Node.js](#node)).',
447447 ],
448448 list: [],
449删除: code: '',
449新增: code: 'brew unlink lima; brew install sylvinus/tap/lima-sylvinus\nagent-vm doctor # où tu en es\n\n# laisser l\'agent commiter quand même\nagent-vm --unsafe-writable-git claude',
450450 },
451451 {
452删除: title: 'Pour les intégrateurs',
452新增: title: 'Au-delà du nom .git',
453453 paras: [
454删除: '`AGENT_VM_STATE_DIR` déplace `~/.agent-vm`, pour un test, un job de CI ou une seconde installation, sans déplacer `HOME` (qui déplacerait aussi les VM de Lima). Relis-le dans `info` (`state_dir=`) plutôt que depuis `$HOME`.',
455删除: '`base_exists=1` veut dire que l\'image de base est utilisable, pas seulement listée par Lima. `agent-vm.sh` peut être sourcé sous `set -u` et `pipefail`, pas sous `set -e`.',
456删除: 'Un démarrage pose ses questions sur le terminal, et seulement quand la sortie d\'erreur en est un aussi : un outil qui capture cette sortie reçoit la réponse « non », et le démarrage s\'arrête. `security_questions=` dans `info` dit à l\'avance sur quoi s\'arrêterait le démarrage d\'une VM qui ne tourne pas (`lima`, `lima-unknown`, `hooks`, `git-config`, `bare-repo`, ou `none`), et `git_protected=` si `.git` serait en lecture seule. Passe `--unsafe-disable-security-prompts` pour continuer malgré tout, une fois que l\'utilisateur a donné son accord.',
454新增: 'Le dossier vers lequel pointe un `core.hooksPath` du projet (`.husky` pour husky) est aussi en lecture seule. Un dossier qui contient les fichiers internes de git (`HEAD`, `objects/`, `refs/`, un `config`) est un dépôt sous n\'importe quel nom : régler `safe.bareRepository` à `explicit` dans ta config git globale le fait ignorer par git. Une config incluse depuis le projet, ou des hooks à la racine d\'un dépôt, ouvrent la même porte.',
455新增: 'Avant de démarrer une VM aux partages modifiables, agent-vm s\'arrête sur chacun de ceux qu\'il trouve, et sur un Lima sans `readonlyNames`, pour demander : Entrée, ou l\'absence de terminal, annule. `doctor` les liste. `--unsafe-writable-git` (ou `AGENT_VM_UNSAFE_WRITABLE_GIT=1` dans ton shell, jamais lu depuis le projet) laisse l\'agent commiter et rouvre ce chemin vers ton hôte, avec un avertissement à chaque lancement.',
457456 ],
458457 list: [],
459458 code: '',
460459 },
460新增: {
461新增: title: 'La version de Lima',
462新增: paras: [
463新增: 'Sous Windows, `setup` la télécharge et la vérifie avec des sommes de contrôle fixées dans agent-vm. Ailleurs, Homebrew l\'installe, ou compile-la depuis les sources.',
464新增: 'Un Lima dont agent-vm ne sait pas lire la réponse arrête le démarrage sur une erreur, plutôt que de passer pour un Lima sans `readonlyNames`.',
465新增: ],
466新增: list: [],
467新增: code: '# revenir au Lima de Homebrew\nbrew uninstall lima-sylvinus && brew link lima\n\n# la version de Lima, sans Homebrew (Go et make nécessaires)\ngit clone --depth 1 -b v2.3.0-sylvinus.2 https://github.com/sylvinus/lima\ncd lima && make native && sudo make install',
468新增: },
461469 ],
462470 },
463删除: ],
464删除: },
465删除:
466删除: security: {
467删除: eyebrow: 'Sécurité',
468删除: title: 'Ce qui traverse la frontière.',
469删除: lede: 'La VM ne peut pas sortir de ses partages. Reste ce qui les traverse : le dossier du projet, que l\'agent écrit et que ta machine lit, le terminal et le réseau.',
470删除: groups: [
471471 {
472472 title: 'Ce que fait agent-vm',
473473 topics: [
@@ -481,15 +481,13 @@ export const fr: Dictionary = {
481481 code: '',
482482 },
483483 {
484删除: title: '--readonly et .git, en détail',
484新增: title: '--readonly, en détail',
485485 paras: [
486删除: '`--readonly` couvre tous les partages, volumes `rw` compris, avec un avertissement qui les nomme : un volume accessible en écriture contenant le projet serait une seconde entrée. L\'hôte l\'impose-t-il ? agent-vm le déduit de ce que Lima rapporte sur la VM, jamais en interrogeant l\'invité. Il garde la trace des montages donnés à chaque VM, si bien qu\'une VM qui a encore un partage en écriture est modifiée ; une VM arrêtée reçoit le mode avant de démarrer.',
487删除: 'Chaque `.git` est en lecture seule à toute profondeur, quelle que soit la casse du nom. `git status`, `diff` et `log` marchent dans la VM ; `commit`, non. Chaque `.hg` l\'est aussi, pour les hooks de Mercurial.',
488删除: 'Quand le `core.hooksPath` de git place les hooks dans le projet (husky règle `.husky/_`), le premier dossier de ce chemin, depuis la racine de son dépôt, est lui aussi en lecture seule, par son nom et à toute profondeur comme `.git` : l\'agent ne peut pas changer les hooks que git lance à tes commits. Un nom qui ne commence pas par un point (`tools` pour `tools/hooks`) verrouillerait tous les dossiers de ce nom dans le projet : le démarrage demande donc d\'abord, oui par défaut. Des hooks à la racine d\'un dépôt ne peuvent pas être protégés ainsi : le démarrage s\'arrête donc dessus, comme sur les autres risques plus haut. Sont examinés le dépôt qui contient le projet et ceux jusqu\'à deux niveaux en dessous, à chaque démarrage : `doctor` dit si la VM a ces noms.',
489删除: 'Un Lima dont agent-vm ne sait pas lire la réponse (un `limactl validate` qui échoue, une formulation inconnue) arrête le démarrage sur une erreur, plutôt que d\'être pris pour un Lima sans `readonlyNames`, ce qui retirerait la protection de tes VM ; `--readonly`, `--unsafe-writable-git` et `--scratch` démarrent quand même. Les variables `AGENT_VM_UNSAFE_*` doivent valoir exactement `1`, et sont lues dans ton shell, jamais dans un fichier du projet. Un outil qui charge des variables d\'environnement depuis le projet au `cd` (le `[env]` de mise, par exemple) peut toutefois les définir : voir [mise](#shell-commands-hooks) plus bas. Avec un Lima sans `readonlyNames`, une VM revient au type de montage par défaut de Lima à son démarrage suivant, car `reverse-sshfs` sans cette option est le moins sûr des deux. Revenir au Lima de Homebrew : `brew uninstall lima-sylvinus && brew link lima`.',
486新增: '`--readonly` couvre tous les partages, volumes `rw` compris : un volume accessible en écriture contenant le projet serait une seconde entrée. agent-vm déduit de ce que Lima rapporte si l\'hôte l\'impose, jamais en interrogeant l\'invité. Là où ce ne serait pas le cas (`reverse-sshfs` sans `readonlyNames`, virtiofs sous QEMU), l\'option est refusée.',
487新增: 'Une VM en marche dans l\'autre mode est redémarrée, après confirmation. Refusé, ou sans terminal, la commande échoue : la VM en lecture seule d\'une autre session ne repasse jamais en écriture sous elle.',
490488 ],
491489 list: [],
492删除: code: '# la version de Lima, sans Homebrew (Go et make nécessaires)\ngit clone --depth 1 -b v2.3.0-sylvinus.2 https://github.com/sylvinus/lima\ncd lima && make native && sudo make install',
490新增: code: '',
493491 },
494492 ],
495493 },
@@ -499,34 +497,34 @@ export const fr: Dictionary = {
499497 {
500498 title: 'La règle',
501499 paras: [
502删除: 'L\'agent écrit dans le dossier du projet : tout ce qui, sur ta machine, le lit et agit selon ce qu\'il y trouve peut exécuter ce que l\'agent a écrit. agent-vm ferme ce que presque toutes les machines ont et qui se lance sans que tu fasses rien : git, par `.git`, `.hg`, les dossiers de hooks et la config git (voir [Protéger .git](#git)). Il ne peut pas connaître tes autres outils, ni verrouiller les fichiers qu\'ils lisent sans empêcher l\'agent de travailler : il doit pouvoir écrire `.vscode/`, `docker-compose.yml` ou `mise.toml`.',
503删除: 'Donc, sur ta machine, ouvre le projet dans ton éditeur et utilise git dedans ; lance tout le reste dans la VM, avec `agent-vm run`. Les listes qui suivent sont des exemples, classés selon ce qui les déclenche, pas un inventaire complet : compare-les à ta propre installation.',
500新增: 'Tout ce qui, sur ta machine, lit le projet et agit selon ce qu\'il y trouve peut exécuter ce que l\'agent a écrit. agent-vm ferme les portes de git (voir [Protéger .git](#git)), mais ne peut pas verrouiller les fichiers que lisent tes autres outils sans empêcher l\'agent de travailler.',
501新增: 'Donc, sur ta machine, ouvre le projet dans ton éditeur et utilise git dedans ; lance tout le reste dans la VM, avec `agent-vm run`. Les listes qui suivent sont des exemples, pas un inventaire.',
504502 ],
505503 list: [
506删除: 'Rien du tout : ce qui se lance quand tu fais `cd` dans le dossier, quand ton prompt se redessine, quand ton éditeur l\'ouvre ou qu\'un gestionnaire de fichiers l\'affiche. Le cas le plus dangereux, puisque tu ne décides jamais rien.',
507删除: 'Un geste que tu fais de toute façon : `git commit` lance des hooks dont les commandes sont dans l\'arborescence, `docker compose up` monte ce que nomme le fichier compose, ton dossier personnel compris.',
508删除: 'Lancer du code du projet : `npm test`, `make`, un build. C\'est par définition le code de l\'agent : sa place est dans la VM.',
504新增: 'Rien du tout : ce qui se lance quand tu fais `cd` dans le dossier, quand ton prompt se redessine, quand ton éditeur l\'ouvre. Le cas le plus dangereux.',
505新增: 'Un geste que tu fais de toute façon : `git commit` lance des hooks rangés dans l\'arborescence, `docker compose up` monte ce que nomme le fichier compose.',
506新增: 'Lancer du code du projet : `npm test`, `make`, un build. C\'est le code de l\'agent : lance-le dans la VM.',
509507 ],
510508 code: '',
511509 },
512510 {
513511 title: 'Garder ton dépôt hors d\'atteinte',
514512 paras: [
515删除: 'Pour ne plus avoir à te poser la question, ne donne pas à agent-vm le dépôt dans lequel tu travailles. Clone le projet une seconde fois, lance agent-vm dans ce clone, et rapatrie son travail dans ton dépôt avec `git fetch` une fois le diff relu. Ton éditeur, ton prompt et tes habitudes restent dans un dossier que la VM ne peut pas écrire, et rien de ce que tu utilises n\'ouvre le dossier de l\'agent par réflexe. `git fetch` lit des objets sans les extraire : les fichiers de l\'agent n\'arrivent dans ton arborescence qu\'au moment où tu fusionnes. Il fait tout de même tourner git dans le `.git` du clone : cela tient donc avec un Lima qui garde les `.git` en lecture seule. Sans lui, la VM peut aussi écrire ce `.git`, et la documentation de git déconseille de récupérer, sous ton propre compte, depuis un `.git` que quelqu\'un d\'autre peut écrire.',
513新增: 'Ne donne pas à agent-vm le dépôt dans lequel tu travailles. Clone le projet une seconde fois, lance agent-vm dans ce clone, et rapatrie son travail avec `git fetch` une fois le diff relu. `git fetch` n\'extrait aucun fichier : ceux de l\'agent n\'arrivent dans ton arborescence qu\'à la fusion. Il faut pour cela un Lima qui garde les `.git` en lecture seule : sinon, la VM peut écrire le `.git` du clone, que git lit ensuite.',
516514 ],
517515 list: [],
518删除: code: '# une fois ; --no-local copie les objets au lieu de les lier en dur\ngit clone --no-local ~/work/app ~/agent/app\n# l\'agent travaille là\ncd ~/agent/app && agent-vm claude\n# de retour dans ton dépôt, une fois qu\'il a fini\ncd ~/work/app\ngit fetch ~/agent/app HEAD:agent/review\ngit diff ...agent/review # relis tout, .vscode/ et package.json compris\ngit merge agent/review',
516新增: code: '# une fois ; --no-local copie, sans liens en dur\ngit clone --no-local ~/work/app ~/agent/app\n# l\'agent travaille là\ncd ~/agent/app && agent-vm claude\n# de retour dans ton dépôt, une fois qu\'il a fini\ncd ~/work/app\ngit fetch ~/agent/app HEAD:agent/review\ngit diff ...agent/review # relis tout\ngit merge agent/review',
519517 },
520518 {
521519 title: 'Éditeurs et agents',
522520 paras: [
523删除: 'Tout ce qui tourne dans le projet sur ta machine peut exécuter du code écrit par l\'agent. Un fichier suivi modifié apparaît dans `git diff`, un nouveau comme non suivi ; un fichier dans un chemin ignoré (`node_modules`, `.venv`, `target/`) n\'apparaît nulle part.',
521新增: 'Un fichier suivi modifié apparaît dans `git diff`, un nouveau comme non suivi ; un fichier dans un chemin ignoré (`node_modules`, `.venv`, `target/`) n\'apparaît nulle part.',
524522 ],
525523 list: [
526删除: 'VS Code : ouvre les projets agent-vm en mode restreint (« Non, je ne fais pas confiance aux auteurs »), et n\'approuve pas un dossier parent, ce qui approuve tout ce qu\'il contient. Un espace de travail approuvé lance des tâches et des extensions qui exécutent du code du projet : `eslint.config.js`, `vite.config.ts`, `build.rs` via rust-analyzer, l\'interpréteur Python que nomment les réglages.',
524新增: 'VS Code : ouvre les projets agent-vm en mode restreint, et n\'approuve pas un dossier parent. Un espace de travail approuvé exécute du code du projet par ses tâches et extensions : `eslint.config.js`, `vite.config.ts`, `build.rs`.',
527525 'IDE JetBrains : « Preview in Safe Mode ». Un projet approuvé lance ses scripts Gradle ou Maven à l\'import.',
528删除: 'Neovim demande avant de lancer le `.nvim.lua` ou le `.exrc` d\'un projet (`exrc`, désactivé par défaut), et de nouveau quand il change ; Vim ne demande pas, laisse donc `exrc` désactivé. Emacs demande avant d\'appliquer des valeurs risquées d\'un `.dir-locals.el`.',
529删除: 'Les agents sur ta machine lisent une configuration de projet qui lance des commandes : hooks de `.claude/settings.json`, `.mcp.json`, `.cursor/`. Relis-les avant d\'en lancer un là, et considère `CLAUDE.md` et `AGENTS.md` comme écrits par la VM.',
526新增: 'Vim : laisse `exrc` désactivé. Neovim et Emacs demandent avant d\'exécuter la config d\'un projet.',
527新增: 'Les agents sur ta machine lancent des commandes depuis les hooks de `.claude/settings.json`, `.mcp.json` ou `.cursor/` : relis-les, et considère `CLAUDE.md` et `AGENTS.md` comme écrits par la VM.',
530528 ],
531529 code: '',
532530 },
@@ -535,11 +533,10 @@ export const fr: Dictionary = {
535533 paras: [],
536534 list: [
537535 'direnv ne charge qu\'un `.envrc` que tu as autorisé, et une modification retire l\'autorisation.',
538删除: 'mise fait confiance à une configuration selon son chemin : l\'agent peut modifier un `mise.toml` approuvé, et ton shell lance ses hooks et définit son environnement au `cd` suivant, variables d\'agent-vm comprises. `mise settings set paranoid true` lie la confiance au contenu.',
539删除: 'Mercurial lance les hooks du `.hg/hgrc` d\'un dépôt qui t\'appartient, ce qui est le cas des fichiers écrits à travers le partage. Avec un Lima qui garde les `.git` en lecture seule, chaque `.hg` l\'est aussi.',
540删除: '`npm run`, `make`, `./gradlew`, `pytest` (`conftest.py`), `node_modules/.bin`, un `.venv` activé : chacun lance des fichiers que l\'agent peut écrire. Lance-les dans la VM, avec `agent-vm run`.',
541删除: '`docker compose up` sur ta machine fait ce que dit le fichier compose, et un service peut monter n\'importe lequel de tes dossiers, `/` compris, dans un conteneur qui tourne en root. Docker tourne dans la VM : sers-t\'en là.',
542删除: 'Hooks de commit : lefthook (`lefthook.yml`) et pre-commit (`.pre-commit-config.yaml`) gardent leurs commandes dans l\'arborescence de travail, donc `git commit` sur ta machine lance ce que l\'agent y a écrit. Relis-les dans le diff, ou commite avec `--no-verify`. Avec un Lima qui garde les `.git` en lecture seule, le dossier `.husky/` de husky l\'est aussi, puisque `core.hooksPath` pointe dedans (voir [Protéger .git](#git)), mais les commandes que ses hooks appellent (`npx lint-staged`, `npm test`) lancent des fichiers du projet.',
536新增: 'mise fait confiance à une config selon son chemin, donc l\'agent peut modifier un `mise.toml` approuvé : ton shell lance ses hooks et définit son environnement au `cd` suivant, variables `AGENT_VM_UNSAFE_*` d\'agent-vm comprises. `mise settings set paranoid true` lie la confiance au contenu.',
537新增: '`npm run`, `make`, `./gradlew`, `pytest`, `node_modules/.bin`, un `.venv` activé : chacun lance des fichiers que l\'agent peut écrire. Lance-les dans la VM.',
538新增: '`docker compose up` sur ta machine peut monter n\'importe lequel de tes dossiers dans un conteneur root. Docker tourne dans la VM : sers-t\'en là.',
539新增: 'lefthook et pre-commit gardent leurs commandes dans l\'arborescence, et les hooks de husky appellent des scripts du projet : relis-les dans le diff, ou commite avec `--no-verify`.',
543540 ],
544541 code: '',
545542 },
@@ -547,9 +544,9 @@ export const fr: Dictionary = {
547544 title: 'Gestionnaires de fichiers',
548545 paras: [],
549546 list: [
550删除: 'macOS : les fichiers écrits à travers le partage ne portent pas l\'attribut de quarantaine, donc Gatekeeper ne vérifie pas un `.app`, `.command` ou `.pkg` que l\'agent y a laissé. Ne les ouvre pas depuis le Finder.',
551删除: 'Windows : l\'Explorateur contacte le serveur nommé dans un `.library-ms`, `.searchConnector-ms`, `.url`, `.lnk` ou `desktop.ini` quand il affiche le dossier, et lui envoie ton empreinte NTLM ([CVE-2025-24054](https://research.checkpoint.com/2025/cve-2025-24054-ntlm-exploit-in-the-wild/), exploitée en 2025). Garde Windows à jour et le SMB sortant bloqué.',
552删除: 'Linux : Dolphin, sous KDE, lançait des commandes depuis un `.desktop` ou un `.directory` d\'un dossier qu\'il ne faisait qu\'afficher (CVE-2019-14744, corrigée dans KDE Frameworks 5.61).',
547新增: 'macOS : les fichiers écrits à travers le partage ne portent pas l\'attribut de quarantaine, donc Gatekeeper ne vérifie pas un `.app`, `.command` ou `.pkg` laissé là. Ne les ouvre pas depuis le Finder.',
548新增: 'Windows : l\'Explorateur contacte le serveur nommé dans un `.library-ms`, `.url`, `.lnk` ou `desktop.ini` qu\'il affiche, et lui envoie ton empreinte NTLM ([CVE-2025-24054](https://research.checkpoint.com/2025/cve-2025-24054-ntlm-exploit-in-the-wild/)). Garde Windows à jour et le SMB sortant bloqué.',
549新增: 'Linux : Dolphin, sous KDE, lançait des commandes depuis un `.desktop` d\'un dossier qu\'il ne faisait qu\'afficher (CVE-2019-14744, corrigée dans KDE Frameworks 5.61).',
553550 ],
554551 code: '',
555552 },
@@ -564,9 +561,9 @@ export const fr: Dictionary = {
564561 'Ce qu\'affiche la VM arrive tel quel dans ton terminal, et les terminaux réagissent aux séquences d\'échappement. agent-vm ne peut pas les filtrer sans casser les interfaces plein écran des agents.',
565562 ],
566563 list: [
567删除: 'Presse-papiers : OSC 52 permet à un programme d\'écrire dans ton presse-papiers, et, dans certains terminaux, de le lire. N\'autorise l\'écriture que si tu en as besoin, jamais la lecture, et regarde ce que tu colles dans un shell de l\'hôte.',
568删除: 'Réponses tapées à ta place : certaines séquences font taper une réponse au terminal. Pendant une session, elle part vers la VM, mais une séquence envoyée juste avant la sortie atterrit dans ton shell. Des réponses porteuses d\'une commande ont été de vrais bugs : iTerm2 [CVE-2024-38396](https://www.sentinelone.com/vulnerability-database/cve-2024-38396/) (corrigée en 3.5.2), xterm avant lui. Garde ton terminal à jour.',
569删除: 'Fonctions qui agissent sur ta machine : transfert de fichiers et triggers d\'iTerm2, contrôle à distance de kitty (désactivé par défaut : laisse-le ainsi), liens dont le texte diffère de la cible.',
564新增: 'Presse-papiers : OSC 52 permet à un programme d\'écrire dans ton presse-papiers, et, dans certains terminaux, de le lire. N\'autorise jamais la lecture, et regarde ce que tu colles dans un shell de l\'hôte.',
565新增: 'Réponses tapées à ta place : une séquence envoyée juste avant la sortie peut faire taper le terminal dans ton shell. Certaines ont été de vrais bugs (iTerm2 [CVE-2024-38396](https://www.sentinelone.com/vulnerability-database/cve-2024-38396/)) : garde ton terminal à jour.',
566新增: 'Fonctions qui agissent sur ta machine : transfert de fichiers et triggers d\'iTerm2, contrôle à distance de kitty (laisse-le désactivé), liens dont le texte diffère de la cible.',
570567 'Usurpation : la VM peut afficher un faux prompt de l\'hôte après une fausse sortie. Vérifie où tu es avant de taper un secret.',
571568 ],
572569 code: '',
@@ -574,7 +571,7 @@ export const fr: Dictionary = {
574571 {
575572 title: 'Réseau et ports',
576573 paras: [
577删除: 'La VM atteint Internet et tous les services de la boucle locale de ta machine, à `192.168.5.2` : une base de données de dev, la VM d\'un autre projet par ses ports redirigés. Lima redirige chaque port qu\'écoute une VM vers ton `127.0.0.1`, s\'il est libre : une VM qui écoute la première sur 5432 reçoit les connexions, et les mots de passe, destinés à ton Postgres local. Le bloquer est [sur la feuille de route](#roadmap).',
574新增: 'La VM atteint Internet et tous les services de la boucle locale de ta machine, à `192.168.5.2`. Lima redirige chaque port qu\'écoute une VM vers ton `127.0.0.1` s\'il est libre : une VM qui écoute la première sur 5432 reçoit les connexions, et les mots de passe, destinés à ton Postgres local. Le bloquer est [sur la feuille de route](#roadmap).',
578575 ],
579576 list: [],
580577 code: '',
@@ -628,7 +625,7 @@ export const fr: Dictionary = {
628625 'Chaque VM s\'authentifie de son côté : le `claude login` se fait dedans. Les identifiants survivent aux redémarrages de cette VM et ne sont partagés ni avec l\'hôte ni avec les autres VM. Le réseau, lui, est partagé : voir [Réseau et ports](#network-and-ports).',
629626 contentsTitle: 'Ce qu\'il y a dans la VM',
630627 contentsLede:
631删除: 'La sélection par défaut de l\'assistant et `--preinstall=default` donnent le même résultat : tout ce qui suit, sauf les lignes marquées non.',
628新增: 'L\'assistant de setup propose la sélection par défaut : tout ce qui suit, sauf les lignes marquées non. Réponds `n` pour choisir élément par élément. `--preinstall` prend les noms à la place, séparés par des virgules, plus `default`, `all` ou `none`, et saute l\'assistant, comme un setup sans terminal.',
632629 contentsHeaders: ['Catégorie', 'Paquets', 'Nom', 'Par défaut'],
633630 contents: [
634631 ['Base', 'git, curl, wget, jq, zsh, ca-certificates, sshfs, build-essential, pkgconf, patch, unzip, zip, ripgrep, fd-find, htop', 'toujours', 'oui'],
@@ -647,8 +644,10 @@ export const fr: Dictionary = {
647644 ['MCP', 'Chrome DevTools MCP, câblé dans chaque agent installé sauf Pi (pas de support MCP)', 'mcp-chrome', 'oui'],
648645 ['MCP', 'Playwright MCP, réutilisant le même Chromium', 'mcp-playwright', 'non'],
649646 ],
647新增: contentsCode:
648新增: '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 --disk 50 --memory 16 --cpus 8 # une image plus grosse',
650649 contentsNote:
651删除: 'Ce n\'est que ce que l\'image contient au départ, pour que le premier lancement ne passe pas son temps à télécharger des outils. L\'agent est root dans la VM et a accès au réseau : il installe lui-même ce qui lui manque, avec `apt install`, `pip`, `cargo` ou un runtime absent de la liste.',
650新增: '`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`. Ce n\'est que ce que l\'image contient au départ : l\'agent est root dans la VM et a le réseau, il installe lui-même ce qui lui manque.',
652651 dockerTitle: 'Pourquoi pas Docker',
653652 dockerLede:
654653 '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.',
@@ -680,7 +679,7 @@ export const fr: Dictionary = {
680679 ],
681680 ],
682681 dockerNote:
683删除: 'Docker tourne nativement dans la VM, sans Docker-in-Docker, Chromium headless fonctionne d\'emblée, et Lima redirige les ports tout seul. Sur un Mac, ça remplace Docker Desktop.',
682新增: 'Docker tourne nativement dans la VM, sans Docker-in-Docker, et Chromium headless fonctionne d\'emblée. Sur un Mac, ça remplace Docker Desktop.',
684683 },
685684
686685 roadmap: {
@@ -711,12 +710,17 @@ export const fr: Dictionary = {
711710 'agent-vm est une petite base de code Bash lisible, avec une suite de tests qui ne crée aucune VM et n\'a pas besoin du réseau. Rapports de bugs, corrections du moteur, prise en charge de nouveaux agents : tout est bienvenu.',
712711 testsTitle: 'Lancer les tests',
713712 testsBody:
714删除: 'La suite tourne avec un `limactl` factice, dans un `HOME` jetable, où git lit aussi sa config. Aucune VM n\'est créée, démarrée ou supprimée, ton vrai `~/.agent-vm` et ta config git ne sont pas touchés, et rien n\'est téléchargé. Elle couvre le nommage des VM, la comparaison des ressources, la détection des VM obsolètes, les commandes `info`, `version` et `name`, l\'analyse de `--preinstall`, l\'écriture de la config MCP, et le mode de montage du projet sur lequel repose `--readonly`. `./test-e2e.sh` complète le tableau : il construit une vraie VM avec `--preinstall=none` et vérifie ce qu\'un `limactl` factice ne peut pas vérifier, à commencer par la capacité de root dans l\'invité à lever `--readonly` et, avec un Lima qui a `readonlyNames`, à écrire dans `.git`, et le fait qu\'une VM `--scratch` ne voie rien de l\'hôte et disparaisse ensuite. Il tourne dans son propre `LIMA_HOME` : tes VM ne sont jamais touchées. Les tests unitaires sont les `tests/NN-*.sh`, lancés dans l\'ordre dans un même shell après `tests/helpers.sh`, si bien qu\'un fichier peut s\'appuyer sur un précédent ; un nouveau sujet a son propre fichier.',
713新增: 'Deux suites. Aucune ne touche à tes VM, à ton `~/.agent-vm` ni à ta config git.',
714新增: testsList: [
715新增: '`./test.sh` tourne avec un `limactl` factice dans un `HOME` jetable : aucune VM, aucun réseau. Il couvre le nommage, les ressources, les commandes `info` et `version`, l\'analyse de `--preinstall` et les modes de montage.',
716新增: '`./test-e2e.sh` construit une vraie VM avec `--preinstall=none` dans son propre `LIMA_HOME`, et vérifie ce qu\'un `limactl` factice ne peut pas : que root dans l\'invité ne peut ni lever `--readonly` ni écrire dans `.git`, et qu\'une VM `--scratch` ne voit rien de l\'hôte.',
717新增: 'Les tests unitaires sont les `tests/NN-*.sh`, lancés dans l\'ordre dans un même shell après `tests/helpers.sh`. Un nouveau sujet a son propre fichier.',
718新增: ],
715719 testsCode: './test.sh # rapide, sans VM\n./test-e2e.sh # vraie VM, nécessite Lima',
716720 shellsTitle: 'Tester avec les shells qui comptent',
717721 shellsBody:
718722 'macOS fournit encore bash 3.2, plus strict qu\'un bash récent sur l\'expansion d\'un tableau vide sous `set -u`. Un changement qui passe sous bash 5 peut très bien casser sur un Mac tel qu\'il sort du carton. L\'image `bash:3.2` n\'a pas git, donc les tests qui en ont besoin y sont sautés : ajoute-le avec `apk`.',
719删除: shellsCode: 'docker run --rm -v "$PWD:/w" -w /w bash:3.2 ./test.sh\ndocker run --rm -v "$PWD:/w" -w /w bash:3.2 sh -c \'apk add -q git && git config --global safe.directory "*" && ./test.sh\'',
723新增: shellsCode: 'docker run --rm -v "$PWD:/w" -w /w bash:3.2 ./test.sh\n\n# avec git, pour les tests qui en ont besoin\ndocker run --rm -v "$PWD:/w" -w /w bash:3.2 sh -c \'\n set -e\n apk add -q git\n git config --global safe.directory "*"\n ./test.sh\'',
720724 structureTitle: 'Où se trouve quoi',
721725 structureHeaders: ['Fichier', 'Ce que c\'est'],
722726 structure: [
@@ -771,7 +775,7 @@ export const fr: Dictionary = {
771775 { name: 'OpenCode', note: 'Agent terminal open source.', href: 'https://github.com/anomalyco/opencode' },
772776 { name: 'Codex CLI', note: 'OpenAI.', href: 'https://github.com/openai/codex' },
773777 { name: 'Mistral Vibe', note: 'Mistral AI.', href: 'https://docs.mistral.ai/vibe/code/cli/install-setup' },
774删除: { name: 'Pi', note: 'Harnais open source minimaliste. En option.', href: 'https://pi.dev' },
778新增: { name: 'Pi', note: 'Harnais open source minimaliste.', href: 'https://pi.dev' },
775779 ],
776780 },
777781 {
@@ -784,7 +788,7 @@ export const fr: Dictionary = {
784788 },
785789 {
786790 name: 'Playwright MCP',
787删除: note: 'En option, pointé sur le même Chromium.',
791新增: note: 'Pointé sur le même Chromium.',
788792 href: 'https://github.com/microsoft/playwright-mcp',
789793 },
790794 ],