lean-agents 0.8.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +407 -0
- package/README.es.md +130 -24
- package/README.md +130 -24
- package/core/copilot-usage-tui.js +5 -2
- package/core/pins.json +18 -9
- package/package.json +3 -2
- package/scripts/behavior-diff.sh +47 -0
- package/scripts/bump-pins.mjs +14 -3
- package/scripts/ci-timing.mjs +61 -0
- package/scripts/labels.sh +1 -0
- package/scripts/lean.mjs +695 -76
- package/scripts/lib/adapters/antigravity.mjs +20 -9
- package/scripts/lib/adapters/claude.mjs +7 -2
- package/scripts/lib/adapters/copilot-cli.mjs +4 -3
- package/scripts/lib/adapters/opencode-v1.mjs +6 -13
- package/scripts/lib/adapters/opencode-v2.mjs +51 -3
- package/scripts/lib/adopt.mjs +172 -27
- package/scripts/lib/agent-lifecycle.mjs +140 -23
- package/scripts/lib/backup-stamp.mjs +25 -0
- package/scripts/lib/doctor.mjs +86 -14
- package/scripts/lib/feedback.mjs +22 -4
- package/scripts/lib/fsops.mjs +42 -14
- package/scripts/lib/inventory.mjs +5 -4
- package/scripts/lib/logins.mjs +28 -0
- package/scripts/lib/network.mjs +53 -13
- package/scripts/lib/opencode-backup.mjs +204 -0
- package/scripts/lib/opencode-upgrade.mjs +441 -0
- package/scripts/lib/opencode1.mjs +203 -0
- package/scripts/lib/parallel.mjs +7 -2
- package/scripts/lib/pins-diff.mjs +33 -0
- package/scripts/lib/pins.mjs +7 -2
- package/scripts/lib/plugin-health.mjs +191 -0
- package/scripts/lib/prereqs.mjs +203 -0
- package/scripts/lib/shell-path.mjs +22 -0
- package/scripts/lib/summary-data.mjs +30 -0
- package/scripts/lib/summary-html.mjs +159 -0
- package/scripts/lib/system.mjs +107 -16
- package/scripts/lib/terminals.mjs +101 -3
- package/scripts/lib/update-plan.mjs +60 -0
- package/scripts/lib/upgrade.mjs +112 -11
- package/scripts/lib/verify-prompt.mjs +46 -0
- package/scripts/pins-latest.mjs +27 -4
- package/scripts/release.mjs +26 -1
- package/scripts/version-watch.mjs +8 -2
package/README.es.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**Tu agente rinde tanto como su configuración. lean-agents se encarga de la configuración.**
|
|
8
8
|
|
|
9
|
-
[](LICENSE) [](https://github.com/estebanmr99/lean-agents/actions/workflows/ci.yml) [](https://github.com/estebanmr99/lean-agents/actions/workflows/secret-scan.yml) 
|
|
9
|
+
[](https://www.npmjs.com/package/lean-agents) [](LICENSE) [](https://github.com/estebanmr99/lean-agents/actions/workflows/ci.yml) [](https://github.com/estebanmr99/lean-agents/actions/workflows/secret-scan.yml) 
|
|
10
10
|
|
|
11
11
|
[Read in English](README.md)
|
|
12
12
|
|
|
@@ -24,23 +24,18 @@ Te pregunta cada decisión, muestra una vista previa y espera tu visto bueno.
|
|
|
24
24
|
Instala lean-agents por mí desde https://github.com/estebanmr99/lean-agents.
|
|
25
25
|
Sigue docs/install-with-an-agent.md de ese repo. Pregunta antes de cada cambio.
|
|
26
26
|
Nunca leas, muestres ni guardes mis claves o tokens, y nunca corras gh auth login por mí.
|
|
27
|
+
Si no puedes ejecutar comandos de terminal, imprímelos para que los ejecute yo.
|
|
27
28
|
```
|
|
28
29
|
|
|
29
30
|
### O ejecútalo tú
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
Necesitas Node.js 22.20+ y git. `--dry-run` lista cada archivo y comando; nada cambia:
|
|
32
33
|
|
|
33
34
|
```bash
|
|
34
|
-
|
|
35
|
+
npx lean-agents@latest --dry-run
|
|
35
36
|
```
|
|
36
37
|
|
|
37
|
-
Windows
|
|
38
|
-
|
|
39
|
-
```powershell
|
|
40
|
-
& ([scriptblock]::Create((irm https://github.com/estebanmr99/lean-agents/releases/latest/download/install.ps1))) -DryRun
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Opciones, fijar una versión y checksums: [Inicio rápido](#inicio-rápido).
|
|
38
|
+
PowerShell usa el mismo comando. ¿Máquina nueva? Ve [Mac o PC con Windows nuevos](#mac-o-pc-con-windows-nuevos---everything). ¿Aún no tienes Node.js? Ve [Alternativa: bootstraps](#alternativa-bootstraps). Opciones y fijar una versión: [Inicio rápido](#inicio-rápido).
|
|
44
39
|
|
|
45
40
|
### Novedades
|
|
46
41
|
|
|
@@ -64,9 +59,9 @@ Nunca leas, muestres ni guardes mis claves o tokens.
|
|
|
64
59
|
|
|
65
60
|
| Agente | macOS | Linux | Windows | Reglas | Subagentes | Herramientas MCP | Job de CI con binario real |
|
|
66
61
|
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
67
|
-
| Claude Code | VERIFY | ✅ |
|
|
62
|
+
| Claude Code | VERIFY | ✅ | ✅ | ✅ | ✅ | ✅ | `real-claude` |
|
|
68
63
|
| OpenCode 1.x | VERIFY | ✅ | ✅ | ✅ | ✅ | ✅ | `real-opencode-v1`, `real-windows`, `real-opencode-shell` |
|
|
69
|
-
| OpenCode 2.x | VERIFY | ✅ |
|
|
64
|
+
| OpenCode 2.x | VERIFY | ✅ | ✅ | ✅ | ✅ | ✅ | `real-opencode`, `real-opencode-shell`, `real-windows` |
|
|
70
65
|
| Copilot CLI | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | `real-copilot`, `real-copilot-windows` |
|
|
71
66
|
| Antigravity CLI | ✅ | ✅ | ✅ | ⚠️ | ✅ | ✅ | `real-antigravity`, `real-antigravity-windows` |
|
|
72
67
|
| VS Code Copilot | ✅ | ✅ | VERIFY | ⚠️ | ⚠️ | ✅ | `real-vscode` |
|
|
@@ -143,18 +138,24 @@ flowchart LR
|
|
|
143
138
|
- No se usan modelos gratuitos de OpenCode.
|
|
144
139
|
5. Revisa el resultado:
|
|
145
140
|
```bash
|
|
146
|
-
|
|
141
|
+
npx lean-agents@latest --doctor
|
|
147
142
|
```
|
|
148
143
|
|
|
149
144
|
Las demos para Claude Desktop y Cursor vienen después.
|
|
150
145
|
|
|
151
146
|
## Inicio rápido
|
|
152
147
|
|
|
153
|
-
|
|
148
|
+
Necesitas Node.js 22.20+ y git (Context Mode 2 y GSD Core necesitan Node.js 24, ver el punto de Node.js 24 más abajo). Los comandos ejecutan el último release desde [npm](https://www.npmjs.com/package/lean-agents):
|
|
154
149
|
|
|
155
|
-
|
|
150
|
+
```bash
|
|
151
|
+
npx lean-agents@latest --dry-run # cada archivo y comando; no cambia nada
|
|
152
|
+
npx lean-agents@latest # la instalación real, tras tu OK
|
|
153
|
+
npx lean-agents@latest --doctor # revisa la instalación
|
|
154
|
+
npx lean-agents@latest --update # vuelve a aplicar con tus opciones guardadas
|
|
155
|
+
npx lean-agents@latest --uninstall # deshace todo lo que lean-agents cambió
|
|
156
|
+
```
|
|
156
157
|
|
|
157
|
-
Los prompts para el agente tienen [una guía](docs/install-with-an-agent.md) con los pasos y la salida `--json`; [los pasos de actualización](docs/install-with-an-agent.md#update-with-an-agent) funcionan también sin el skill `lean-update`.
|
|
158
|
+
Los prompts para el agente tienen [una guía](docs/install-with-an-agent.md) con los pasos y la salida `--json`; [los pasos de actualización](docs/install-with-an-agent.md#update-with-an-agent) funcionan también sin el skill `lean-update`. El skill planifica con `--update --dry-run`, pregunta, aplica y revisa con `--doctor`. ¿Tienes VS Code con Copilot en modo agente en un PC de trabajo? Ejecuta una vez la [lista de comprobación](docs/vscode-agent-checklist.md) (en inglés).
|
|
158
159
|
|
|
159
160
|
Usa `--lang es` para que las reglas y las respuestas queden en español.
|
|
160
161
|
|
|
@@ -162,12 +163,103 @@ Empieza siempre con `--dry-run`: muestra cada archivo y comando antes de cambiar
|
|
|
162
163
|
|
|
163
164
|
- Opciones útiles: `--all-tools`, `--privacy strict`, `--lang es`, `--profile vertex-gemini`, `--update`, `--uninstall`, `--doctor`, `--json` (con `--dry-run`, `--doctor` o `--adopt`, para agentes) (`--help` las lista todas).
|
|
164
165
|
- `--adopt`: lista lo que ya tiene una máquina armada a mano (servidores MCP, hooks y plugins de Claude, plugins de OpenCode, skills, copias npm bajo cada Node de nvm, número de sesiones de OpenCode), marca cada elemento como managed, user, stale, duplicate, drift o wrong-node e imprime la acción prevista. Solo, no cambia nada; nunca lee valores de env ni de cabeceras. `--adopt --yes` aplica el plan: copia cada archivo que edita a `~/.config/lean-agents/adopt-<hora>/` (solo para ti), registra los MCP administrados como `<Node de la herramienta> <entrada>`, comprueba que cada uno responde a `initialize` y que tus archivos y el número de sesiones de OpenCode no cambian, ejecuta `--doctor` y se deshace solo si algo falla. Quitar una copia npm vieja, una carpeta de skill duplicada o un parche hecho a mano pide confirmación (un menú en terminal, `--confirm-removals` sin terminal); si no, se listan y se dejan. `--keep-backup` conserva la copia tras una ejecución correcta; `--adopt --undo` restaura cada archivo editado byte a byte desde ella.
|
|
165
|
-
- `--upgrade-agent opencode`: simulacro para pasar OpenCode 1.x a 2.x. Ordena tu configuración 1.x en gestionada (lean-agents la reinstala), traducible (una clave 1.x verificada tiene clave 2.x: `agent` a `agents`, `mcp` a `mcp.servers`, `compaction.reserved` a `compaction.buffer`, ...) y manual (sin equivalente 2.x probado, con el motivo); imprime la tabla de traducción; no cambia nada (`--json` para un objeto JSON).
|
|
166
|
+
- `--upgrade-agent opencode`: simulacro para pasar OpenCode 1.x a 2.x. Ordena tu configuración 1.x en gestionada (lean-agents la reinstala), traducible (una clave 1.x verificada tiene clave 2.x: `agent` a `agents`, `mcp` a `mcp.servers`, `compaction.reserved` a `compaction.buffer`, ...) y manual (sin equivalente 2.x probado, con el motivo); imprime la tabla de traducción; no cambia nada (`--json` para un objeto JSON). `--upgrade-agent opencode --yes` lo aplica después de una copia verificada y `--upgrade-agent opencode --undo --yes` vuelve atrás (más abajo). `--upgrade-agent opencode --backup` (primero el plan, `--yes` para copiar) es el primer paso real: una copia de seguridad permanente de tus sesiones y tu configuración de OpenCode 1.x, con el sha256 de cada archivo comprobado y las sesiones contadas en una copia, y después una copia congelada para un futuro `opencode1`. Solo lee los datos vivos, se niega mientras OpenCode está abierto o si el espacio libre es menor que 2 x tamaño + 1 GB, y nunca borra una copia. La skill opcional `lean-migrate` (`--tools lean-migrate`) guía a un agente por el proceso: copia, simulacro, aplicar, doctor, portar a mano lo manual y deshacer si falla. Guía (en inglés): [docs/migrate-opencode-v1-to-v2.md](docs/migrate-opencode-v1-to-v2.md).
|
|
166
167
|
- `--install-agent a,b` / `--uninstall-agent a,b` (opcional): instala un CLI de agente (`claude`, `opencode-v2`, `copilot-cli`, `cursor`, `antigravity`) desde su instalador fijado (se comprueba el SHA256 antes de ejecutarlo; Linux y macOS, y Copilot CLI en Windows) o lo quita. Muestra primero el plan (`--dry-run` se detiene ahí; `--yes` omite la pregunta). La instalación registra los archivos que creó el instalador con su SHA256; la desinstalación borra solo los que siguen iguales, o ejecuta `npm uninstall -g`, nunca el desinstalador del propio agente, y no toca tu configuración ni tus datos. Un agente que instalaste tú se informa como "not installed by lean-agents" y no se toca. OpenCode 1.x nunca se instala ni se quita.
|
|
167
168
|
- En PowerShell las opciones comunes van en PascalCase: `-DryRun`, `-AllTools`, `-Privacy strict`, `-Profile vertex-gemini`. Cualquier otra opción se pasa tal cual, por ejemplo `-DryRun --network off`.
|
|
168
169
|
- Context Mode 2 necesita Node.js 24.15 y GSD Core necesita Node.js 24 (`engines.node` en `core/pins.json`). Con un Node activo más antiguo, lean-agents los ejecuta con un Node 24 de nvm sin cambiar tu Node por defecto (nvm-windows: uno ya instalado) y lo registra con su ruta absoluta; en Claude Code eso significa un servidor MCP en lugar del plugin de Context Mode, así que sus hooks y skills no se instalan. Sin nvm los omite con una línea. Todo lo demás funciona con Node.js 22.20 o superior.
|
|
169
170
|
- Con Context Mode, el instalador también instala Bun por defecto (`ctx_execute` más rápido); añade `--no-bun` (`-NoBun` en PowerShell) para omitirlo. Con Antigravity, `--no-app` (`-NoApp`) omite la instalación de la app. Ver la fila de Bun en [Niveles de instalación](#niveles-de-instalación).
|
|
170
171
|
|
|
172
|
+
### Todas las opciones
|
|
173
|
+
|
|
174
|
+
Cada opción de `--help`. En PowerShell se escriben en PascalCase (`-DryRun`).
|
|
175
|
+
|
|
176
|
+
| Opción | Qué hace |
|
|
177
|
+
| --- | --- |
|
|
178
|
+
| `--dry-run` | Muestra cada cambio de archivo y comando; no cambia nada |
|
|
179
|
+
| `--yes` | Acepta los valores por defecto sin preguntar |
|
|
180
|
+
| `--agents a,b` | Agentes a configurar: claude, opencode-v1, opencode-v2, copilot-cli, antigravity, vscode-copilot, cursor (por defecto: los instalados) |
|
|
181
|
+
| `--tools a,b` | Herramientas opcionales además de RTK y Context Mode: serena, playwright, ponytail, caveman, i-have-adhd, dcp, codeburn, copilot-usage, gsd, autoskills, playwright-extension, coordinate, lean-migrate, code-mode |
|
|
182
|
+
| `--all-tools` | Todas las herramientas opcionales salvo gsd, autoskills, playwright-extension, coordinate, lean-migrate y code-mode |
|
|
183
|
+
| `--no-tools` | Ninguna herramienta opcional |
|
|
184
|
+
| `--everything` | Preajuste para una máquina nueva: planifica primero los requisitos que faltan (Homebrew, nvm, Node 24 bajo nvm, uv, RTK, jq, Bun), luego Claude Code + OpenCode 2 (instala sus CLI si faltan; en Windows también configura el Copilot CLI, VS Code Copilot y Antigravity que ya estén instalados, omitiendo los que falten) con todas las herramientas opcionales, muestra un solo plan y pregunta una vez (`--yes` acepta; `--dry-run --json` lo imprime; al repetir se reanuda). Tu Node sigue siendo el predeterminado. `--agents` y `--tools` lo sustituyen |
|
|
185
|
+
| `--no-core` | Deja fuera RTK y Context Mode; instala solo las de `--tools` |
|
|
186
|
+
| `--privacy` standard o strict | Igual que `--network on` (standard) o `--network off` (strict) |
|
|
187
|
+
| `--network` on u off | Preajuste de telemetría, auto-updates y otras llamadas salientes |
|
|
188
|
+
| `--telemetry`, `--auto-update`, `--outbound` on u off | Una categoría; anula el preajuste |
|
|
189
|
+
| `--profile <nombre>` | Perfil de modelos para OpenCode |
|
|
190
|
+
| `--lang` en o es | Idioma de reglas y respuestas |
|
|
191
|
+
| `--terminal` warp, orca, both o none | Integraciones de agente para una terminal que ya tienes (por defecto: las detectadas) |
|
|
192
|
+
| `--gh` / `--no-gh` | Instala GitHub CLI (`gh`) si falta (por defecto: sí) |
|
|
193
|
+
| `--bun` / `--no-bun` | Instala Bun para Context Mode (por defecto: sí) |
|
|
194
|
+
| `--no-app` | No instala la app de Antigravity (el CLI sí, si falta) |
|
|
195
|
+
| `--no-exec` | No ejecuta ningún comando externo (ni instalaciones ni sondeos de versión); `--uninstall` lo rechaza si hay comandos que deshacer |
|
|
196
|
+
| `--probe-plugins` | Con `--doctor` o `--adopt`: arranca un `opencode serve` efímero (directorio de estado desechable, loopback) y comprueba que el comando de un plugin se registra |
|
|
197
|
+
| `--project <dir>` | Escribe los archivos compartidos del equipo en un repositorio |
|
|
198
|
+
| `--migrate <desde>` o `auto` | Copia reglas, agentes, skills, prompts y servidores MCP de otro harness; nunca sobrescribe |
|
|
199
|
+
| `--adhd-always` | Activa i-have-adhd en cada respuesta |
|
|
200
|
+
| `--ponytail-mode` lite, full, ultra u off | Nivel de Ponytail |
|
|
201
|
+
| `--shell` default o git-bash | OpenCode en Windows: usa Git Bash si lo encuentra (por defecto: git-bash); nunca sobrescribe un shell que tú elegiste |
|
|
202
|
+
| `--json` | Con `--dry-run`, `--doctor`, `--adopt` o `--yes` (una instalación real: `{ ok, files, commands, errors, version }`, ver [docs/install-json.md](docs/install-json.md)): imprime un objeto JSON en stdout |
|
|
203
|
+
| `--feedback-draft` | Tras un fallo de instalación: lee el error por stdin e imprime un borrador de issue sin datos sensibles en JSON. Necesita `--failed-command` |
|
|
204
|
+
| `--failed-command <texto>` | El comando que falló, para `--feedback-draft` |
|
|
205
|
+
| `--feedback-kind update` | Con `--feedback-draft`: el texto es un hallazgo de una actualización, no un error |
|
|
206
|
+
| `--update` | Vuelve a aplicar con tus opciones guardadas; el plan lista `herramienta: instalada -> pin de la versión`, lo que queda retenido (OpenCode 1.x, CLIs de agentes que cambian de major, herramientas que instalaste tú) y las notas de versión desde la tuya (`--dry-run [--json]` lo muestra sin cambiar nada). Tras la única confirmación también lleva al pin de la versión el Claude Code, OpenCode 2 y Copilot CLI que instaló lean-agents, dentro del mismo major (Cursor y Antigravity no tienen pin, así que se quedan); cada paso guarda la versión anterior en `state.json` y un paso fallido se informa mientras los demás continúan |
|
|
207
|
+
| `--update --undo [--yes]` | Devuelve cada CLI de agente que `--update` actualizó a la versión que tenía antes de su primera actualización (el `from` más antiguo guardado por agente, nunca OpenCode 1.x ni entre majors): primero el plan, luego una confirmación (o `--yes`); un paso fallido se informa, los demás continúan y los registros de los agentes restaurados se quitan de `state.json`. `--uninstall` no toca los CLIs de agentes actualizados (`--uninstall-agent` quita los que instaló lean-agents) |
|
|
208
|
+
| `--doctor` | Revisa la instalación |
|
|
209
|
+
| `--summary` | Escribe la página de resumen (`summary.html` en `~/.config/lean-agents/`; `--uninstall` la borra): inicios de sesión, el prompt de verificación con botón de copiar, lo instalado y los próximos pasos. La instalación también la escribe y pregunta una vez antes de abrirla (nunca con CI, `--yes`, `--json` o `--no-open`). `--filed-issue "item=url del issue"` guarda un issue que creó el prompt de verificación |
|
|
210
|
+
| `--uninstall` | Deshace todo lo que lean-agents cambió |
|
|
211
|
+
| `--adopt` | Lista lo que ya tiene una máquina armada a mano y qué es cada cosa; con `--yes` aplica el plan |
|
|
212
|
+
| `--confirm-removals` | Con `--adopt --yes` y sin terminal: también quita copias npm viejas, carpetas de skills duplicadas y parches manuales (todo con copia de seguridad) |
|
|
213
|
+
| `--keep-backup` | Conserva la copia tras un `--adopt --yes` verificado |
|
|
214
|
+
| `--undo` | Con `--adopt`: restaura lo que cambió el último `--adopt --yes` |
|
|
215
|
+
| `--upgrade-agent opencode` | Simulacro para pasar OpenCode 1.x a 2.x; no cambia nada |
|
|
216
|
+
| `--upgrade-agent opencode --backup [--yes]` | Copia de seguridad permanente con sha256 de las sesiones y la configuración 1.x, y una copia congelada; sin `--yes` solo muestra el plan |
|
|
217
|
+
| `--upgrade-agent opencode --opencode1 [--yes]` | Después de `--backup`: añade `opencode1`, que ejecuta OpenCode 1.x solo sobre la copia congelada; `--uninstall` lo quita |
|
|
218
|
+
| `--upgrade-agent opencode --yes` | Aplicar, solo con un sello de copia verificada de `--backup --yes`: `opencode1`, OpenCode 2, la configuración traducida, DCP. Cada paso queda en un diario; si uno falla se deshacen los ya hechos |
|
|
219
|
+
| `--upgrade-agent opencode --undo [--yes]` | Volver a 1.x: deshace cada paso, aparta la base migrada por 2.x (nunca se borra), devuelve la copia congelada; la copia y la copia congelada se conservan |
|
|
220
|
+
| `--install-agent a,b` / `--uninstall-agent a,b` | Instala o quita CLIs de agente que lean-agents instaló; primero el plan, `--yes` lo ejecuta; nunca OpenCode 1.x. `vscode-copilot` solo escribe o quita sus archivos de configuración: VS Code es dueño de la extensión Copilot |
|
|
221
|
+
| `--upgrade-agent vscode-copilot` | Solo informa: la extensión se actualiza desde VS Code; `--update` refresca los archivos que lean-agents escribió |
|
|
222
|
+
| `--usage` | Imprime los créditos de Copilot que quedan (una llamada a `gh`, sin pedir al modelo) |
|
|
223
|
+
| `--version` | Imprime la versión de lean-agents |
|
|
224
|
+
| `--home <dir>` | Usa esta carpeta como tu carpeta personal; usa una carpeta temporal para probar sin riesgo |
|
|
225
|
+
|
|
226
|
+
### Mac o PC con Windows nuevos (`--everything`)
|
|
227
|
+
|
|
228
|
+
Un solo comando desde una máquina sin Node.js, git ni Homebrew. Detecta lo que ya tienes, planifica, pregunta una vez, aplica, y terminas con `--doctor`. Primero solo el plan:
|
|
229
|
+
|
|
230
|
+
```bash
|
|
231
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --dry-run --everything
|
|
232
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --everything
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
```powershell
|
|
236
|
+
& ([scriptblock]::Create((irm https://github.com/estebanmr99/lean-agents/releases/latest/download/install.ps1))) -DryRun --everything
|
|
237
|
+
& ([scriptblock]::Create((irm https://github.com/estebanmr99/lean-agents/releases/latest/download/install.ps1))) --everything
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
- **Planifica:** solo lo que falta. Primero los requisitos: Xcode Command Line Tools y Homebrew (macOS), git y unzip (Linux, apt-get), nvm y Node.js 24 bajo nvm (tu propio Node sigue siendo el predeterminado), uv, RTK, jq, Bun. Luego Claude Code y OpenCode 2 (instalando sus CLI si faltan) con todas las herramientas opcionales. En Windows también configura el Copilot CLI, VS Code Copilot y Antigravity que ya estén en la PC. `--agents` y `--tools` lo sobrescriben.
|
|
241
|
+
- **PATH (macOS, Linux):** las carpetas donde instala (`~/.local/bin`, `~/.opencode/bin`, la de Homebrew y el Node.js propio de `install.sh`, al final para que tu Node siga siendo el predeterminado) van en un bloque marcado de tu archivo rc del shell (`~/.zshrc`, `~/.bashrc`, `~/.bash_profile` o `~/.profile`), sin las que ya están en el PATH. Abre una terminal nueva después. `--uninstall` quita el bloque. Windows usa el PATH de usuario.
|
|
242
|
+
- **Pregunta:** una sola cosa, `Apply these changes?` (`--yes` la acepta). El instalador propio de Homebrew pide tu contraseña de macOS. En Windows nada debería pedir admin (nvm-windows sin admin sigue en **VERIFY**).
|
|
243
|
+
- **PC de empresa o proxy, en cinco líneas:** (1) lee antes [docs/SECURITY-REVIEW.md](docs/SECURITY-REVIEW.md); (2) define `HTTPS_PROXY`, `NO_PROXY` y `NODE_EXTRA_CA_CERTS` en tu propia terminal (nunca se escriben en disco); (3) agrega `--network off` en una PC de trabajo; (4) `--dry-run` muestra cada host y comando antes de ejecutar nada; (5) ¿ya usas OpenCode 1.x? Usa `--adopt`, no `--everything`. Más: [En una PC de trabajo](#en-una-pc-de-trabajo-proxy-red-y-revisión-de-seguridad).
|
|
244
|
+
- **¿Se interrumpió?** Corre el mismo comando otra vez: los pasos terminados se omiten.
|
|
245
|
+
- **Deshacer:** `--uninstall` quita lo que cambió lean-agents. Los requisitos que ya tenías se quedan; Homebrew no tiene deshacer automático (su desinstalador es interactivo); `~/.nvm` se borra solo si todos los Node que contiene son v24.
|
|
246
|
+
|
|
247
|
+
El recorrido con las preguntas y lo que imprime cada paso: [docs/fresh-machine.md](docs/fresh-machine.md). Qué prueba el CI y qué sigue en **VERIFY**: [docs/compatibility.md](docs/compatibility.md).
|
|
248
|
+
|
|
249
|
+
### Alternativa: bootstraps
|
|
250
|
+
|
|
251
|
+
Úsalos solo si aún no tienes Node.js 22.20+. Comprueban Node.js 22.20+ (git no hace falta para ejecutar el release). Si falta, `install.sh --dry-run` muestra el plan y se detiene. Si no, `install.sh` muestra las opciones y pregunta antes: en macOS `brew install node`, o el instalador oficial de Homebrew (pide tu contraseña e instala las Xcode Command Line Tools) cuando falta Homebrew, o una descarga de Node.js desde nodejs.org comprobada con su `SHASUMS256.txt` en `~/.config/lean-agents/node` (sin admin; `--yes` acepta solo esta; borra la carpeta para deshacer). Un Node.js que ya tengas, aunque sea viejo, nunca se reemplaza. `install.ps1` no necesita git; sin Node.js pregunta antes (salvo que pases `-Yes`), prueba `winget` y, sin `winget`, descarga el zip de Node.js 24 de nodejs.org (SHA-256 comprobado) en `%USERPROFILE%\tools\node` solo para tu usuario, sin permisos de administrador. Un `-DryRun` sin Node.js usa una copia temporal y no cambia nada. Las descargas usan TLS 1.2 y respetan `HTTPS_PROXY` y `NO_PROXY`, o si no el proxy del sistema de Windows. `install.sh` respeta además `NODE_EXTRA_CA_CERTS` de tu shell; ningún script escribe ninguna en disco. Luego descargan el último release, lo comprueban con el `SHA256SUMS` del release y solo entonces lo ejecutan.
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --dry-run
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
```powershell
|
|
258
|
+
& ([scriptblock]::Create((irm https://github.com/estebanmr99/lean-agents/releases/latest/download/install.ps1))) -DryRun
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
`LEAN_AGENTS_VERSION=1.0.0` fija un release. Ya instalado, `--dry-run`, `--doctor` y `--uninstall` no usan la red. Un checkout local (`bash install.sh` desde un clon) se confía tal cual; solo la descarga del release se comprueba con checksum.
|
|
262
|
+
|
|
171
263
|
## Por qué
|
|
172
264
|
|
|
173
265
|
- **Menos tokens.** Explorar, investigar y revisar lo hacen subagentes baratos. Las salidas grandes no entran al contexto. Los agentes buscan símbolos en vez de leer archivos completos.
|
|
@@ -180,13 +272,15 @@ Empieza siempre con `--dry-run`: muestra cada archivo y comando antes de cambiar
|
|
|
180
272
|
| --- | --- | --- | --- | --- | --- |
|
|
181
273
|
| Reglas globales (AGENTS.md) | ✅ | ✅ | ✅ | ✅ | ⚠️ se escriben, carga sin probar |
|
|
182
274
|
| Subagentes por costo | ✅ | ✅ | ✅ | ✅ | ✅ flash, pro |
|
|
183
|
-
| RTK (comprime la salida del shell) | ✅ |
|
|
275
|
+
| RTK (comprime la salida del shell) | ✅ | ➖ plugin rechazado (#179) | ✅ | ✅ | ✅ |
|
|
184
276
|
| Context Mode | ✅ plugin | ✅ MCP | ✅ plugin | ✅ MCP | ➖ omitido (sin setup v2) |
|
|
185
277
|
| Serena + Playwright MCP | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
186
278
|
| Navegador con tu sesión (opcional) | ➖ Claude in Chrome | ✅ opcional | ✅ opcional | ✅ opcional | ➖ |
|
|
187
279
|
| Ponytail | ✅ | ✅ | ✅ | ➖ | ➖ |
|
|
188
280
|
| i-have-adhd | ✅ | ✅ | ✅ | ✅ | ⚠️ se escribe, carga sin probar |
|
|
189
281
|
| Caveman y otras skills | ✅ | ✅ | ✅ | ✅ | ⚠️ se escriben, carga sin probar |
|
|
282
|
+
| Solo tus skills propias al deshacer; `agy` fuera de PATH | ➖ | ➖ | ➖ | ➖ | ✅ conserva tu skill del mismo nombre |
|
|
283
|
+
| Comprobación del mínimo Node 22.20 (motor, no por agente) | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
190
284
|
| Compactación de contexto | ✅ auto 80% | ✅ nativa | ✅ nativa, DCP opcional | ➖ | ➖ |
|
|
191
285
|
| Presets de red (telemetría, updates, salidas) | ✅ | ✅ updates, compartir | ✅ | ⚠️ updates; telemetría es un recordatorio | ⚠️ solo recordatorios |
|
|
192
286
|
| Proxy en cada comando de instalación | ✅ | ✅ | ✅ | ✅ | ⚠️ probado en CI, sin docs upstream |
|
|
@@ -213,7 +307,7 @@ Empieza siempre con `--dry-run`: muestra cada archivo y comando antes de cambiar
|
|
|
213
307
|
<details>
|
|
214
308
|
<summary>Qué añaden las integraciones de Warp y Orca</summary>
|
|
215
309
|
|
|
216
|
-
Si ya usas [Warp](https://www.warp.dev) u [Orca](https://github.com/stablyai/orca), lean-agents añade sus integraciones de agentes para los agentes que elegiste.
|
|
310
|
+
Si ya usas [Warp](https://www.warp.dev) u [Orca](https://github.com/stablyai/orca), lean-agents añade sus integraciones de agentes para los agentes que elegiste. También puedes pedirle que instale las terminales (`--install-terminal warp|orca|both`, o en el menú interactivo). Busca la app (o `warp-terminal` / `orca` en el PATH), preselecciona lo que encuentra y no pregunta nada si no hay ninguna. `--terminal warp|orca|both|none` lo cambia; `none` lo desactiva.
|
|
217
311
|
|
|
218
312
|
- **Warp:** el plugin de Claude Code `warp@claude-code-warp` (necesita `jq`) y el plugin de OpenCode `@warp-dot-dev/opencode-warp`.
|
|
219
313
|
- **Orca:** la skill `orca-cli` para tus agentes. Orca gestiona sus propios hooks de estado (Settings > Agents, o `orca agent hooks on`); lean-agents no los toca, pero el primer arranque de Orca los escribe en `~/.claude/settings.json` y `~/.cursor/hooks.json`, y `--doctor` los muestra. Su Agent Session Search indexa todos los chats de agentes de la máquina y viene activado (Settings > Session History).
|
|
@@ -354,8 +448,9 @@ Si tu empresa paga GitHub Copilot, la forma oficial de usar Claude como agente e
|
|
|
354
448
|
| --- | --- | --- |
|
|
355
449
|
| Mínimo | Reglas, subagentes por costo, compactación, límites de salida, RTK, Context Mode | Siempre; `--no-core` (`-NoCore` en PowerShell) deja fuera RTK y Context Mode |
|
|
356
450
|
| Herramientas opcionales | Serena, Playwright, Ponytail, Caveman, i-have-adhd, DCP (OpenCode 1.x, AGPL-3.0), Codeburn, Copilot usage (créditos restantes en la barra lateral de OpenCode y en la línea de estado de Claude Code, leídos con `gh`; `lean-agents --usage` los imprime) | Se pregunta una por una |
|
|
357
|
-
| Herramientas por elección | GSD Core, AutoSkills (CC BY-NC 4.0: solo uso no comercial), la skill `coordinate` (guía de coordinador, plantilla de prompt y vigilante de workers: [docs/agent-workflow.md](docs/agent-workflow.md)) | Se pregunta una por una, nunca en `--all-tools` |
|
|
451
|
+
| Herramientas por elección | GSD Core, AutoSkills (CC BY-NC 4.0: solo uso no comercial), la skill `coordinate` (guía de coordinador, plantilla de prompt y vigilante de workers: [docs/agent-workflow.md](docs/agent-workflow.md)), Code Mode de Claude Code (`code-mode`, experimental: solo con inicio de sesión directo de Anthropic; una sesión iniciada con él se reanuda solo con él activo) | Se pregunta una por una, nunca en `--all-tools` |
|
|
358
452
|
| Privacidad estricta | Sin telemetría, sin auto updates, sin compartir sesiones, sin proveedores que entrenan con tus prompts | Apagado, se activa con `--privacy strict` |
|
|
453
|
+
| Self-updaters de los agentes | Apagados en toda instalación gestionada (Claude Code `DISABLE_AUTOUPDATER`, OpenCode `update` / `autoupdate`, Copilot CLI `autoUpdate`), salvo con `--auto-update on` (o al elegir auto updates en el menú por categoría), que no escribe nada y deja el updater propio del agente: `--update` es la única forma de actualizar agentes. Un valor que ya pusiste se conserva y se avisa; `--uninstall` quita los nuestros | Apagados; `--auto-update on` deja el updater del agente como está |
|
|
359
454
|
| Preset de red | Todo apagado (PC de trabajo), todo encendido, o por categoría: telemetría, auto updates, otras salidas. Apagado solo cambia interruptores: las descargas de la instalación y las herramientas elegidas no se bloquean ([privacy.md](docs/privacy.md#what-each-preset-does-not-block)) | Todo encendido; `--network off` (igual que `--privacy strict`) o `--telemetry`, `--auto-update`, `--outbound` |
|
|
360
455
|
| GitHub CLI (`gh`) | Se instala con brew o winget sin admin; tú corres `gh auth login` | Activo si falta; `--no-gh` (`-NoGh` en PowerShell) lo omite |
|
|
361
456
|
| Bun (para Context Mode) | `ctx_execute` más rápido en JavaScript y TypeScript; ver abajo | Activo; `--no-bun` (`-NoBun` en PowerShell) |
|
|
@@ -366,6 +461,15 @@ Si tu empresa paga GitHub Copilot, la forma oficial de usar Claude como agente e
|
|
|
366
461
|
- Un Bun que ya tengas se reutiliza y nunca se borra. Si la instalación falla, Context Mode corre con Node.
|
|
367
462
|
- Con telemetría apagada, `~/.bunfig.toml` recibe un bloque marcado `telemetry = false`. `--uninstall` quita solo lo que instaló lean-agents.
|
|
368
463
|
|
|
464
|
+
## Piloto de Antigravity
|
|
465
|
+
|
|
466
|
+
Antigravity tiene tres partes: la CLI (`agy`), el IDE y la extensión de VS Code `Google.google-antigravity`. La documentación oficial dice que el IDE y la CLI leen las mismas carpetas de `~/.gemini/config`; todavía no está probado en el IDE.
|
|
467
|
+
|
|
468
|
+
- **lean-agents configura** (con el adaptador de la CLI, ámbito de usuario): reglas, agentes, skills y servidores MCP en `~/.gemini/config`, y RTK, i-have-adhd y Caveman donde se admiten.
|
|
469
|
+
- **No hace**: instalar el IDE ni la extensión, editar sus ajustes, escribir `hooks.json` ni el ajuste de telemetría (`antigravity.enableTelemetry` está obsoleto y activado por defecto; apágalo tú en modo equipo).
|
|
470
|
+
- **Comprobaciones de solo lectura**: `--doctor` y `--adopt` indican cuáles de `~/.gemini/antigravity-ide`, `antigravity-cli`, el `antigravity` heredado y la extensión existen. `--doctor` también lista las variables de proxy y CA que leen la extensión y `agy` (`HTTP_PROXY`, `HTTPS_PROXY`, `NO_PROXY`, `NODE_EXTRA_CA_CERTS`, `SSL_CERT_FILE`, `NODE_USE_SYSTEM_CA`) como definidas o no, nunca sus valores.
|
|
471
|
+
- **Sin verificar**: rutas de Windows y Linux, si el IDE ejecuta `hooks.json` o carga `.agents/mcp_config.json`, Open VSX, actualización automática. Ver [docs/compatibility.md](docs/compatibility.md).
|
|
472
|
+
|
|
369
473
|
## En una PC de trabajo: proxy, red y revisión de seguridad
|
|
370
474
|
|
|
371
475
|
<details>
|
|
@@ -381,11 +485,11 @@ Si tu empresa paga GitHub Copilot, la forma oficial de usar Claude como agente e
|
|
|
381
485
|
3. **Elige un preset de red.** El instalador pregunta: **todo apagado** (PC de empresa), **todo encendido** (PC personal) o **por categoría**. Para correrlo sin preguntas:
|
|
382
486
|
```bash
|
|
383
487
|
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --dry-run --network off # todo apagado
|
|
384
|
-
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --yes --network off --
|
|
488
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --yes --network off --telemetry on # apagado, pero con telemetría
|
|
385
489
|
```
|
|
386
490
|
Las opciones por categoría son `--telemetry on|off`, `--auto-update on|off` y `--outbound on|off`. `--network off` es igual que `--privacy strict`. En PowerShell se pasan tal cual, por ejemplo `-DryRun --network off`. Qué apaga cada categoría por agente: [docs/privacy.md](docs/privacy.md). La elección se guarda y `--update` la reutiliza.
|
|
387
491
|
4. **`gh`**: GitHub CLI se instala sin admin si falta (`--no-gh` lo omite); luego corre `gh auth login` tú mismo.
|
|
388
|
-
5. **Descargas en uso.** Además de los comandos de instalación, los agentes descargan código cada vez que arrancan un servidor MCP o usan un skill. Cada uno está fijado a una versión exacta en [core/pins.json](core/pins.json) (Playwright MCP, Context Mode, Codeburn, AutoSkills, GSD Core, DCP, el Skills CLI y los skills Caveman, i-have-adhd y orca-cli), así que nada cambia sin que lo actualices. `--doctor` marca `changed` cuando los pins instalados difieren de ese archivo. Sin fijar todavía: Serena (fuente `git+https`), RTK y `gh` (brew o winget), el plugin Ponytail y los marketplaces de plugins de Claude. Usa `--no-core` para dejar fuera RTK y Context Mode si tu PC solo permite herramientas concretas.
|
|
492
|
+
5. **Descargas en uso.** Además de los comandos de instalación, los agentes descargan código cada vez que arrancan un servidor MCP o usan un skill. Cada uno está fijado a una versión exacta en [core/pins.json](core/pins.json) (Playwright MCP, Context Mode, Codeburn, AutoSkills, GSD Core, DCP, el Skills CLI y los skills Caveman, i-have-adhd y orca-cli), así que nada cambia sin que lo actualices. `--doctor` marca `changed` cuando los pins instalados difieren de ese archivo. Sin fijar todavía: Serena (fuente `git+https`), RTK y `gh` (brew o winget), el plugin Ponytail y los marketplaces de plugins de Claude. Usa `--no-core` para dejar fuera RTK y Context Mode si tu PC solo permite herramientas concretas. RTK, uv, `gh` (Homebrew y winget no pueden instalar una versión fija) y el cask de Antigravity están en el mismo archivo como versión conocida y mínimo: el plan de actualización los informa y la vigilancia diaria avisa de versiones nuevas, pero lean-agents nunca les impone una versión. Bun también se vigila (sus checksums siguen a mano).
|
|
389
493
|
|
|
390
494
|
En una terminal real el instalador muestra menús (flechas, espacio para marcar), una lista de progreso y un resumen. Con `--yes`, con un pipe o sin terminal, hace preguntas simples o ninguna, como antes.
|
|
391
495
|
|
|
@@ -438,9 +542,11 @@ lean-agents es pegamento. El trabajo pesado lo hacen estos proyectos; dales una
|
|
|
438
542
|
- [x] Sesiones de agentes en paralelo (`scripts/parallel.mjs`)
|
|
439
543
|
- [x] Integraciones de Warp y Orca para quien ya las usa
|
|
440
544
|
- [x] App y CLI de Antigravity en macOS, Linux y Windows (la carga en la app sigue en VERIFY)
|
|
545
|
+
- [x] `v1.0.0` (último): `--everything` para una máquina nueva, actualización guiada de OpenCode 1.x a 2.x con copia y deshacer, instalación con el agente de VS Code Copilot, plan de actualización y `--update --undo`, página de resumen; Node.js 22.20 o superior
|
|
546
|
+
- [x] `v0.8.0`: instalar y desinstalar agentes opcionales, la guía del coordinador, adoptar una máquina armada a mano, runtime de Node por herramienta en `--doctor`
|
|
441
547
|
- [x] `v0.6.0` (incluye el 0.5.1 previsto): arreglos de instalaciones reales en Windows con proxy, `--no-core`, versiones fijas de MCP y skills, migrar desde otro harness, instalar con un agente; Node.js 22.20 o superior
|
|
442
|
-
- [
|
|
443
|
-
- [ ]
|
|
548
|
+
- [x] CLI instalable en npm (`npx lean-agents@latest`)
|
|
549
|
+
- [ ] Próxima versión (en espera): GIFs por caso de uso, actualizar desde versiones verificadas
|
|
444
550
|
- Más adelante: Codex CLI, Gemini CLI
|
|
445
551
|
|
|
446
552
|
Detalle e issues enlazados: [docs/ROADMAP.md](docs/ROADMAP.md) (en inglés).
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**Your agent is only as good as its setup. lean-agents does the setup.**
|
|
8
8
|
|
|
9
|
-
[](LICENSE) [](https://github.com/estebanmr99/lean-agents/actions/workflows/ci.yml) [](https://github.com/estebanmr99/lean-agents/actions/workflows/secret-scan.yml) 
|
|
9
|
+
[](https://www.npmjs.com/package/lean-agents) [](LICENSE) [](https://github.com/estebanmr99/lean-agents/actions/workflows/ci.yml) [](https://github.com/estebanmr99/lean-agents/actions/workflows/secret-scan.yml) 
|
|
10
10
|
|
|
11
11
|
[Leer en español](README.es.md)
|
|
12
12
|
|
|
@@ -24,23 +24,18 @@ It asks you each choice, shows a dry run, and waits for your OK.
|
|
|
24
24
|
Install lean-agents for me from https://github.com/estebanmr99/lean-agents.
|
|
25
25
|
Follow docs/install-with-an-agent.md in that repo. Ask before every change.
|
|
26
26
|
Never read, print or store my API keys or tokens, and never run gh auth login for me.
|
|
27
|
+
If you cannot run terminal commands, print them for me to run.
|
|
27
28
|
```
|
|
28
29
|
|
|
29
30
|
### Or run it yourself
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
Needs Node.js 22.20+ and git. `--dry-run` lists every file and command; nothing changes:
|
|
32
33
|
|
|
33
34
|
```bash
|
|
34
|
-
|
|
35
|
+
npx lean-agents@latest --dry-run
|
|
35
36
|
```
|
|
36
37
|
|
|
37
|
-
Windows
|
|
38
|
-
|
|
39
|
-
```powershell
|
|
40
|
-
& ([scriptblock]::Create((irm https://github.com/estebanmr99/lean-agents/releases/latest/download/install.ps1))) -DryRun
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Flags, pinning a version, checksums: [Quick start](#quick-start).
|
|
38
|
+
PowerShell takes the same command. New machine? See [Fresh Mac or Windows PC](#fresh-mac-or-windows-pc---everything). No Node.js yet? See [Fallback: bootstraps](#fallback-bootstraps). Flags and pinning: [Quick start](#quick-start).
|
|
44
39
|
|
|
45
40
|
### What's new
|
|
46
41
|
|
|
@@ -64,9 +59,9 @@ Never read, print or store my API keys or tokens.
|
|
|
64
59
|
|
|
65
60
|
| Agent | macOS | Linux | Windows | Rules | Subagents | MCP tools | Real-binary CI job |
|
|
66
61
|
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
67
|
-
| Claude Code | VERIFY | ✅ |
|
|
62
|
+
| Claude Code | VERIFY | ✅ | ✅ | ✅ | ✅ | ✅ | `real-claude` |
|
|
68
63
|
| OpenCode 1.x | VERIFY | ✅ | ✅ | ✅ | ✅ | ✅ | `real-opencode-v1`, `real-windows`, `real-opencode-shell` |
|
|
69
|
-
| OpenCode 2.x | VERIFY | ✅ |
|
|
64
|
+
| OpenCode 2.x | VERIFY | ✅ | ✅ | ✅ | ✅ | ✅ | `real-opencode`, `real-opencode-shell`, `real-windows` |
|
|
70
65
|
| Copilot CLI | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | `real-copilot`, `real-copilot-windows` |
|
|
71
66
|
| Antigravity CLI | ✅ | ✅ | ✅ | ⚠️ | ✅ | ✅ | `real-antigravity`, `real-antigravity-windows` |
|
|
72
67
|
| VS Code Copilot | ✅ | ✅ | VERIFY | ⚠️ | ⚠️ | ✅ | `real-vscode` |
|
|
@@ -143,18 +138,24 @@ flowchart LR
|
|
|
143
138
|
- No free OpenCode models are used.
|
|
144
139
|
5. Check the result:
|
|
145
140
|
```bash
|
|
146
|
-
|
|
141
|
+
npx lean-agents@latest --doctor
|
|
147
142
|
```
|
|
148
143
|
|
|
149
144
|
Claude Desktop and Cursor demo paths come later.
|
|
150
145
|
|
|
151
146
|
## Quick start
|
|
152
147
|
|
|
153
|
-
|
|
148
|
+
Needs Node.js 22.20+ and git (Context Mode 2 and GSD Core need Node.js 24, see the Node.js 24 bullet below). The commands run the latest release from [npm](https://www.npmjs.com/package/lean-agents):
|
|
154
149
|
|
|
155
|
-
|
|
150
|
+
```bash
|
|
151
|
+
npx lean-agents@latest --dry-run # every file and command; changes nothing
|
|
152
|
+
npx lean-agents@latest # the real install, after your OK
|
|
153
|
+
npx lean-agents@latest --doctor # check the install
|
|
154
|
+
npx lean-agents@latest --update # re-apply with your saved choices
|
|
155
|
+
npx lean-agents@latest --uninstall # undo everything lean-agents changed
|
|
156
|
+
```
|
|
156
157
|
|
|
157
|
-
The agent prompts have [a guide](docs/install-with-an-agent.md) with the steps and `--json` output; [the update steps](docs/install-with-an-agent.md#update-with-an-agent) work without the `lean-update` skill too.
|
|
158
|
+
The agent prompts have [a guide](docs/install-with-an-agent.md) with the steps and `--json` output; [the update steps](docs/install-with-an-agent.md#update-with-an-agent) work without the `lean-update` skill too. The skill plans with `--update --dry-run`, asks, applies and checks with `--doctor`. Peer on a work PC with VS Code Copilot agent mode? Run the [logged-in proof checklist](docs/vscode-agent-checklist.md) once.
|
|
158
159
|
|
|
159
160
|
Use `--lang es` to get the rules and replies in Spanish.
|
|
160
161
|
|
|
@@ -162,12 +163,103 @@ Always start with `--dry-run`: it shows every file and command before anything c
|
|
|
162
163
|
|
|
163
164
|
- Useful flags: `--all-tools`, `--privacy strict`, `--lang es`, `--profile vertex-gemini`, `--update`, `--uninstall`, `--doctor`, `--json` (with `--dry-run`, `--doctor` or `--adopt`, for agents) (`--help` lists them all).
|
|
164
165
|
- `--adopt`: lists what a hand-built machine already has (MCP servers, Claude hooks and plugins, OpenCode plugins, skills, npm copies under each nvm Node, OpenCode session count), marks each one managed, user, stale, duplicate, drift or wrong-node, and prints the planned action. Alone it changes nothing; env and header values are never read. `--adopt --yes` applies the plan: it backs up every file it edits to `~/.config/lean-agents/adopt-<time>/` (owner-only), re-registers managed MCPs as `<tool Node> <entry>`, checks that each one answers `initialize` and that your own files and the OpenCode session count are unchanged, runs `--doctor`, and undoes itself if anything fails. Removing an old npm copy, a duplicate skill folder or a hand-made stopgap needs a yes (a menu on a terminal, `--confirm-removals` without one); otherwise they are listed and kept. `--keep-backup` keeps the backup after a good run; `--adopt --undo` restores every edited file byte for byte from it.
|
|
165
|
-
- `--upgrade-agent opencode`: dry run for moving OpenCode 1.x to 2.x. Sorts your 1.x config into managed (lean-agents reinstalls it), translatable (a verified 1.x key has a 2.x key: `agent` to `agents`, `mcp` to `mcp.servers`, `compaction.reserved` to `compaction.buffer`, ...) and manual (no proven 2.x equivalent, with the reason); prints the translation table; changes nothing (`--json` for one JSON object).
|
|
166
|
+
- `--upgrade-agent opencode`: dry run for moving OpenCode 1.x to 2.x. Sorts your 1.x config into managed (lean-agents reinstalls it), translatable (a verified 1.x key has a 2.x key: `agent` to `agents`, `mcp` to `mcp.servers`, `compaction.reserved` to `compaction.buffer`, ...) and manual (no proven 2.x equivalent, with the reason); prints the translation table; changes nothing (`--json` for one JSON object). `--upgrade-agent opencode --yes` applies it after a verified backup, and `--upgrade-agent opencode --undo --yes` goes back (below). `--upgrade-agent opencode --backup` (plan first, `--yes` to copy) is the first real step: a permanent backup of your OpenCode 1.x sessions and config, every file sha256-checked and the sessions counted on a copy, then a frozen copy for a later `opencode1`. It only reads the live data, refuses while OpenCode runs or free space is under 2 x size + 1 GB, and never deletes a backup. The opt-in `lean-migrate` skill (`--tools lean-migrate`) walks an agent through it: backup, dry run, apply, doctor, port the manual items, undo on a failure. Guide: [docs/migrate-opencode-v1-to-v2.md](docs/migrate-opencode-v1-to-v2.md).
|
|
166
167
|
- `--install-agent a,b` / `--uninstall-agent a,b` (opt-in): install an agent CLI (`claude`, `opencode-v2`, `copilot-cli`, `cursor`, `antigravity`) from its pinned installer (SHA256-checked before it runs; Linux and macOS, plus Copilot CLI on Windows) or remove it again. It shows the plan first (`--dry-run` stops there; `--yes` skips the question). Install records the files the installer created with their SHA256; uninstall deletes only those that still match, or runs `npm uninstall -g`, never the agent's own uninstaller, and leaves your config and data alone. An agent you installed yourself is reported as "not installed by lean-agents" and left alone. OpenCode 1.x is never installed or removed.
|
|
167
168
|
- In PowerShell the common flags are PascalCase: `-DryRun`, `-AllTools`, `-Privacy strict`, `-Profile vertex-gemini`. Any other flag is passed as it is, for example `-DryRun --network off`.
|
|
168
169
|
- Context Mode 2 needs Node.js 24.15 and GSD Core needs Node.js 24 (`engines.node` in `core/pins.json`). On an older active Node, lean-agents runs them on an nvm Node 24 without changing your default (nvm-windows: one already installed) and registers it with its absolute path; on Claude Code that means an MCP server instead of the Context Mode plugin, so its hooks and skills are not installed. Without nvm it skips them with one line. Everything else works on Node.js 22.20 or newer.
|
|
169
170
|
- With Context Mode, the installer also sets up Bun by default (faster `ctx_execute`); add `--no-bun` (`-NoBun` in PowerShell) to skip it. With Antigravity, `--no-app` (`-NoApp`) skips installing the app. See the Bun row in [Install tiers](#install-tiers).
|
|
170
171
|
|
|
172
|
+
### All flags
|
|
173
|
+
|
|
174
|
+
Every flag from `--help`. In PowerShell the same flags are PascalCase (`-DryRun`).
|
|
175
|
+
|
|
176
|
+
| Flag | What it does |
|
|
177
|
+
| --- | --- |
|
|
178
|
+
| `--dry-run` | Show every file change and command; change nothing |
|
|
179
|
+
| `--yes` | Accept defaults without asking |
|
|
180
|
+
| `--agents a,b` | Agents to set up: claude, opencode-v1, opencode-v2, copilot-cli, antigravity, vscode-copilot, cursor (default: the ones installed) |
|
|
181
|
+
| `--tools a,b` | Optional tools on top of RTK and Context Mode: serena, playwright, ponytail, caveman, i-have-adhd, dcp, codeburn, copilot-usage, gsd, autoskills, playwright-extension, coordinate, lean-migrate, code-mode |
|
|
182
|
+
| `--all-tools` | Every optional tool except gsd, autoskills, playwright-extension, coordinate, lean-migrate and code-mode |
|
|
183
|
+
| `--no-tools` | No optional tools |
|
|
184
|
+
| `--everything` | Fresh-machine preset: plans the missing prerequisites first (Homebrew, nvm, Node 24 under nvm, uv, RTK, jq, Bun), then Claude Code + OpenCode 2 (installs their CLIs if missing; on Windows it also configures the Copilot CLI, VS Code Copilot and Antigravity that are already on the PC, skipping any that are missing) with every optional tool, shows one plan and asks once (`--yes` accepts; `--dry-run --json` prints it; a rerun resumes). Your own Node stays the default. `--agents` and `--tools` still override it |
|
|
185
|
+
| `--no-core` | Leave out RTK and Context Mode; install only the `--tools` you list |
|
|
186
|
+
| `--privacy` standard or strict | Same as `--network on` (standard) or `--network off` (strict) |
|
|
187
|
+
| `--network` on or off | Preset for telemetry, auto-updates and other outbound calls |
|
|
188
|
+
| `--telemetry`, `--auto-update`, `--outbound` on or off | One category; overrides the preset |
|
|
189
|
+
| `--profile <name>` | Model profile for OpenCode |
|
|
190
|
+
| `--lang` en or es | Language for rules and replies |
|
|
191
|
+
| `--terminal` warp, orca, both or none | Agent integrations for a terminal you already have (default: the detected ones) |
|
|
192
|
+
| `--gh` / `--no-gh` | Install GitHub CLI (`gh`) if it is missing (default: on) |
|
|
193
|
+
| `--bun` / `--no-bun` | Install Bun for Context Mode (default: on) |
|
|
194
|
+
| `--no-app` | Do not install the Antigravity app (the CLI is still installed when missing) |
|
|
195
|
+
| `--no-exec` | Run no external command (no installs, no version probes); `--uninstall` refuses it when commands need undoing |
|
|
196
|
+
| `--probe-plugins` | With `--doctor` or `--adopt`: start a short-lived `opencode serve` (throwaway state dir, loopback) and check that a plugin's command registers |
|
|
197
|
+
| `--project <dir>` | Write the shared team files into one repository |
|
|
198
|
+
| `--migrate <from>` or `auto` | Copy rules, agents, skills, prompts and MCP servers from another harness; never overwrites |
|
|
199
|
+
| `--adhd-always` | Turn on i-have-adhd for every answer |
|
|
200
|
+
| `--ponytail-mode` lite, full, ultra or off | Ponytail level |
|
|
201
|
+
| `--shell` default or git-bash | OpenCode on Windows: use Git Bash when found (default: git-bash); never overwrites a shell you set yourself |
|
|
202
|
+
| `--json` | With `--dry-run`, `--doctor`, `--adopt` or `--yes` (a real apply: `{ ok, files, commands, errors, version }`, see [docs/install-json.md](docs/install-json.md)): print one JSON object on stdout |
|
|
203
|
+
| `--feedback-draft` | After a failed install: read the error on stdin and print a redacted issue draft as JSON. Needs `--failed-command` |
|
|
204
|
+
| `--failed-command <text>` | The command that failed, for `--feedback-draft` |
|
|
205
|
+
| `--feedback-kind update` | With `--feedback-draft`: the text is a finding from an update, not an error |
|
|
206
|
+
| `--update` | Re-apply with your saved choices; the plan lists `tool: installed -> release pin`, what stays held (OpenCode 1.x, agent CLIs across a major, tools you installed yourself) and the release notes since your version (`--dry-run [--json]` shows it without changing anything). After the one confirm it also moves the Claude Code, OpenCode 2 and Copilot CLI that lean-agents installed to the release pin, inside the same major (Cursor and Antigravity have no pin, so they stay); each step saves the previous version in `state.json`, and a failed step is reported while the rest continue |
|
|
207
|
+
| `--update --undo [--yes]` | Put each agent CLI that `--update` upgraded back on the version it had before its first upgrade (the oldest saved `from` per agent, never OpenCode 1.x or across a major): plan first, then a confirm (or `--yes`); a failed step is reported, the rest continue, and the records of restored agents are dropped from `state.json`. `--uninstall` leaves upgraded agent CLIs alone (`--uninstall-agent` removes the ones lean-agents installed) |
|
|
208
|
+
| `--doctor` | Check the install |
|
|
209
|
+
| `--summary` | Write the summary page (`summary.html` in `~/.config/lean-agents/`; `--uninstall` removes it): log-in checklist, the verify prompt with a copy button, what was installed, next steps. The install writes it too and asks once before opening it (never under CI, `--yes`, `--json` or `--no-open`). `--filed-issue "item=issue url"` records an issue the verify prompt filed |
|
|
210
|
+
| `--uninstall` | Undo everything lean-agents changed |
|
|
211
|
+
| `--adopt` | List what a hand-built machine already has and what each item is; with `--yes` it applies the plan |
|
|
212
|
+
| `--confirm-removals` | With `--adopt --yes` and no terminal: also remove old npm copies, duplicate skill folders and hand-made stopgaps (all backed up) |
|
|
213
|
+
| `--keep-backup` | Keep the backup after a verified `--adopt --yes` |
|
|
214
|
+
| `--undo` | With `--adopt`: restore what the last `--adopt --yes` changed |
|
|
215
|
+
| `--upgrade-agent opencode` | Dry run for moving OpenCode 1.x to 2.x; changes nothing |
|
|
216
|
+
| `--upgrade-agent opencode --backup [--yes]` | Permanent sha256-checked backup of the 1.x sessions and config, then a frozen copy; plan only without `--yes` |
|
|
217
|
+
| `--upgrade-agent opencode --opencode1 [--yes]` | After `--backup`: adds `opencode1`, which runs OpenCode 1.x on the frozen copy only; `--uninstall` removes it |
|
|
218
|
+
| `--upgrade-agent opencode --yes` | Apply, only with a verified backup stamp from `--backup --yes`: `opencode1`, OpenCode 2, the translated config, DCP. Every step is journaled; a failed step undoes the finished ones |
|
|
219
|
+
| `--upgrade-agent opencode --undo [--yes]` | Back to 1.x: undoes each step, moves the 2.x-migrated db aside (never deleted), copies the frozen copy back; the backup and the frozen copy are kept |
|
|
220
|
+
| `--install-agent a,b` / `--uninstall-agent a,b` | Install or remove agent CLIs that lean-agents installed; plan first, `--yes` runs it; never OpenCode 1.x. `vscode-copilot` only writes or removes its config files: VS Code owns the Copilot extension |
|
|
221
|
+
| `--upgrade-agent vscode-copilot` | Report only: the extension updates from VS Code; `--update` refreshes the files lean-agents wrote |
|
|
222
|
+
| `--usage` | Print the Copilot credits left (one `gh` call, no model request) |
|
|
223
|
+
| `--version` | Print the lean-agents version |
|
|
224
|
+
| `--home <dir>` | Treat this folder as your home directory; use a temp folder to try things safely |
|
|
225
|
+
|
|
226
|
+
### Fresh Mac or Windows PC (`--everything`)
|
|
227
|
+
|
|
228
|
+
One command from a machine with no Node.js, git or Homebrew. It detects what you have, plans, asks once, applies, and you finish with `--doctor`. Plan only first:
|
|
229
|
+
|
|
230
|
+
```bash
|
|
231
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --dry-run --everything
|
|
232
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --everything
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
```powershell
|
|
236
|
+
& ([scriptblock]::Create((irm https://github.com/estebanmr99/lean-agents/releases/latest/download/install.ps1))) -DryRun --everything
|
|
237
|
+
& ([scriptblock]::Create((irm https://github.com/estebanmr99/lean-agents/releases/latest/download/install.ps1))) --everything
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
- **Plans:** only what is missing. Prerequisites first: Xcode Command Line Tools and Homebrew (macOS), git and unzip (Linux, apt-get), nvm and Node.js 24 under nvm (your own Node stays the default), uv, RTK, jq, Bun. Then Claude Code and OpenCode 2 (installing their CLIs if missing) with every optional tool. On Windows it also sets up the Copilot CLI, VS Code Copilot and Antigravity that are already on the PC. `--agents` and `--tools` override it.
|
|
241
|
+
- **PATH (macOS, Linux):** the folders it installs into (`~/.local/bin`, `~/.opencode/bin`, Homebrew's, and `install.sh`'s own Node.js, last so your Node stays the default) go into one marked block in your shell rc file (`~/.zshrc`, `~/.bashrc`, `~/.bash_profile` or `~/.profile`), leaving out any already on PATH. Open a new terminal afterwards. `--uninstall` removes the block. Windows uses the user PATH.
|
|
242
|
+
- **Asks:** one question, `Apply these changes?` (`--yes` accepts it). Homebrew's own installer asks for your macOS password. On Windows nothing is meant to need admin (nvm-windows without admin is still **VERIFY**).
|
|
243
|
+
- **Corporate PC or proxy, in five lines:** (1) read [docs/SECURITY-REVIEW.md](docs/SECURITY-REVIEW.md) first; (2) set `HTTPS_PROXY`, `NO_PROXY` and `NODE_EXTRA_CA_CERTS` in your own terminal (never written to disk); (3) add `--network off` for a work PC; (4) `--dry-run` shows every host and command before anything runs; (5) already on OpenCode 1.x? Use `--adopt`, not `--everything`. More: [On a work PC](#on-a-work-pc-proxy-network-and-security-review).
|
|
244
|
+
- **Interrupted?** Run the same command again: finished steps are skipped.
|
|
245
|
+
- **Undo:** `--uninstall` removes what lean-agents changed. Prerequisites you already had stay; Homebrew has no automatic undo (its uninstaller is interactive); `~/.nvm` goes only when every Node under it is v24.
|
|
246
|
+
|
|
247
|
+
The walkthrough with the prompts and what each step prints: [docs/fresh-machine.md](docs/fresh-machine.md). What CI proves and what stays **VERIFY**: [docs/compatibility.md](docs/compatibility.md).
|
|
248
|
+
|
|
249
|
+
### Fallback: bootstraps
|
|
250
|
+
|
|
251
|
+
Use these only when you have no Node.js 22.20+ yet. They check for Node.js 22.20+ (git is not needed to run the release). If it is missing, `install.sh --dry-run` prints the plan and stops. Otherwise `install.sh` shows the options and asks first: on macOS `brew install node`, or the official Homebrew installer (it asks for your password and installs the Xcode Command Line Tools) when Homebrew is missing, or a Node.js download from nodejs.org checked against its `SHASUMS256.txt` into `~/.config/lean-agents/node` (no admin; `--yes` accepts only this one; remove the folder to undo). A Node.js you already have, even an old one, is never replaced. `install.ps1` does not need git; with no Node.js it asks first (unless you pass `-Yes`), tries `winget`, and without `winget` downloads the Node.js 24 zip from nodejs.org (SHA-256 checked) into `%USERPROFILE%\tools\node` for your user only, with no admin rights. A `-DryRun` with no Node.js uses a temporary copy and changes nothing. Downloads use TLS 1.2 and honor `HTTPS_PROXY` and `NO_PROXY`, or else the Windows system proxy. `install.sh` also honors `NODE_EXTRA_CA_CERTS` from your shell; neither script writes any of them to disk. Then they download the latest release, check it against the release's `SHA256SUMS`, and only then run it.
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --dry-run
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
```powershell
|
|
258
|
+
& ([scriptblock]::Create((irm https://github.com/estebanmr99/lean-agents/releases/latest/download/install.ps1))) -DryRun
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
`LEAN_AGENTS_VERSION=1.0.0` pins a release. Once installed, `--dry-run`, `--doctor` and `--uninstall` need no network. A local checkout (`bash install.sh` from a clone) is trusted as it is; only the release download is checksum-verified.
|
|
262
|
+
|
|
171
263
|
## Why
|
|
172
264
|
|
|
173
265
|
- **Fewer tokens.** Exploration, research and review go to cheap subagents. Big outputs stay out of the context window. Agents search symbols instead of reading whole files.
|
|
@@ -180,13 +272,15 @@ Always start with `--dry-run`: it shows every file and command before anything c
|
|
|
180
272
|
| --- | --- | --- | --- | --- | --- |
|
|
181
273
|
| Global rules (AGENTS.md) | ✅ | ✅ | ✅ | ✅ | ⚠️ written, load unproven |
|
|
182
274
|
| Subagents by cost tier | ✅ | ✅ | ✅ | ✅ | ✅ flash, pro |
|
|
183
|
-
| RTK (shell output compression) | ✅ |
|
|
275
|
+
| RTK (shell output compression) | ✅ | ➖ plugin refused (#179) | ✅ | ✅ | ✅ |
|
|
184
276
|
| Context Mode | ✅ plugin | ✅ MCP | ✅ plugin | ✅ MCP | ➖ skipped (no v2 setup) |
|
|
185
277
|
| Serena + Playwright MCP | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
186
278
|
| Signed-in browser (opt-in) | ➖ Claude in Chrome | ✅ opt-in | ✅ opt-in | ✅ opt-in | ➖ |
|
|
187
279
|
| Ponytail | ✅ | ✅ | ✅ | ➖ | ➖ |
|
|
188
280
|
| i-have-adhd | ✅ | ✅ | ✅ | ✅ | ⚠️ written, load unproven |
|
|
189
281
|
| Caveman and other skills | ✅ | ✅ | ✅ | ✅ | ⚠️ written, load unproven |
|
|
282
|
+
| Own skills only on undo; `agy` found outside PATH | ➖ | ➖ | ➖ | ➖ | ✅ keeps your same-name skill |
|
|
283
|
+
| Node 22.20 floor check (engine, not per agent) | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
190
284
|
| Context compaction | ✅ auto 80% | ✅ native | ✅ native, optional DCP | ➖ | ➖ |
|
|
191
285
|
| Network presets (telemetry, updates, outbound) | ✅ | ✅ updates, sharing | ✅ | ⚠️ updates; telemetry is a reminder | ⚠️ reminders only |
|
|
192
286
|
| Proxy passed to every install command | ✅ | ✅ | ✅ | ✅ | ⚠️ checked in CI, undocumented upstream |
|
|
@@ -213,7 +307,7 @@ Always start with `--dry-run`: it shows every file and command before anything c
|
|
|
213
307
|
<details>
|
|
214
308
|
<summary>What the Warp and Orca integrations add</summary>
|
|
215
309
|
|
|
216
|
-
If you already use [Warp](https://www.warp.dev) or [Orca](https://github.com/stablyai/orca), lean-agents adds their agent integrations for the agents you chose.
|
|
310
|
+
If you already use [Warp](https://www.warp.dev) or [Orca](https://github.com/stablyai/orca), lean-agents adds their agent integrations for the agents you chose. You can also ask lean-agents to install the terminals themselves (`--install-terminal warp|orca|both`, or interactively). It looks for the app (or `warp-terminal` / `orca` on PATH), preselects what it finds, and asks nothing when neither is there. `--terminal warp|orca|both|none` overrides; `none` opts out.
|
|
217
311
|
|
|
218
312
|
- **Warp:** the Claude Code plugin `warp@claude-code-warp` (needs `jq`) and the OpenCode plugin `@warp-dot-dev/opencode-warp`.
|
|
219
313
|
- **Orca:** the `orca-cli` skill for your agents. Orca manages its own status hooks (Settings > Agents, or `orca agent hooks on`); lean-agents does not touch them, but Orca's first launch writes them into `~/.claude/settings.json` and `~/.cursor/hooks.json`, and `--doctor` reports them. Its Agent Session Search indexes every agent chat on the machine and is on by default (Settings > Session History).
|
|
@@ -354,8 +448,9 @@ If your company pays for GitHub Copilot, the official way to use Claude as an ag
|
|
|
354
448
|
| --- | --- | --- |
|
|
355
449
|
| Minimal | Rules, tiered subagents, compaction, output limits, RTK, Context Mode | Always; `--no-core` (`-NoCore` in PowerShell) leaves out RTK and Context Mode |
|
|
356
450
|
| Optional tools | Serena, Playwright, Ponytail, Caveman, i-have-adhd, DCP (OpenCode 1.x, AGPL-3.0), Codeburn, Copilot usage (credits left in the OpenCode sidebar and the Claude Code status line, read with `gh`; `lean-agents --usage` prints them) | Asked one by one |
|
|
357
|
-
| Opt-in tools | GSD Core, AutoSkills (CC BY-NC 4.0: non-commercial use only), the `coordinate` skill (coordinator playbook, session prompt and worker watcher: [docs/agent-workflow.md](docs/agent-workflow.md)) | Asked one by one, never in `--all-tools` |
|
|
451
|
+
| Opt-in tools | GSD Core, AutoSkills (CC BY-NC 4.0: non-commercial use only), the `coordinate` skill (coordinator playbook, session prompt and worker watcher: [docs/agent-workflow.md](docs/agent-workflow.md)), Claude Code Code Mode (`code-mode`, experimental: direct Anthropic login only, sessions started with it resume only with it on) | Asked one by one, never in `--all-tools` |
|
|
358
452
|
| Strict privacy | No telemetry, no auto-updates, no session sharing, no providers that train on your prompts | Off, opt in with `--privacy strict` |
|
|
453
|
+
| Agent self-updaters | Off for every managed install (Claude Code `DISABLE_AUTOUPDATER`, OpenCode `update` / `autoupdate`, Copilot CLI `autoUpdate`), unless you pass `--auto-update on` (or pick auto-updates in the per-category menu), which writes no switch and leaves the agent's own updater alone: `--update` is the one way agents get updated. A value you already set is kept and reported; `--uninstall` removes ours | Off; `--auto-update on` leaves the agent's updater as it is |
|
|
359
454
|
| Network preset | All off (work PC), all on, or per category: telemetry, auto-updates, other outbound calls. Off sets switches only: install downloads and chosen tools are not blocked ([privacy.md](docs/privacy.md#what-each-preset-does-not-block)) | All on; `--network off` (same as `--privacy strict`) or `--telemetry`, `--auto-update`, `--outbound` |
|
|
360
455
|
| GitHub CLI (`gh`) | Installed with brew or winget at user scope; you run `gh auth login` | On when missing; `--no-gh` (`-NoGh` in PowerShell) skips it |
|
|
361
456
|
| Bun (for Context Mode) | Faster `ctx_execute` JavaScript and TypeScript; see below | On; `--no-bun` (`-NoBun` in PowerShell) |
|
|
@@ -366,6 +461,15 @@ If your company pays for GitHub Copilot, the official way to use Claude as an ag
|
|
|
366
461
|
- A Bun you already have is reused and never removed. If the install fails, Context Mode runs on Node.
|
|
367
462
|
- With telemetry off, `~/.bunfig.toml` gets a marked `telemetry = false` block. `--uninstall` removes only what lean-agents installed.
|
|
368
463
|
|
|
464
|
+
## Antigravity pilot
|
|
465
|
+
|
|
466
|
+
Antigravity has three parts: the CLI (`agy`), the IDE and the VS Code extension `Google.google-antigravity`. Upstream docs say the IDE and CLI read the same `~/.gemini/config` folders; this is not tested in the IDE yet.
|
|
467
|
+
|
|
468
|
+
- **lean-agents configures** (through the CLI adapter, user scope): rules, agents, skills and MCP servers in `~/.gemini/config`, and RTK, i-have-adhd and Caveman where supported.
|
|
469
|
+
- **It does not**: install the IDE or the extension, edit IDE or extension settings, write `hooks.json` or the telemetry setting (`antigravity.enableTelemetry` is deprecated and on by default; set it yourself in team mode).
|
|
470
|
+
- **Read-only checks**: `--doctor` and `--adopt` report which of `~/.gemini/antigravity-ide`, `antigravity-cli`, the legacy `antigravity` and the extension exist. `--doctor` also lists the proxy and CA variables the extension and `agy` read (`HTTP_PROXY`, `HTTPS_PROXY`, `NO_PROXY`, `NODE_EXTRA_CA_CERTS`, `SSL_CERT_FILE`, `NODE_USE_SYSTEM_CA`) as set or not set, never their values.
|
|
471
|
+
- **Unverified**: Windows and Linux paths, whether the IDE runs `hooks.json` or loads `.agents/mcp_config.json`, Open VSX, auto-update. See [docs/compatibility.md](docs/compatibility.md).
|
|
472
|
+
|
|
369
473
|
## On a work PC: proxy, network and security review
|
|
370
474
|
|
|
371
475
|
<details>
|
|
@@ -381,11 +485,11 @@ If your company pays for GitHub Copilot, the official way to use Claude as an ag
|
|
|
381
485
|
3. **Pick a network preset.** The installer asks: **all off** (enterprise PC), **all on** (personal PC) or **per category**. For scripted runs:
|
|
382
486
|
```bash
|
|
383
487
|
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --dry-run --network off # everything off
|
|
384
|
-
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --yes --network off --
|
|
488
|
+
curl -fsSL https://github.com/estebanmr99/lean-agents/releases/latest/download/install.sh | bash -s -- --yes --network off --telemetry on # off, but keep telemetry
|
|
385
489
|
```
|
|
386
490
|
The per-category flags are `--telemetry on|off`, `--auto-update on|off` and `--outbound on|off`. `--network off` is the same as `--privacy strict`. In PowerShell they pass as they are, for example `-DryRun --network off`. What each category turns off per agent: [docs/privacy.md](docs/privacy.md). The choice is saved and reused by `--update`.
|
|
387
491
|
4. **`gh`**: GitHub CLI is installed without admin rights when missing (`--no-gh` skips it); then run `gh auth login` yourself.
|
|
388
|
-
5. **Run-time fetches.** Besides install-time commands, agents download code each time they start an MCP server or use a skill. Every one is pinned to an exact version in [core/pins.json](core/pins.json) (Playwright MCP, Context Mode, Codeburn, AutoSkills, GSD Core, DCP, the Skills CLI and the skills Caveman, i-have-adhd and orca-cli), so nothing changes under you until you update. `--doctor` reports `changed` when the installed pins differ from that file. Not pinned yet: Serena (`git+https` source), RTK and `gh` (brew or winget), the Ponytail plugin and the Claude plugin marketplaces. Use `--no-core` to leave out RTK and Context Mode when your PC allows only specific tools.
|
|
492
|
+
5. **Run-time fetches.** Besides install-time commands, agents download code each time they start an MCP server or use a skill. Every one is pinned to an exact version in [core/pins.json](core/pins.json) (Playwright MCP, Context Mode, Codeburn, AutoSkills, GSD Core, DCP, the Skills CLI and the skills Caveman, i-have-adhd and orca-cli), so nothing changes under you until you update. `--doctor` reports `changed` when the installed pins differ from that file. Not pinned yet: Serena (`git+https` source), RTK and `gh` (brew or winget), the Ponytail plugin and the Claude plugin marketplaces. Use `--no-core` to leave out RTK and Context Mode when your PC allows only specific tools. RTK, uv, `gh` (Homebrew and winget cannot install a fixed version) and the Antigravity cask are tracked in the same file as a known-good version and a minimum: the update plan reports them and the daily watch flags newer releases, but lean-agents never forces a version on them. Bun is tracked too (its checksums stay by hand).
|
|
389
493
|
|
|
390
494
|
In a real terminal the installer shows menus (arrow keys, space to toggle), a progress list and a summary. With `--yes`, a pipe or no terminal, it asks plain questions or none, as before.
|
|
391
495
|
|
|
@@ -438,9 +542,11 @@ lean-agents is glue. The heavy lifting is done by these projects; please star th
|
|
|
438
542
|
- [x] Parallel agent sessions (`scripts/parallel.mjs`)
|
|
439
543
|
- [x] Warp and Orca agent integrations for users who already have them
|
|
440
544
|
- [x] Antigravity app and CLI on macOS, Linux and Windows (app loading stays VERIFY)
|
|
545
|
+
- [x] `v1.0.0` (latest): fresh-machine `--everything`, guided OpenCode 1.x to 2.x upgrade with backup and undo, install by the VS Code Copilot agent, update plan and `--update --undo`, summary page; Node.js 22.20 or newer
|
|
546
|
+
- [x] `v0.8.0`: optional agent install and uninstall, the coordinator playbook, adopt a hand-built machine, Node runtime per tool in `--doctor`
|
|
441
547
|
- [x] `v0.6.0` (includes the planned 0.5.1): fixes from real Windows installs behind a proxy, `--no-core`, pinned MCP and skill versions, migrate from another harness, install with an agent; Node.js 22.20 or newer
|
|
442
|
-
- [
|
|
443
|
-
- [ ]
|
|
548
|
+
- [x] Installable CLI on npm (`npx lean-agents@latest`)
|
|
549
|
+
- [ ] Next release (on hold): use-case GIFs, update from verified pins
|
|
444
550
|
- Later: Codex CLI, Gemini CLI
|
|
445
551
|
|
|
446
552
|
Details and linked issues: [docs/ROADMAP.md](docs/ROADMAP.md).
|
|
@@ -139,7 +139,7 @@ function start(host) {
|
|
|
139
139
|
if (solid) host.slot(() => render(solid, host.theme(), state, mounted));
|
|
140
140
|
host.command(async () => toast(await refresh()));
|
|
141
141
|
host.onIdle(() => {
|
|
142
|
-
if (Date.now() - state.fetchedAt >= MIN_REFRESH_MS) refresh();
|
|
142
|
+
if (Date.now() - state.fetchedAt >= MIN_REFRESH_MS) refresh().catch(() => {});
|
|
143
143
|
});
|
|
144
144
|
refresh().then((first) => {
|
|
145
145
|
if (!solid || (first && first.level !== "success")) toast(first);
|
|
@@ -169,6 +169,7 @@ const plugin = {
|
|
|
169
169
|
// OpenCode 2.x TUI plugin (docs: https://opencode.ai/docs/build/plugins/cli): context.ui.slot, context.keymap.layer, context.ui.toast.show.
|
|
170
170
|
setup: async (context) => {
|
|
171
171
|
const t = context.theme;
|
|
172
|
+
const offs = [];
|
|
172
173
|
await start({
|
|
173
174
|
solid: solidModule,
|
|
174
175
|
theme: () => ({ text: t.text.base, textMuted: t.text.muted, borderSubtle: t.border.base, success: "#98c379", warning: "#e5c07b", error: "#e06c75" }),
|
|
@@ -176,8 +177,10 @@ const plugin = {
|
|
|
176
177
|
toast: (m) => context.ui.toast.show(m),
|
|
177
178
|
slot: (fn) => context.ui.slot({ append: "sidebar.content", render: fn }),
|
|
178
179
|
command: (run) => context.keymap.layer(() => ({ mode: "global", commands: [{ id: COMMAND.value, title: COMMAND.title, group: COMMAND.category, palette: true, slash: COMMAND.slash, run }] })),
|
|
179
|
-
|
|
180
|
+
// A finished turn is the 2.x idle signal (the 2.1.4 binary also names `session.idle`; not verified to fire); data.on returns an unsubscribe.
|
|
181
|
+
onIdle: (fn) => offs.push(context.data?.on?.("session.execution.succeeded", fn)),
|
|
180
182
|
});
|
|
183
|
+
return () => offs.forEach((off) => off?.());
|
|
181
184
|
},
|
|
182
185
|
};
|
|
183
186
|
|