reevesagents 1.5.0 → 1.6.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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ # [1.6.0](https://github.com/mertkayacs/reevesagents/compare/v1.5.0...v1.6.0) (2026-07-25)
4
+
5
+
6
+ ### Features
7
+
8
+ * auto-reap zombie agents, raise agent cap to 100, and ship an installable skill ([7666a0d](https://github.com/mertkayacs/reevesagents/commit/7666a0d55687fa59c8c17c6f84aed72c3188613d))
9
+ * **onboarding:** one connect flow, sharper MCP text, post-install nudge ([c83abc0](https://github.com/mertkayacs/reevesagents/commit/c83abc011f04f9cbbcff0006503776b5a284091b))
10
+ * **providers:** refresh model catalogs for updated CLIs and add Codex effort ([7c1b4fa](https://github.com/mertkayacs/reevesagents/commit/7c1b4fa6ad28412d98f0c8a85f454a8404a62a1d))
11
+
3
12
  # [1.5.0](https://github.com/mertkayacs/reevesagents/compare/v1.4.0...v1.5.0) (2026-07-11)
4
13
 
5
14
 
package/README.md CHANGED
@@ -293,6 +293,7 @@ Discovery, approvals, agent control, config, and cleanup:
293
293
  - `hosts`: List the agent CLIs on this machine and show which ones ReevesAgents is connected to.
294
294
  - `attach [cli]`: Connect ReevesAgents to one agent CLI, or to every installed one when no name is given. Runs that CLI's own `mcp add`.
295
295
  - `detach <cli>`: Disconnect ReevesAgents from one agent CLI. Runs that CLI's own `mcp remove`.
296
+ - `skills [action]`: Install the ReevesAgents skill (a `SKILL.md`) so skill-aware CLIs (Claude Code, Codex, Kimi, OpenCode) learn to drive ReevesAgents on their own. Actions: `status` (default), `install`, `remove`. Key flags: `--json`.
296
297
  - `mcp`: Start the Agent control MCP server over stdio. Not run by hand; the CLI you connect it to runs it.
297
298
  - `config [key] [value]`: Show all editable settings, read one, or set one. Key flags: `--json`.
298
299
  - `presets`: List saved run presets. Key flags: `--json`.
@@ -303,6 +304,7 @@ Discovery, approvals, agent control, config, and cleanup:
303
304
  - `delete-run <run-id>`: Delete one ended run and archive it to history. Key flags: `-y, --yes`.
304
305
  - `history`: List archived ended and stale runs. Key flags: `--json`.
305
306
  - `delete-history <id>`: Delete one archived history record. Key flags: `-y, --yes`.
307
+ - `reap`: End zombie agents: any whose tmux window is gone, plus any older than `max_lifetime_ms` (when set above 0). ReevesAgents also reaps on its own in the background; this forces an immediate sweep. Key flags: `--json`.
306
308
 
307
309
  `stop`, `kill`, and the `delete` commands are destructive. They refuse to run
308
310
  without `--yes` or `ALLOW_DESTRUCTIVE=1`.
@@ -333,14 +335,26 @@ group shows up in the TUI and Web UI like any other run.
333
335
  Spawned workers do not receive the MCP by default, so they cannot spawn further
334
336
  agents. To let a worker drive its own sub-workers, attach the MCP to that
335
337
  worker's CLI from the same screen. Guardrails sit at the resource level: a
336
- per-run agent cap (`max_agents`), enforced when the spawn tool adds to a run,
337
- and the fact that each agent is a real CLI process in its own tmux pane.
338
+ per-run agent cap (`max_agents`, default 100), enforced when the spawn tool adds
339
+ to a run, and the fact that each agent is a real CLI process in its own tmux pane.
340
+
341
+ ReevesAgents also reaps zombie agents on its own. On a timer (and on the `reap`
342
+ tool or CLI command), it ends any agent whose tmux window has died and any agent
343
+ older than `max_lifetime_ms`. That lifetime cap is off by default (`0`); set it to
344
+ auto-kill runaway agents that never exit, for example one hour with
345
+ `config max_lifetime_ms 3600000`.
338
346
 
339
347
  An attached CLI can also discover what it can launch: the `list_providers` tool
340
348
  and the `reevesagents://providers` resource return the providers on this machine
341
349
  with their ids, install status, aliases, and known models, so an agent passes a
342
350
  real id to `spawn` instead of guessing.
343
351
 
352
+ To help a CLI use these tools well, `reevesagents skills install` drops a
353
+ ReevesAgents skill (a single `SKILL.md`) into the two shared skill directories,
354
+ `~/.claude/skills` and `~/.agents/skills`, that Claude Code, Codex, Kimi, and
355
+ OpenCode read. The skill teaches the drive loop; it does not attach the MCP, which
356
+ stays the separate `attach` step.
357
+
344
358
  See [docs/mcp.md](docs/mcp.md) for the full design and tool list.
345
359
 
346
360
  ## Configuration
@@ -447,10 +461,11 @@ chosen URL. Pass `--port <n>` to pick a different starting port.
447
461
  ## Not Required
448
462
 
449
463
  You do not need ReevesAgents-stored API keys, a database, Docker, a background
450
- service, or MCP setup for normal stable agent runs. Install is passive: the
451
- stable package has no postinstall script and does not rewrite provider
452
- configuration. Attaching the Agent Control MCP is the one explicit, opt-in step
453
- that touches provider config, and only through each CLI's own `mcp add` command.
464
+ service, or MCP setup for normal stable agent runs. Install never rewrites your
465
+ provider configuration: the only thing a global install adds is a one-line hint
466
+ pointing you at `reevesagents attach`. Attaching the Agent Control MCP is the one
467
+ explicit, opt-in step that touches provider config, and only through each CLI's
468
+ own `mcp add` command.
454
469
 
455
470
  ## Contributing
456
471
 
@@ -0,0 +1,55 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ defaultTmuxAvailable,
4
+ defaultTmuxTargetExists,
5
+ killAgent,
6
+ listAgents,
7
+ loadConfig,
8
+ nowMs
9
+ } from "./chunk-T7SPF4ZP.js";
10
+
11
+ // src/core/reaper.ts
12
+ function sweepAgents(options = {}) {
13
+ const haveTmux = options.targetExists ? true : (options.tmuxAvailable ?? defaultTmuxAvailable)();
14
+ if (!haveTmux) return { reaped: [] };
15
+ const targetExists = options.targetExists ?? defaultTmuxTargetExists;
16
+ const now = options.now ?? nowMs;
17
+ const maxLifetimeMs = options.maxLifetimeMs ?? loadConfig().global.max_lifetime_ms;
18
+ const reaped = [];
19
+ for (const agent of listAgents()) {
20
+ if (agent.ended_at || agent.headless) continue;
21
+ const ageMs = now() - new Date(agent.started_at).getTime();
22
+ let reason = null;
23
+ if (agent.tmux_window_id && !targetExists(agent.tmux_window_id)) {
24
+ reason = "window-gone";
25
+ } else if (maxLifetimeMs > 0 && ageMs > maxLifetimeMs) {
26
+ reason = "lifetime-exceeded";
27
+ }
28
+ if (!reason) continue;
29
+ try {
30
+ killAgent(agent.id, options.driver ? { driver: options.driver } : {});
31
+ reaped.push({
32
+ agent_id: agent.id,
33
+ run_id: agent.run_id,
34
+ nickname: agent.nickname,
35
+ reason,
36
+ age_ms: Math.max(0, Math.round(ageMs))
37
+ });
38
+ } catch {
39
+ }
40
+ }
41
+ return { reaped };
42
+ }
43
+ var lastSweepAt = 0;
44
+ function sweepAgentsThrottled(minIntervalMs = 15e3, options = {}) {
45
+ const now = (options.now ?? nowMs)();
46
+ if (lastSweepAt !== 0 && now - lastSweepAt < minIntervalMs) return { reaped: [], swept: false };
47
+ lastSweepAt = now;
48
+ return { ...sweepAgents(options), swept: true };
49
+ }
50
+
51
+ export {
52
+ sweepAgents,
53
+ sweepAgentsThrottled
54
+ };
55
+ //# sourceMappingURL=chunk-7YW57CWK.js.map
@@ -8,7 +8,7 @@ import {
8
8
  resolveLaunchCmd,
9
9
  stateRoot,
10
10
  verifyServerLaunch
11
- } from "./chunk-LKJSQLX2.js";
11
+ } from "./chunk-T7SPF4ZP.js";
12
12
 
13
13
  // src/core/onboard.ts
14
14
  function buildOnboardingState() {
@@ -32,6 +32,10 @@ async function runOnboarding() {
32
32
  const verify = attached.some((result) => result.ok) ? await verifyServerLaunch() : null;
33
33
  return { attached, verify };
34
34
  }
35
+ function suggestedAgentPrompt(installedProviders) {
36
+ const provider = installedProviders[0] ?? "codex";
37
+ return `use reevesagents to spawn a ${provider} agent and summarize the README`;
38
+ }
35
39
 
36
40
  // src/core/tui-open.ts
37
41
  import { mkdirSync, readFileSync, writeFileSync } from "fs";
@@ -55,7 +59,8 @@ function writeTuiOpenToken() {
55
59
  export {
56
60
  buildOnboardingState,
57
61
  runOnboarding,
62
+ suggestedAgentPrompt,
58
63
  readTuiOpenToken,
59
64
  writeTuiOpenToken
60
65
  };
61
- //# sourceMappingURL=chunk-OHEIERAD.js.map
66
+ //# sourceMappingURL=chunk-ICFJOMFZ.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  DEFAULT_LANGUAGE
4
- } from "./chunk-LKJSQLX2.js";
4
+ } from "./chunk-T7SPF4ZP.js";
5
5
 
6
6
  // src/i18n/locales/en.ts
7
7
  var en = {
@@ -22,6 +22,7 @@ var en = {
22
22
  "agentControl.manualHint": "attach this host by hand; cannot toggle",
23
23
  "agentControl.notInstalled": "not installed",
24
24
  "agentControl.notInstalledHint": "install this CLI to attach",
25
+ "agentControl.restartHint": "restart them (new session) to load the tools",
25
26
  "agentControl.statusKeys": "\u2191\u2193 move \xB7 enter toggle \xB7 a attach all \xB7 esc back",
26
27
  "agentControl.tagline": "Turn the reevesagents MCP on or off inside your host CLIs.",
27
28
  "agentControl.title": "Agent Control",
@@ -224,8 +225,10 @@ var en = {
224
225
  "web.mcpManual": "Manual setup",
225
226
  "web.mcpManualHint": "add it from this CLI by hand",
226
227
  "web.mcpNotInstalled": "Not installed",
228
+ "web.mcpRestartHint": "Restart {{names}} (start a new session) to load the tools.",
227
229
  "web.mcpSubtitle": "Attach the reevesagents MCP to your CLIs so an agent can spawn and drive other agents.",
228
230
  "web.mcpTitle": "Agent control",
231
+ "web.mcpVerifyFailed": "Attached, but the server did not start here: {{detail}}. A host CLI will hit the same error; check that reevesagents is installed.",
229
232
  "web.model": "Model",
230
233
  "web.modelHelp": "Provider default is safest when unsure.",
231
234
  "web.newAgent": "New agent",
@@ -350,6 +353,7 @@ var de = {
350
353
  "agentControl.manualHint": "Diesen Host manuell anh\xE4ngen; nicht umschaltbar",
351
354
  "agentControl.notInstalled": "nicht installiert",
352
355
  "agentControl.notInstalledHint": "Diese CLI installieren, um sie anzuh\xE4ngen",
356
+ "agentControl.restartHint": "Neu starten (neue Sitzung), um die Werkzeuge zu laden",
353
357
  "agentControl.statusKeys": "\u2191\u2193 Bewegen \xB7 enter Umschalten \xB7 a Alle anh\xE4ngen \xB7 esc Zur\xFCck",
354
358
  "agentControl.tagline": "Das reevesagents-MCP an deine Host-CLIs anh\xE4ngen oder daraus entfernen.",
355
359
  "agentControl.title": "Agentensteuerung",
@@ -544,8 +548,10 @@ var de = {
544
548
  "web.mcpManual": "Manuelle Einrichtung",
545
549
  "web.mcpManualHint": "manuell aus dieser CLI hinzuf\xFCgen",
546
550
  "web.mcpNotInstalled": "Nicht installiert",
551
+ "web.mcpRestartHint": "Starte {{names}} neu (beginne eine neue Sitzung), um die Werkzeuge zu laden.",
547
552
  "web.mcpSubtitle": "H\xE4nge das reevesagents-MCP an deine CLIs an, damit ein Agent andere Agenten starten und steuern kann.",
548
553
  "web.mcpTitle": "Agentensteuerung",
554
+ "web.mcpVerifyFailed": "Angeh\xE4ngt, aber der Server ist hier nicht gestartet: {{detail}}. Eine Host-CLI wird auf denselben Fehler sto\xDFen; pr\xFCfe, ob reevesagents installiert ist.",
549
555
  "web.model": "Modell",
550
556
  "web.modelHelp": "Provider-Standard ist sicher, wenn du unsicher bist.",
551
557
  "web.newAgent": "Neuer Agent",
@@ -851,6 +857,7 @@ var de = {
851
857
  "provider agent inside the run session": "Provider-Agent in der Run-Session",
852
858
  "provider setup, paths, health checks": "Provider-Einrichtung, Pfade, Zustandspr\xFCfungen",
853
859
  "ready delay (ms)": "Bereit-Verz\xF6gerung (ms)",
860
+ "max agent lifetime (ms)": "Max. Agenten-Lebensdauer (ms)",
854
861
  "refresh": "aktualisieren",
855
862
  "remove stopped run from active list": "gestoppten Run aus aktiver Liste entfernen",
856
863
  "requests appear here": "Anfragen erscheinen hier",
@@ -927,6 +934,7 @@ var fr = {
927
934
  "agentControl.manualHint": "attacher cet h\xF4te \xE0 la main ; non basculable",
928
935
  "agentControl.notInstalled": "non install\xE9",
929
936
  "agentControl.notInstalledHint": "installer ce CLI pour l'attacher",
937
+ "agentControl.restartHint": "les red\xE9marrer (nouvelle session) pour charger les outils",
930
938
  "agentControl.statusKeys": "\u2191\u2193 d\xE9placer \xB7 enter basculer \xB7 a tout attacher \xB7 esc retour",
931
939
  "agentControl.tagline": "Activez ou d\xE9sactivez le MCP reevesagents dans vos CLI h\xF4tes.",
932
940
  "agentControl.title": "Contr\xF4le des agents",
@@ -1124,8 +1132,10 @@ var fr = {
1124
1132
  "web.mcpManual": "Configuration manuelle",
1125
1133
  "web.mcpManualHint": "\xE0 ajouter \xE0 la main depuis cette CLI",
1126
1134
  "web.mcpNotInstalled": "Non install\xE9",
1135
+ "web.mcpRestartHint": "Red\xE9marrez {{names}} (d\xE9marrez une nouvelle session) pour charger les outils.",
1127
1136
  "web.mcpSubtitle": "Attachez le MCP reevesagents \xE0 vos CLI pour qu\u2019un agent puisse lancer et piloter d\u2019autres agents.",
1128
1137
  "web.mcpTitle": "Contr\xF4le des agents",
1138
+ "web.mcpVerifyFailed": "Attach\xE9, mais le serveur n\u2019a pas d\xE9marr\xE9 ici : {{detail}}. Une CLI h\xF4te rencontrera la m\xEAme erreur ; v\xE9rifiez que reevesagents est install\xE9.",
1129
1139
  "web.model": "Mod\xE8le",
1130
1140
  "web.modelHelp": "Le d\xE9faut fournisseur est le plus s\xFBr en cas de doute.",
1131
1141
  "web.newAgent": "Nouvel agent",
@@ -1429,6 +1439,7 @@ var fr = {
1429
1439
  "provider agent inside the run session": "agent fournisseur dans la session du run",
1430
1440
  "provider setup, paths, health checks": "configuration des fournisseurs, chemins, contr\xF4les d'\xE9tat",
1431
1441
  "ready delay (ms)": "D\xE9lai avant pr\xEAt (ms)",
1442
+ "max agent lifetime (ms)": "Dur\xE9e de vie max. agent (ms)",
1432
1443
  "refresh": "actualiser",
1433
1444
  "remove stopped run from active list": "retirer le run arr\xEAt\xE9 des actifs",
1434
1445
  "requests appear here": "les demandes apparaissent ici",
@@ -1504,6 +1515,7 @@ var es = {
1504
1515
  "agentControl.manualHint": "conectar este host manualmente; no se puede alternar",
1505
1516
  "agentControl.notInstalled": "no instalado",
1506
1517
  "agentControl.notInstalledHint": "instala esta CLI para conectarla",
1518
+ "agentControl.restartHint": "rein\xEDcialas (nueva sesi\xF3n) para cargar las herramientas",
1507
1519
  "agentControl.statusKeys": "\u2191\u2193 mover \xB7 enter alternar \xB7 a conectar todo \xB7 esc volver",
1508
1520
  "agentControl.tagline": "Activa o desactiva el MCP de reevesagents dentro de tus CLIs host.",
1509
1521
  "agentControl.title": "Control de agentes",
@@ -1703,8 +1715,10 @@ var es = {
1703
1715
  "web.mcpManual": "Configuraci\xF3n manual",
1704
1716
  "web.mcpManualHint": "a\xF1\xE1delo a mano desde esta CLI",
1705
1717
  "web.mcpNotInstalled": "No instalado",
1718
+ "web.mcpRestartHint": "Reinicia {{names}} (inicia una nueva sesi\xF3n) para cargar las herramientas.",
1706
1719
  "web.mcpSubtitle": "Conecta el MCP de reevesagents a tus CLI para que un agente pueda lanzar y controlar otros agentes.",
1707
1720
  "web.mcpTitle": "Control de agentes",
1721
+ "web.mcpVerifyFailed": "Conectado, pero el servidor no se inici\xF3 aqu\xED: {{detail}}. Una CLI anfitriona encontrar\xE1 el mismo error; comprueba que reevesagents est\xE9 instalado.",
1708
1722
  "web.model": "Modelo",
1709
1723
  "web.modelHelp": "El predeterminado del proveedor es lo m\xE1s seguro si dudas.",
1710
1724
  "web.newAgent": "Nuevo agente",
@@ -2019,6 +2033,7 @@ var es = {
2019
2033
  "provider agent inside the run session": "agente del proveedor dentro de la sesi\xF3n del run",
2020
2034
  "provider setup, paths, health checks": "configuraci\xF3n del proveedor, rutas, comprobaciones de estado",
2021
2035
  "ready delay (ms)": "Retraso de preparaci\xF3n (ms)",
2036
+ "max agent lifetime (ms)": "Vida m\xE1x. del agente (ms)",
2022
2037
  "refresh": "actualizar",
2023
2038
  "remove stopped run from active list": "quitar run detenido de activos",
2024
2039
  "requests appear here": "las solicitudes aparecen aqu\xED",
@@ -2094,6 +2109,7 @@ var pt = {
2094
2109
  "agentControl.manualHint": "anexar este host manualmente; n\xE3o \xE9 poss\xEDvel alternar",
2095
2110
  "agentControl.notInstalled": "n\xE3o instalado",
2096
2111
  "agentControl.notInstalledHint": "instale esta CLI para anexar",
2112
+ "agentControl.restartHint": "reinicie-as (nova sess\xE3o) para carregar as ferramentas",
2097
2113
  "agentControl.statusKeys": "\u2191\u2193 mover \xB7 enter alternar \xB7 a anexar tudo \xB7 esc voltar",
2098
2114
  "agentControl.tagline": "Anexe ou desanexe o MCP do reevesagents dentro das suas CLIs de host.",
2099
2115
  "agentControl.title": "Controlo de Agentes",
@@ -2295,8 +2311,10 @@ var pt = {
2295
2311
  "web.mcpManual": "Configura\xE7\xE3o manual",
2296
2312
  "web.mcpManualHint": "adicione manualmente a partir desta CLI",
2297
2313
  "web.mcpNotInstalled": "N\xE3o instalado",
2314
+ "web.mcpRestartHint": "Reinicie {{names}} (inicie uma nova sess\xE3o) para carregar as ferramentas.",
2298
2315
  "web.mcpSubtitle": "Anexe o MCP do reevesagents \xE0s suas CLIs para que um agente possa iniciar e controlar outros agentes.",
2299
2316
  "web.mcpTitle": "Controlo de agentes",
2317
+ "web.mcpVerifyFailed": "Anexado, mas o servidor n\xE3o iniciou aqui: {{detail}}. Uma CLI anfitri\xE3 encontrar\xE1 o mesmo erro; verifique se o reevesagents est\xE1 instalado.",
2300
2318
  "web.model": "Modelo",
2301
2319
  "web.modelHelp": "O padr\xE3o do fornecedor \xE9 o mais seguro em caso de d\xFAvida.",
2302
2320
  "web.newAgent": "Novo agente",
@@ -2614,6 +2632,7 @@ var pt = {
2614
2632
  "provider setup, paths, health checks": "configura\xE7\xE3o de fornecedores, caminhos, verifica\xE7\xF5es de estado",
2615
2633
  "refresh": "atualizar",
2616
2634
  "ready delay (ms)": "Atraso de prontid\xE3o (ms)",
2635
+ "max agent lifetime (ms)": "Vida m\xE1x. do agente (ms)",
2617
2636
  "remove stopped run from active list": "remover execu\xE7\xE3o parada da lista ativa",
2618
2637
  "requests appear here": "os pedidos aparecem aqui",
2619
2638
  "return": "voltar",
@@ -2689,6 +2708,7 @@ var it = {
2689
2708
  "agentControl.manualHint": "collega questo host manualmente; non commutabile",
2690
2709
  "agentControl.notInstalled": "non installato",
2691
2710
  "agentControl.notInstalledHint": "installa questa CLI per collegarla",
2711
+ "agentControl.restartHint": "riavviale (nuova sessione) per caricare gli strumenti",
2692
2712
  "agentControl.statusKeys": "\u2191\u2193 sposta \xB7 enter collega/scollega \xB7 a collega tutti \xB7 esc indietro",
2693
2713
  "agentControl.tagline": "Attiva o disattiva l'MCP di reevesagents nelle tue CLI host.",
2694
2714
  "agentControl.title": "Controllo agenti",
@@ -2888,8 +2908,10 @@ var it = {
2888
2908
  "web.mcpManual": "Configurazione manuale",
2889
2909
  "web.mcpManualHint": "aggiungilo a mano da questa CLI",
2890
2910
  "web.mcpNotInstalled": "Non installato",
2911
+ "web.mcpRestartHint": "Riavvia {{names}} (avvia una nuova sessione) per caricare gli strumenti.",
2891
2912
  "web.mcpSubtitle": "Collega l\u2019MCP di reevesagents alle tue CLI cos\xEC un agente pu\xF2 avviare e guidare altri agenti.",
2892
2913
  "web.mcpTitle": "Controllo agenti",
2914
+ "web.mcpVerifyFailed": "Collegato, ma il server non si \xE8 avviato qui: {{detail}}. Una CLI host incontrer\xE0 lo stesso errore; verifica che reevesagents sia installato.",
2893
2915
  "web.model": "Modello",
2894
2916
  "web.modelHelp": "Il predefinito del provider \xE8 pi\xF9 sicuro in caso di dubbi.",
2895
2917
  "web.newAgent": "Nuovo agente",
@@ -3197,6 +3219,7 @@ var it = {
3197
3219
  "provider agent inside the run session": "agente del provider nella sessione del run",
3198
3220
  "provider setup, paths, health checks": "configurazione provider, percorsi, controlli di stato",
3199
3221
  "ready delay (ms)": "Ritardo pronto (ms)",
3222
+ "max agent lifetime (ms)": "Durata max agente (ms)",
3200
3223
  "refresh": "aggiorna",
3201
3224
  "remove stopped run from active list": "rimuovi run fermo dagli attivi",
3202
3225
  "requests appear here": "le richieste compaiono qui",
@@ -3272,6 +3295,7 @@ var tr = {
3272
3295
  "agentControl.manualHint": "bu host'u elle ba\u011Fla; de\u011Fi\u015Ftirilemez",
3273
3296
  "agentControl.notInstalled": "kurulu de\u011Fil",
3274
3297
  "agentControl.notInstalledHint": "ba\u011Flamak i\xE7in bu CLI'\u0131 kur",
3298
+ "agentControl.restartHint": "ara\xE7lar\u0131 y\xFCklemek i\xE7in bunlar\u0131 yeniden ba\u015Flat (yeni oturum)",
3275
3299
  "agentControl.statusKeys": "\u2191\u2193 gez \xB7 enter de\u011Fi\u015Ftir \xB7 a t\xFCm\xFCn\xFC ba\u011Fla \xB7 esc geri",
3276
3300
  "agentControl.tagline": "Host CLI'lar\u0131n\u0131zda reevesagents MCP'sini a\xE7\u0131n veya kapat\u0131n.",
3277
3301
  "agentControl.title": "Agent Kontrol\xFC",
@@ -3471,8 +3495,10 @@ var tr = {
3471
3495
  "web.mcpManual": "Elle ekle",
3472
3496
  "web.mcpManualHint": "bu CLI'den elle ekle",
3473
3497
  "web.mcpNotInstalled": "Kurulu de\u011Fil",
3498
+ "web.mcpRestartHint": "Ara\xE7lar\u0131 y\xFCklemek i\xE7in {{names}} yeniden ba\u015Flat (yeni oturum a\xE7).",
3474
3499
  "web.mcpSubtitle": "reevesagents MCP'sini CLI'lar\u0131na ekle; b\xF6ylece bir agent ba\u015Fka agent'lar ba\u015Flat\u0131p y\xF6netebilir.",
3475
3500
  "web.mcpTitle": "Agent kontrol\xFC",
3501
+ "web.mcpVerifyFailed": "Ba\u011Fland\u0131, ancak sunucu burada ba\u015Flamad\u0131: {{detail}}. Bir host CLI ayn\u0131 hatayla kar\u015F\u0131la\u015F\u0131r; reevesagents'\u0131n kurulu oldu\u011Funu kontrol et.",
3476
3502
  "web.modelHelp": "Emin de\u011Filsen sa\u011Flay\u0131c\u0131 varsay\u0131lan\u0131 en g\xFCvenlisidir.",
3477
3503
  "web.newAgent": "Yeni agent",
3478
3504
  "web.newRun": "Yeni run",
@@ -3786,6 +3812,7 @@ var tr = {
3786
3812
  "provider agent inside the run session": "run oturumundaki sa\u011Flay\u0131c\u0131 agent'\u0131",
3787
3813
  "provider setup, paths, health checks": "sa\u011Flay\u0131c\u0131 kurulumu, yollar, sa\u011Fl\u0131k kontrolleri",
3788
3814
  "ready delay (ms)": "Haz\u0131r gecikmesi (ms)",
3815
+ "max agent lifetime (ms)": "Maks. agent \xF6mr\xFC (ms)",
3789
3816
  "refresh": "yenile",
3790
3817
  "remove stopped run from active list": "durdurulmu\u015F run'\u0131 aktif listeden kald\u0131r",
3791
3818
  "requests appear here": "istekler burada g\xF6r\xFCn\xFCr",
@@ -3861,6 +3888,7 @@ var ru = {
3861
3888
  "agentControl.manualHint": "\u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u044D\u0442\u043E\u0442 \u0445\u043E\u0441\u0442 \u0432\u0440\u0443\u0447\u043D\u0443\u044E; \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E",
3862
3889
  "agentControl.notInstalled": "\u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D",
3863
3890
  "agentControl.notInstalledHint": "\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 \u044D\u0442\u043E\u0442 CLI \u0434\u043B\u044F \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F",
3891
+ "agentControl.restartHint": "\u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 \u0438\u0445 (\u043D\u043E\u0432\u0430\u044F \u0441\u0435\u0441\u0441\u0438\u044F), \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u044B",
3864
3892
  "agentControl.statusKeys": "\u2191\u2193 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F \xB7 enter \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \xB7 a \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0432\u0441\u0435 \xB7 esc \u043D\u0430\u0437\u0430\u0434",
3865
3893
  "agentControl.tagline": "\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 MCP reevesagents \u0432 \u0432\u0430\u0448\u0438\u0445 \u0445\u043E\u0441\u0442\u043E\u0432\u044B\u0445 CLI.",
3866
3894
  "agentControl.title": "\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0430\u0433\u0435\u043D\u0442\u0430\u043C\u0438",
@@ -4062,8 +4090,10 @@ var ru = {
4062
4090
  "web.mcpManual": "\u0420\u0443\u0447\u043D\u0430\u044F \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430",
4063
4091
  "web.mcpManualHint": "\u0434\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0432\u0440\u0443\u0447\u043D\u0443\u044E \u0438\u0437 \u044D\u0442\u043E\u0433\u043E CLI",
4064
4092
  "web.mcpNotInstalled": "\u041D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D",
4093
+ "web.mcpRestartHint": "\u041F\u0435\u0440\u0435\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 {{names}} (\u043D\u0430\u0447\u043D\u0438\u0442\u0435 \u043D\u043E\u0432\u0443\u044E \u0441\u0435\u0441\u0441\u0438\u044E), \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u044B.",
4065
4094
  "web.mcpSubtitle": "\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0435 reevesagents MCP \u043A \u0432\u0430\u0448\u0438\u043C CLI, \u0447\u0442\u043E\u0431\u044B \u0430\u0433\u0435\u043D\u0442 \u043C\u043E\u0433 \u043F\u043E\u0440\u043E\u0436\u0434\u0430\u0442\u044C \u0438 \u0443\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u0430\u0433\u0435\u043D\u0442\u0430\u043C\u0438.",
4066
4095
  "web.mcpTitle": "\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0430\u0433\u0435\u043D\u0442\u0430\u043C\u0438",
4096
+ "web.mcpVerifyFailed": "\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u043E, \u043D\u043E \u0441\u0435\u0440\u0432\u0435\u0440 \u0437\u0434\u0435\u0441\u044C \u043D\u0435 \u0437\u0430\u043F\u0443\u0441\u0442\u0438\u043B\u0441\u044F: {{detail}}. \u0425\u043E\u0441\u0442\u043E\u0432\u044B\u0439 CLI \u0441\u0442\u043E\u043B\u043A\u043D\u0451\u0442\u0441\u044F \u0441 \u0442\u043E\u0439 \u0436\u0435 \u043E\u0448\u0438\u0431\u043A\u043E\u0439; \u043F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435, \u0447\u0442\u043E reevesagents \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D.",
4067
4097
  "web.model": "\u041C\u043E\u0434\u0435\u043B\u044C",
4068
4098
  "web.modelHelp": "\u0415\u0441\u043B\u0438 \u043D\u0435 \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u0435\u0435 \u0432\u0441\u0435\u0433\u043E.",
4069
4099
  "web.newAgent": "\u041D\u043E\u0432\u044B\u0439 \u0430\u0433\u0435\u043D\u0442",
@@ -4382,6 +4412,7 @@ var ru = {
4382
4412
  "provider agent inside the run session": "\u0430\u0433\u0435\u043D\u0442 \u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0432\u043D\u0443\u0442\u0440\u0438 \u0441\u0435\u0441\u0441\u0438\u0438 run",
4383
4413
  "provider setup, paths, health checks": "\u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u043E\u0432, \u043F\u0443\u0442\u0438, \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F",
4384
4414
  "ready delay (ms)": "\u0417\u0430\u0434\u0435\u0440\u0436\u043A\u0430 \u0433\u043E\u0442\u043E\u0432\u043D\u043E\u0441\u0442\u0438 (\u043C\u0441)",
4415
+ "max agent lifetime (ms)": "\u041C\u0430\u043A\u0441. \u0432\u0440\u0435\u043C\u044F \u0436\u0438\u0437\u043D\u0438 \u0430\u0433\u0435\u043D\u0442\u0430 (\u043C\u0441)",
4385
4416
  "refresh": "\u043E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",
4386
4417
  "remove stopped run from active list": "\u0443\u0431\u0440\u0430\u0442\u044C \u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043D\u044B\u0439 run \u0438\u0437 \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0441\u043F\u0438\u0441\u043A\u0430",
4387
4418
  "requests appear here": "\u0437\u0430\u043F\u0440\u043E\u0441\u044B \u043F\u043E\u044F\u0432\u043B\u044F\u044E\u0442\u0441\u044F \u0437\u0434\u0435\u0441\u044C",
@@ -4457,6 +4488,7 @@ var zhHans = {
4457
4488
  "agentControl.manualHint": "\u624B\u52A8\u63A5\u5165\u6B64\u5BBF\u4E3B\uFF1B\u65E0\u6CD5\u5207\u6362",
4458
4489
  "agentControl.notInstalled": "\u672A\u5B89\u88C5",
4459
4490
  "agentControl.notInstalledHint": "\u5B89\u88C5\u6B64 CLI \u4EE5\u63A5\u5165",
4491
+ "agentControl.restartHint": "\u91CD\u542F\u5B83\u4EEC\uFF08\u65B0\u4F1A\u8BDD\uFF09\u4EE5\u52A0\u8F7D\u5DE5\u5177",
4460
4492
  "agentControl.statusKeys": "\u2191\u2193 \u79FB\u52A8 \xB7 enter \u5207\u6362 \xB7 a \u5168\u90E8\u63A5\u5165 \xB7 esc \u8FD4\u56DE",
4461
4493
  "agentControl.tagline": "\u5728\u4F60\u7684\u5BBF\u4E3B CLI \u4E2D\u5F00\u542F\u6216\u5173\u95ED reevesagents MCP\u3002",
4462
4494
  "agentControl.title": "\u667A\u80FD\u4F53\u63A7\u5236",
@@ -4659,8 +4691,10 @@ var zhHans = {
4659
4691
  "web.mcpManual": "\u624B\u52A8\u8BBE\u7F6E",
4660
4692
  "web.mcpManualHint": "\u4ECE\u8BE5 CLI \u624B\u52A8\u6DFB\u52A0",
4661
4693
  "web.mcpNotInstalled": "\u672A\u5B89\u88C5",
4694
+ "web.mcpRestartHint": "\u91CD\u542F {{names}}\uFF08\u5F00\u59CB\u65B0\u4F1A\u8BDD\uFF09\u4EE5\u52A0\u8F7D\u5DE5\u5177\u3002",
4662
4695
  "web.mcpSubtitle": "\u5C06 reevesagents MCP \u63A5\u5165\u4F60\u7684 CLI\uFF0C\u8BA9\u4E00\u4E2A\u667A\u80FD\u4F53\u53EF\u4EE5\u542F\u52A8\u5E76\u9A71\u52A8\u5176\u4ED6\u667A\u80FD\u4F53\u3002",
4663
4696
  "web.mcpTitle": "\u667A\u80FD\u4F53\u63A7\u5236",
4697
+ "web.mcpVerifyFailed": "\u5DF2\u63A5\u5165\uFF0C\u4F46\u670D\u52A1\u5668\u672A\u80FD\u5728\u6B64\u542F\u52A8\uFF1A{{detail}}\u3002\u5BBF\u4E3B CLI \u4F1A\u9047\u5230\u540C\u6837\u7684\u9519\u8BEF\uFF1B\u8BF7\u68C0\u67E5\u662F\u5426\u5DF2\u5B89\u88C5 reevesagents\u3002",
4664
4698
  "web.model": "\u6A21\u578B",
4665
4699
  "web.modelHelp": "\u4E0D\u786E\u5B9A\u65F6\u4F7F\u7528\u670D\u52A1\u5546\u9ED8\u8BA4\u503C\u6700\u5B89\u5168\u3002",
4666
4700
  "web.newAgent": "\u65B0\u667A\u80FD\u4F53",
@@ -4981,6 +5015,7 @@ var zhHans = {
4981
5015
  "provider agent inside the run session": "\u8FD0\u884C\u4F1A\u8BDD\u5185\u7684\u670D\u52A1\u5546\u667A\u80FD\u4F53",
4982
5016
  "provider setup, paths, health checks": "\u670D\u52A1\u5546\u8BBE\u7F6E\u3001\u8DEF\u5F84\u3001\u5065\u5EB7\u68C0\u67E5",
4983
5017
  "ready delay (ms)": "\u5C31\u7EEA\u5EF6\u8FDF (ms)",
5018
+ "max agent lifetime (ms)": "\u667A\u80FD\u4F53\u6700\u957F\u5B58\u6D3B\u65F6\u95F4 (ms)",
4984
5019
  "refresh": "\u5237\u65B0",
4985
5020
  "remove stopped run from active list": "\u4ECE\u6D3B\u52A8\u5217\u8868\u4E2D\u79FB\u9664\u5DF2\u505C\u6B62\u7684\u8FD0\u884C",
4986
5021
  "requests appear here": "\u8BF7\u6C42\u4F1A\u663E\u793A\u5728\u8FD9\u91CC",
@@ -5057,6 +5092,7 @@ var ar = {
5057
5092
  "agentControl.manualHint": "\u0623\u0631\u0641\u0650\u0642 \u0647\u0630\u0627 \u0627\u0644\u0645\u0636\u064A\u0641 \u064A\u062F\u0648\u064A\u064B\u0627\u061B \u0644\u0627 \u064A\u0645\u0643\u0646 \u062A\u0628\u062F\u064A\u0644\u0647",
5058
5093
  "agentControl.notInstalled": "\u063A\u064A\u0631 \u0645\u062B\u0628\u0651\u062A",
5059
5094
  "agentControl.notInstalledHint": "\u062B\u0628\u0651\u062A \u0623\u062F\u0627\u0629 CLI \u0647\u0630\u0647 \u0644\u0625\u0631\u0641\u0627\u0642\u0647\u0627",
5095
+ "agentControl.restartHint": "\u0623\u0639\u062F \u062A\u0634\u063A\u064A\u0644\u0647\u0627 (\u062C\u0644\u0633\u0629 \u062C\u062F\u064A\u062F\u0629) \u0644\u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0623\u062F\u0648\u0627\u062A",
5060
5096
  "agentControl.statusKeys": "\u2191\u2193 \u062A\u0646\u0642\u0651\u0644 \xB7 enter \u062A\u0628\u062F\u064A\u0644 \xB7 a \u0625\u0631\u0641\u0627\u0642 \u0627\u0644\u0643\u0644 \xB7 esc \u0631\u062C\u0648\u0639",
5061
5097
  "agentControl.tagline": "\u0641\u0639\u0651\u0644 \u0623\u0648 \u0639\u0637\u0651\u0644 MCP \u0627\u0644\u062E\u0627\u0635 \u0628\u0640 reevesagents \u062F\u0627\u062E\u0644 \u0623\u062F\u0648\u0627\u062A CLI \u0627\u0644\u0645\u0636\u064A\u0641\u0629 \u0644\u062F\u064A\u0643.",
5062
5098
  "agentControl.title": "\u0627\u0644\u062A\u062D\u0643\u0645 \u0628\u0627\u0644\u0648\u0643\u0644\u0627\u0621",
@@ -5259,8 +5295,10 @@ var ar = {
5259
5295
  "web.mcpManual": "\u0625\u0639\u062F\u0627\u062F \u064A\u062F\u0648\u064A",
5260
5296
  "web.mcpManualHint": "\u0623\u0636\u0650\u0641\u0647 \u064A\u062F\u0648\u064A\u064B\u0627 \u0645\u0646 \u0647\u0630\u0627 CLI",
5261
5297
  "web.mcpNotInstalled": "\u063A\u064A\u0631 \u0645\u062B\u0628\u062A",
5298
+ "web.mcpRestartHint": "\u0623\u0639\u062F \u062A\u0634\u063A\u064A\u0644 {{names}} (\u0627\u0628\u062F\u0623 \u062C\u0644\u0633\u0629 \u062C\u062F\u064A\u062F\u0629) \u0644\u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0623\u062F\u0648\u0627\u062A.",
5262
5299
  "web.mcpSubtitle": "\u0623\u0631\u0641\u0642 MCP \u0627\u0644\u062E\u0627\u0635 \u0628\u0640 reevesagents \u0628\u0623\u062F\u0648\u0627\u062A CLI \u0644\u062F\u064A\u0643 \u062D\u062A\u0649 \u064A\u062A\u0645\u0643\u0646 \u0627\u0644\u0648\u0643\u064A\u0644 \u0645\u0646 \u062A\u0634\u063A\u064A\u0644 \u0648\u0643\u0644\u0627\u0621 \u0622\u062E\u0631\u064A\u0646 \u0648\u0642\u064A\u0627\u062F\u062A\u0647\u0645.",
5263
5300
  "web.mcpTitle": "\u0627\u0644\u062A\u062D\u0643\u0645 \u0628\u0627\u0644\u0648\u0643\u064A\u0644",
5301
+ "web.mcpVerifyFailed": "\u062A\u0645 \u0627\u0644\u0625\u0631\u0641\u0627\u0642\u060C \u0644\u0643\u0646 \u0627\u0644\u062E\u0627\u062F\u0645 \u0644\u0645 \u064A\u0628\u062F\u0623 \u0647\u0646\u0627: {{detail}}. \u0633\u062A\u0648\u0627\u062C\u0647 \u0623\u062F\u0627\u0629 CLI \u0645\u0636\u064A\u0641\u0629 \u0627\u0644\u062E\u0637\u0623 \u0646\u0641\u0633\u0647\u061B \u062A\u062D\u0642\u0642 \u0645\u0646 \u0623\u0646 reevesagents \u0645\u062B\u0628\u062A.",
5264
5302
  "web.model": "\u0627\u0644\u0646\u0645\u0648\u0630\u062C",
5265
5303
  "web.modelHelp": "\u0627\u0641\u062A\u0631\u0627\u0636\u064A \u0627\u0644\u0645\u0632\u0648\u0651\u062F \u0647\u0648 \u0627\u0644\u062E\u064A\u0627\u0631 \u0627\u0644\u0622\u0645\u0646 \u0639\u0646\u062F \u0627\u0644\u0634\u0643.",
5266
5304
  "web.newAgent": "\u0648\u0643\u064A\u0644 \u062C\u062F\u064A\u062F",
@@ -5581,6 +5619,7 @@ var ar = {
5581
5619
  "provider agent inside the run session": "\u0648\u0643\u064A\u0644 \u0627\u0644\u0645\u0632\u0648\u0651\u062F \u062F\u0627\u062E\u0644 \u062C\u0644\u0633\u0629 \u0627\u0644\u062A\u0634\u063A\u064A\u0644\u0629",
5582
5620
  "provider setup, paths, health checks": "\u0625\u0639\u062F\u0627\u062F \u0627\u0644\u0645\u0632\u0648\u0651\u062F \u0648\u0627\u0644\u0645\u0633\u0627\u0631\u0627\u062A \u0648\u0641\u062D\u0648\u0635 \u0627\u0644\u062D\u0627\u0644\u0629",
5583
5621
  "ready delay (ms)": "\u0645\u0647\u0644\u0629 \u0627\u0644\u062C\u0627\u0647\u0632\u064A\u0629 (ms)",
5622
+ "max agent lifetime (ms)": "\u0623\u0642\u0635\u0649 \u0639\u0645\u0631 \u0644\u0644\u0648\u0643\u064A\u0644 (ms)",
5584
5623
  "refresh": "\u062A\u062D\u062F\u064A\u062B",
5585
5624
  "remove stopped run from active list": "\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062A\u0634\u063A\u064A\u0644\u0629 \u0627\u0644\u0645\u062A\u0648\u0642\u0641\u0629 \u0645\u0646 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0646\u0634\u0637\u0629",
5586
5625
  "requests appear here": "\u062A\u0638\u0647\u0631 \u0627\u0644\u0637\u0644\u0628\u0627\u062A \u0647\u0646\u0627",
@@ -5673,4 +5712,4 @@ export {
5673
5712
  localeCatalog,
5674
5713
  translatePhrase
5675
5714
  };
5676
- //# sourceMappingURL=chunk-BWJKK6LM.js.map
5715
+ //# sourceMappingURL=chunk-J2DD52HJ.js.map
@@ -0,0 +1,136 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/core/skills.ts
4
+ import { mkdirSync, writeFileSync, readFileSync, rmSync, existsSync } from "fs";
5
+ import { homedir } from "os";
6
+ import { join } from "path";
7
+ var SKILL_NAME = "reevesagents";
8
+ var REEVESAGENTS_SKILL = `---
9
+ name: reevesagents
10
+ description: Drive a team of other AI coding CLIs from the current session through the reevesagents MCP server. Use when the user asks to delegate work to another model, run several agents in parallel, or orchestrate a multi-agent team: spawn Claude Code, Codex, Kimi, Qwen, OpenCode and other installed CLIs each in its own tmux window, send them prompts, read their output, and stop or reap them. Assumes the reevesagents MCP server is attached to this CLI (run: reevesagents attach).
11
+ ---
12
+
13
+ # reevesagents: drive a team of AI CLIs
14
+
15
+ reevesagents lets you, from this session, run and steer other AI coding CLIs. Each
16
+ agent is a real CLI in its own tmux window on this machine. reevesagents never
17
+ proxies model traffic; every CLI uses its own login.
18
+
19
+ The tools below come from the reevesagents MCP server. Depending on this host they
20
+ may appear as bare names (\`spawn\`), as \`mcp__reevesagents__spawn\` (Claude Code,
21
+ Kimi), or as \`reevesagents_spawn\` (OpenCode). Use whichever form your tool list
22
+ shows; the bare names are used here.
23
+
24
+ ## When to use
25
+ - The user wants to hand a slice of work to another model and keep working.
26
+ - Several independent tasks can run in parallel across different CLIs.
27
+ - The user asks for a team (a lead plus workers) or to orchestrate multiple agents.
28
+
29
+ ## Drive loop
30
+ 1. list_providers - the CLIs installed here and their models. Spawn only these.
31
+ 2. spawn { provider, task } - start an agent; returns agent_id and run_id. Omit
32
+ run_id to keep agents in one run (a team); pass run_id to add to an existing run.
33
+ Set permissions:"skip" for an autonomous worker when no human will approve prompts.
34
+ 3. read { agent_id } - the agent's recent output. spawn is fire-and-forget: it
35
+ returns ids, not answers, so poll read until the agent replies or its output
36
+ settles. A fresh agent may sit at a login or trust prompt; read first.
37
+ 4. send_text { agent_id, text } then send_key { agent_id, key: "enter" } - type a
38
+ message, then submit it. send_text alone does NOT submit.
39
+ 5. kill { agent_id } or stop { run_id } when done.
40
+
41
+ ## Worked example: hand a task to Codex, then steer it
42
+ 1. list_providers confirm "codex" is installed
43
+ 2. spawn { "provider": "codex", "task": "summarize README.md" } -> { agent_id, run_id }
44
+ 3. read { "agent_id": "..." } poll until it answers
45
+ 4. send_text { "agent_id": "...", "text": "now write tests for it" }
46
+ send_key { "agent_id": "...", "key": "enter" }
47
+ 5. kill { "agent_id": "..." } stop it when finished
48
+
49
+ ## Spawn a team
50
+ Spawn several agents with run_id omitted so they land in one run, then poll each:
51
+ spawn { "provider": "cc", "task": "lead: coordinate the others", "permissions": "skip" }
52
+ spawn { "provider": "codex", "task": "worker: the API slice", "permissions": "skip" }
53
+ spawn { "provider": "kimi", "task": "worker: the docs" }
54
+
55
+ ## Housekeeping
56
+ - list shows every live run and agent; list_history shows ended ones.
57
+ - reap ends zombie agents: any whose tmux window died, plus any older than
58
+ max_lifetime_ms. reevesagents also reaps in the background, but call reap to force
59
+ an immediate sweep.
60
+ - get_config / set_config read and change global settings, including the per-run
61
+ agent cap (max_agents) and the auto-reap age (max_lifetime_ms; 0 disables it).
62
+ - request_approval / resolve_approval gate a risky action behind a human or another
63
+ agent before it runs.
64
+
65
+ ## Notes
66
+ - send_text types but does not submit; always follow it with send_key enter.
67
+ - permissions:"skip" runs a worker autonomously; use it when no human will approve.
68
+ - Spawned agents are plain CLIs and cannot spawn others unless reevesagents is also
69
+ attached to them.
70
+ - If a spawn is rejected because a run is at the agent cap, raise max_agents with
71
+ set_config.
72
+ `;
73
+ function skillsHome() {
74
+ return process.env.REEVES_HOME || homedir();
75
+ }
76
+ function skillTargets() {
77
+ const home = skillsHome();
78
+ return [
79
+ {
80
+ key: "claude",
81
+ label: "Claude Code, OpenCode",
82
+ dir: join(home, ".claude", "skills", SKILL_NAME),
83
+ file: join(home, ".claude", "skills", SKILL_NAME, "SKILL.md")
84
+ },
85
+ {
86
+ key: "agents",
87
+ label: "Codex, Kimi, OpenCode",
88
+ dir: join(home, ".agents", "skills", SKILL_NAME),
89
+ file: join(home, ".agents", "skills", SKILL_NAME, "SKILL.md")
90
+ }
91
+ ];
92
+ }
93
+ function installSkills() {
94
+ return skillTargets().map((target) => {
95
+ try {
96
+ mkdirSync(target.dir, { recursive: true });
97
+ writeFileSync(target.file, REEVESAGENTS_SKILL, "utf-8");
98
+ return { key: target.key, label: target.label, file: target.file, ok: true, message: "installed" };
99
+ } catch (err) {
100
+ return { key: target.key, label: target.label, file: target.file, ok: false, message: err instanceof Error ? err.message : String(err) };
101
+ }
102
+ });
103
+ }
104
+ function skillsStatus() {
105
+ return skillTargets().map((target) => {
106
+ let present = false;
107
+ let current = false;
108
+ try {
109
+ const content = readFileSync(target.file, "utf-8");
110
+ present = true;
111
+ current = content === REEVESAGENTS_SKILL;
112
+ } catch {
113
+ }
114
+ return { key: target.key, label: target.label, file: target.file, present, current };
115
+ });
116
+ }
117
+ function removeSkills() {
118
+ return skillTargets().map((target) => {
119
+ try {
120
+ if (!existsSync(target.file)) {
121
+ return { key: target.key, label: target.label, file: target.file, ok: true, message: "not installed" };
122
+ }
123
+ rmSync(target.dir, { recursive: true, force: true });
124
+ return { key: target.key, label: target.label, file: target.file, ok: true, message: "removed" };
125
+ } catch (err) {
126
+ return { key: target.key, label: target.label, file: target.file, ok: false, message: err instanceof Error ? err.message : String(err) };
127
+ }
128
+ });
129
+ }
130
+
131
+ export {
132
+ installSkills,
133
+ skillsStatus,
134
+ removeSkills
135
+ };
136
+ //# sourceMappingURL=chunk-JDJW3WST.js.map
@@ -28,7 +28,7 @@ async function startTuiWebServer() {
28
28
  const { checkWebExtras, webExtrasMessage } = await import("./extras-25AF6TAR.js");
29
29
  const extras = await checkWebExtras();
30
30
  if (!extras.ok) throw new Error(webExtrasMessage(extras.missing));
31
- const { startWebServer } = await import("./server-BNCUJ4YU.js");
31
+ const { startWebServer } = await import("./server-Y5EO5QYV.js");
32
32
  return startWebServer({ open: true });
33
33
  }
34
34
  async function closeTuiWebServer() {
@@ -48,4 +48,4 @@ export {
48
48
  startWebFromTui,
49
49
  closeTuiWebServer
50
50
  };
51
- //# sourceMappingURL=chunk-HL5MTR5M.js.map
51
+ //# sourceMappingURL=chunk-S4JLBMK4.js.map