reevesagents 1.5.0 → 1.6.1

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.
@@ -1,11 +1,19 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ installSkills,
4
+ skillsStatus
5
+ } from "./chunk-JDJW3WST.js";
6
+ import {
7
+ sweepAgents,
8
+ sweepAgentsThrottled
9
+ } from "./chunk-36AVBLVK.js";
2
10
  import {
3
11
  REEVESAGENTS_VERSION,
4
12
  createRunApproval,
5
13
  listRunApprovals,
6
14
  readRunApproval,
7
15
  resolveRunApproval
8
- } from "./chunk-6RPG22BH.js";
16
+ } from "./chunk-23XREWJP.js";
9
17
  import {
10
18
  ALLOWED_KEYS,
11
19
  BIN,
@@ -43,7 +51,7 @@ import {
43
51
  startRunFromPreset,
44
52
  startRunWithHead,
45
53
  stopRun
46
- } from "./chunk-LKJSQLX2.js";
54
+ } from "./chunk-S2NWTREO.js";
47
55
  import "./chunk-D24DQQ6V.js";
48
56
 
49
57
  // src/mcp/server.ts
@@ -311,7 +319,10 @@ var TOOLS = [
311
319
  name: "list",
312
320
  description: "List every live run and the agents in each, with their ids, status, provider, and tmux info. Start here to find a run_id or agent_id for the other tools. Ended runs are in list_history.",
313
321
  inputSchema: { type: "object", properties: {} },
314
- handler: () => ok(listRuns().map((run) => ({ ...run, agents: listAgents(run.id) })))
322
+ handler: () => {
323
+ sweepAgentsThrottled();
324
+ return ok(listRuns().map((run) => ({ ...run, agents: listAgents(run.id) })));
325
+ }
315
326
  },
316
327
  {
317
328
  name: "list_providers",
@@ -458,15 +469,21 @@ var TOOLS = [
458
469
  inputSchema: { type: "object", properties: {} },
459
470
  handler: () => ok(runDoctor().checks)
460
471
  },
472
+ {
473
+ name: "reap",
474
+ description: "Sweep for zombie agents and end them: any whose tmux window has died, plus any older than max_lifetime_ms when that is set above 0 (see get_config). Returns each reaped agent with the reason (window-gone or lifetime-exceeded) and its age. This runs on its own in the background; call it to force an immediate sweep, e.g. after a crash or before relying on list.",
475
+ inputSchema: { type: "object", properties: {} },
476
+ handler: () => ok(sweepAgents())
477
+ },
461
478
  {
462
479
  name: "get_config",
463
- description: "Read the global reevesagents settings: peek_interval_ms, peek_lines, max_depth, max_agents (the per-run agent cap), ready_delay_ms, default_permissions, and language. Check max_agents here when a spawn is rejected for hitting the cap.",
480
+ description: "Read the global reevesagents settings: peek_interval_ms, peek_lines, max_depth, max_agents (the per-run agent cap), ready_delay_ms, max_lifetime_ms (auto-reap agents older than this; 0 disables), default_permissions, and language. Check max_agents here when a spawn is rejected for hitting the cap.",
464
481
  inputSchema: { type: "object", properties: {} },
465
482
  handler: () => ok(loadConfig().global)
466
483
  },
467
484
  {
468
485
  name: "set_config",
469
- description: 'Change one or more global settings and save them. Pass only the fields to change. Counts must be positive integers (ready_delay_ms may be 0); default_permissions is ask or skip; language is a supported code such as en or tr. Example: raise the per-run agent cap with { "max_agents": 20 }. Returns the saved settings.',
486
+ description: 'Change one or more global settings and save them. Pass only the fields to change. Counts must be positive integers (ready_delay_ms and max_lifetime_ms may be 0); default_permissions is ask or skip; language is a supported code such as en or tr. Example: raise the per-run agent cap with { "max_agents": 20 }, or auto-kill agents running longer than an hour with { "max_lifetime_ms": 3600000 }. Returns the saved settings.',
470
487
  inputSchema: {
471
488
  type: "object",
472
489
  properties: {
@@ -475,6 +492,7 @@ var TOOLS = [
475
492
  max_depth: { type: "number", description: "Spawn recursion cap." },
476
493
  max_agents: { type: "number", description: "Max agents per run." },
477
494
  ready_delay_ms: { type: "number", description: "Delay before the startup prompt is injected." },
495
+ max_lifetime_ms: { type: "number", description: "Auto-reap any agent older than this many ms on the next sweep. 0 disables lifetime reaping." },
478
496
  default_permissions: { type: "string", enum: ["ask", "skip"], description: "Permission mode used when a spawn omits one." },
479
497
  language: { type: "string", description: "UI language code for the TUI and web UI, e.g. en, tr." }
480
498
  }
@@ -572,6 +590,17 @@ var TOOLS = [
572
590
  required: ["key"]
573
591
  },
574
592
  handler: (a) => ok(detach(asString(a.key)))
593
+ },
594
+ {
595
+ name: "install_skills",
596
+ description: "Install the reevesagents Agent Skill so skill-aware CLIs (Claude Code, Codex, Kimi, OpenCode) learn to drive reevesagents on their own. Writes one SKILL.md to the two shared skill directories under the home dir. Pass no arguments; call with status omitted to install, or read the returned rows to see where it landed. The user must restart their CLIs to pick it up.",
597
+ inputSchema: {
598
+ type: "object",
599
+ properties: {
600
+ status: { type: "boolean", description: "When true, only report where the skill is installed without writing anything." }
601
+ }
602
+ },
603
+ handler: (a) => ok(a.status === true ? skillsStatus() : installSkills())
575
604
  }
576
605
  ];
577
606
  var MCP_TOOLS = TOOLS.map(({ name, description, inputSchema }) => ({ name, description, inputSchema }));
@@ -586,32 +615,41 @@ function handleAgentMcpTool(name, a) {
586
615
  }
587
616
  }
588
617
  var GUIDE_URI = "reevesagents://guide";
589
- var MCP_INSTRUCTIONS = `reevesagents lets you run and steer other AI CLI agents from this session: Claude Code, Codex, Kimi, Qwen, OpenCode, Hermes, and more, each in its own tmux window. Hand slices of work to other models, then read or redirect what they do.
618
+ var MCP_INSTRUCTIONS = `reevesagents lets you, from this session, run and steer other AI coding CLIs (Claude Code, Codex, Kimi, Qwen, OpenCode, Hermes, and more), each in its own tmux window. Delegate slices of work to other models, then poll or redirect them. reevesagents never proxies model traffic; each CLI uses its own login.
590
619
 
591
620
  Drive loop:
592
- 1. list_providers - which CLIs are installed here and their models.
593
- 2. spawn { provider, task } - start an agent; returns agent_id and run_id. Omit run_id to keep adding agents to the same run.
594
- 3. read { agent_id } - an agent's recent output.
595
- 4. send_text { agent_id, text } then send_key { agent_id, key: "enter" } - type a message and submit it. send_text alone does NOT submit.
621
+ 1. list_providers - the CLIs installed here and their models. Spawn only these.
622
+ 2. spawn { provider, task } - start an agent; returns agent_id and run_id. Omit run_id to keep agents in one run (a team); pass run_id to add to an existing run. Set permissions:"skip" for an autonomous worker when no human is there to approve its prompts.
623
+ 3. read { agent_id } - the agent's recent output. spawn is fire-and-forget: it returns ids, not answers, so poll read until the agent replies or its output settles. A freshly spawned agent may sit at a login or trust prompt; read first to check.
624
+ 4. send_text { agent_id, text } then send_key { agent_id, key: "enter" } - type a message, then submit it. send_text alone does NOT submit.
596
625
  5. kill { agent_id } or stop { run_id } when done.
597
626
 
598
- Every id comes from spawn or list. Read the reevesagents://guide resource for a worked example.`;
627
+ Team in one call sequence: spawn several providers with run_id omitted and one task each, then poll read on each agent_id. Every id comes from spawn or list. Full worked example: read the reevesagents://guide resource.`;
599
628
  var GUIDE_TEXT = `# reevesagents: drive a team of AI CLIs
600
629
 
601
630
  You can spawn and steer other coding CLIs from here. Each agent is a real CLI in its own tmux window on this machine. reevesagents never proxies model traffic or stores credentials; each CLI uses its own login.
602
631
 
603
632
  ## Worked example: hand a task to Codex, then steer it
604
- 1. list_providers confirm "codex" is available
633
+ 1. list_providers confirm "codex" is installed here
605
634
  2. spawn { "provider": "codex", "task": "summarize README.md" }
606
635
  returns { "agent_id": "ab12...", "run_id": "cd34..." }
607
- 3. read { "agent_id": "ab12..." } see what it produced
636
+ 3. read { "agent_id": "ab12..." } poll until it answers (spawn is fire-and-forget)
608
637
  4. send_text { "agent_id": "ab12...", "text": "now write tests for it" }
609
- send_key { "agent_id": "ab12...", "key": "enter" }
638
+ send_key { "agent_id": "ab12...", "key": "enter" } send_text alone does NOT submit
610
639
  5. kill { "agent_id": "ab12..." } stop it when finished
611
640
 
641
+ ## Spawn a team
642
+ Spawn several agents with run_id omitted so they land in one run, then poll each:
643
+ spawn { "provider": "cc", "task": "lead: coordinate the others", "permissions": "skip" }
644
+ spawn { "provider": "codex", "task": "worker: the API slice", "permissions": "skip" }
645
+ spawn { "provider": "kimi", "task": "worker: the docs" }
646
+ Then read each agent_id, and send_text + send_key enter to redirect any of them.
647
+
612
648
  ## Notes
613
649
  - send_text types but does not submit; always follow it with send_key enter.
614
650
  - Omit run_id on spawn to add agents to the run you started; pass run_id to target a specific run.
651
+ - permissions:"skip" runs a worker autonomously (no per-action approval); use it when no human will sit and approve.
652
+ - A freshly spawned agent may sit at a login or trust screen; read its output before sending work.
615
653
  - list shows every run and agent; read shows recent output (20 lines by default).
616
654
  - Spawned agents are plain CLIs and cannot spawn others unless you attach this MCP to them too.`;
617
655
  function listMcpResources() {
@@ -639,11 +677,19 @@ function readMcpResource(uri) {
639
677
  }
640
678
  throw new Error(`Unknown resource: ${uri}`);
641
679
  }
680
+ var BACKGROUND_REAP_INTERVAL_MS = 3e4;
642
681
  async function startAgentMcpServer() {
643
682
  const server = new Server(
644
683
  { name: "reevesagents", version: REEVESAGENTS_VERSION },
645
684
  { capabilities: { tools: {}, resources: {} }, instructions: MCP_INSTRUCTIONS }
646
685
  );
686
+ const reapTimer = setInterval(() => {
687
+ try {
688
+ sweepAgents();
689
+ } catch {
690
+ }
691
+ }, BACKGROUND_REAP_INTERVAL_MS);
692
+ reapTimer.unref();
647
693
  server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: MCP_TOOLS }));
648
694
  server.setRequestHandler(CallToolRequestSchema, async (request) => {
649
695
  const { name, arguments: args = {} } = request.params;
@@ -667,4 +713,4 @@ export {
667
713
  sessionRunIsLive,
668
714
  startAgentMcpServer
669
715
  };
670
- //# sourceMappingURL=server-TUKVM6PW.js.map
716
+ //# sourceMappingURL=server-IJXZCKR2.js.map
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  localeCatalog,
4
4
  translatePhrase
5
- } from "./chunk-BWJKK6LM.js";
5
+ } from "./chunk-2JHA6YK3.js";
6
6
  import {
7
7
  modelValuesForProvider
8
- } from "./chunk-LZMMFJYG.js";
8
+ } from "./chunk-KHBI6CRH.js";
9
9
  import {
10
10
  REEVESAGENTS_VERSION,
11
11
  listRunApprovals,
12
12
  resolveRunApproval
13
- } from "./chunk-6RPG22BH.js";
13
+ } from "./chunk-23XREWJP.js";
14
14
  import {
15
15
  CONFIG_FIELDS,
16
16
  LANGUAGE_OPTIONS,
@@ -50,7 +50,7 @@ import {
50
50
  startRunFromPreset,
51
51
  stopRun,
52
52
  verifyServerLaunch
53
- } from "./chunk-LKJSQLX2.js";
53
+ } from "./chunk-S2NWTREO.js";
54
54
  import "./chunk-D24DQQ6V.js";
55
55
 
56
56
  // src/web/server.ts
@@ -586,12 +586,8 @@ function sanitizeNickname(raw) {
586
586
  function sanitizeRunName(raw) {
587
587
  return raw.trim().replace(/[^\p{L}\p{N} _.-]/gu, " ").replace(/\s+/g, " ").trim().slice(0, 80).trim();
588
588
  }
589
- function normalizeModel(provider, raw) {
590
- const model = typeof raw === "string" ? raw.trim() : "";
591
- if (!modelValuesForProvider(provider).includes(model)) {
592
- throw new Error("unknown model for provider");
593
- }
594
- return model;
589
+ function normalizeModel(raw) {
590
+ return typeof raw === "string" ? raw.trim() : "";
595
591
  }
596
592
  function normalizePermissionsInput(raw) {
597
593
  if (raw === void 0 || raw === null || raw === "") return void 0;
@@ -612,7 +608,7 @@ async function createTerminal(body) {
612
608
  const provider = body.provider;
613
609
  const normalizedProvider = normalizeProvider(provider);
614
610
  if (!normalizedProvider) throw new Error("unknown provider");
615
- const model = normalizeModel(normalizedProvider, body.model);
611
+ const model = normalizeModel(body.model);
616
612
  const permissions = normalizePermissionsInput(body.permissions);
617
613
  const auth_mode = parseAuthModeInput(body.auth_mode);
618
614
  const effort = parseEffortInput(body.effort);
@@ -1020,4 +1016,4 @@ async function startWebServer(options = {}) {
1020
1016
  export {
1021
1017
  startWebServer
1022
1018
  };
1023
- //# sourceMappingURL=server-BNCUJ4YU.js.map
1019
+ //# sourceMappingURL=server-RXQBOR5F.js.map
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  closeTuiWebServer,
4
4
  startWebFromTui
5
- } from "./chunk-HL5MTR5M.js";
5
+ } from "./chunk-S5J4E3QZ.js";
6
6
  export {
7
7
  closeTuiWebServer,
8
8
  startWebFromTui
9
9
  };
10
- //# sourceMappingURL=tui-launch-Y5YXPUHS.js.map
10
+ //# sourceMappingURL=tui-launch-Z6RYMGNH.js.map
package/dist/web/app.css CHANGED
@@ -1722,6 +1722,16 @@ button { letter-spacing: 0; }
1722
1722
  line-height: 1.4;
1723
1723
  }
1724
1724
 
1725
+ .dialog-notice {
1726
+ border: 1px solid color-mix(in srgb, var(--ok) 42%, var(--border));
1727
+ border-radius: var(--r-2);
1728
+ padding: var(--s-2) var(--s-3);
1729
+ color: var(--ok);
1730
+ background: color-mix(in srgb, var(--ok) 11%, var(--panel));
1731
+ font-size: var(--fs-sm);
1732
+ line-height: 1.4;
1733
+ }
1734
+
1725
1735
  .dialog-actions {
1726
1736
  display: flex;
1727
1737
  justify-content: flex-end;
package/dist/web/app.js CHANGED
@@ -245,6 +245,7 @@
245
245
  mcpHostList: document.getElementById('mcp-host-list'),
246
246
  mcpEmpty: document.getElementById('mcp-empty'),
247
247
  mcpError: document.getElementById('mcp-error'),
248
+ mcpNotice: document.getElementById('mcp-notice'),
248
249
  mcpAttachAll: document.getElementById('mcp-attach-all'),
249
250
  mcpClose: document.getElementById('mcp-close'),
250
251
  doctorBtn: document.getElementById('doctor-btn'),
@@ -1690,6 +1691,7 @@
1690
1691
 
1691
1692
  function openMcpDialog() {
1692
1693
  setMcpError(null)
1694
+ setMcpNotice(null)
1693
1695
  mcpHosts = []
1694
1696
  mcpLoading = true
1695
1697
  mcpLoadFailed = false
@@ -1805,6 +1807,12 @@
1805
1807
  el.mcpError.hidden = false
1806
1808
  }
1807
1809
 
1810
+ function setMcpNotice(message) {
1811
+ if (!message) { el.mcpNotice.hidden = true; el.mcpNotice.textContent = ''; return }
1812
+ el.mcpNotice.textContent = message
1813
+ el.mcpNotice.hidden = false
1814
+ }
1815
+
1808
1816
  function applyMcpResult(data) {
1809
1817
  if (data && Array.isArray(data.hosts)) {
1810
1818
  mcpLoadFailed = false
@@ -1817,12 +1825,15 @@
1817
1825
  if (mcpBusy || mcpLoading) return
1818
1826
  mcpBusy = true
1819
1827
  setMcpError(null)
1828
+ setMcpNotice(null)
1820
1829
  renderMcpHosts()
1821
1830
  try {
1822
1831
  const data = await api('POST', '/api/mcp-hosts/attach', { key: host.key })
1823
1832
  applyMcpResult(data)
1824
1833
  if (data && data.result && data.result.ok === false) {
1825
1834
  setMcpError(t('web.mcpAttachError', { name: host.label, message: data.result.message }))
1835
+ } else {
1836
+ setMcpNotice(t('web.mcpRestartHint', { names: host.label }))
1826
1837
  }
1827
1838
  } catch (err) {
1828
1839
  setMcpError(t('web.mcpAttachError', { name: host.label, message: err.message }))
@@ -1855,12 +1866,21 @@
1855
1866
  if (mcpBusy || mcpLoading || mcpLoadFailed) return
1856
1867
  mcpBusy = true
1857
1868
  setMcpError(null)
1869
+ setMcpNotice(null)
1858
1870
  renderMcpHosts()
1859
1871
  try {
1860
1872
  const data = await api('POST', '/api/mcp-hosts/attach-all', {})
1861
1873
  applyMcpResult(data)
1862
- const failed = ((data && data.results) || []).filter(r => !r.ok)
1863
- if (failed.length > 0) setMcpError(t('web.mcpAttachAllError', { message: failed.map(r => r.message).join('; ') }))
1874
+ const results = (data && data.results) || []
1875
+ const failed = results.filter(r => !r.ok)
1876
+ const okNames = results.filter(r => r.ok).map(r => r.label || r.key)
1877
+ if (data && data.verify && data.verify.ok === false) {
1878
+ setMcpError(t('web.mcpVerifyFailed', { detail: data.verify.detail }))
1879
+ } else if (failed.length > 0) {
1880
+ setMcpError(t('web.mcpAttachAllError', { message: failed.map(r => r.message).join('; ') }))
1881
+ } else if (okNames.length > 0) {
1882
+ setMcpNotice(t('web.mcpRestartHint', { names: okNames.join(', ') }))
1883
+ }
1864
1884
  } catch (err) {
1865
1885
  setMcpError(t('web.mcpAttachAllError', { message: err.message }))
1866
1886
  } finally {
@@ -204,6 +204,7 @@
204
204
  <div id="mcp-host-list" class="mcp-host-list" aria-label="MCP host CLIs"></div>
205
205
  <div id="mcp-empty" class="mcp-empty" hidden>No MCP-capable CLI was found on this machine.</div>
206
206
  <div id="mcp-error" class="dialog-error" hidden></div>
207
+ <div id="mcp-notice" class="dialog-notice" hidden></div>
207
208
 
208
209
  <div class="dialog-actions">
209
210
  <button type="button" id="mcp-attach-all" class="btn btn-agent">Attach all</button>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reevesagents",
3
- "version": "1.5.0",
3
+ "version": "1.6.1",
4
4
  "description": "Local tmux-first workspace manager for AI CLI agents",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.34.1",
@@ -14,6 +14,7 @@
14
14
  "files": [
15
15
  "dist",
16
16
  "!dist/**/*.map",
17
+ "skills",
17
18
  "AGENTS.md",
18
19
  "CHANGELOG.md",
19
20
  "LICENSE"
@@ -31,7 +32,8 @@
31
32
  "render-mascot": "node scripts/render-mascot.mjs",
32
33
  "verify": "pnpm typecheck && pnpm lint && pnpm test && pnpm build && pnpm smoke:cli && pnpm check:package",
33
34
  "verify:release": "pnpm verify && pnpm check:install-matrix",
34
- "release": "release-it"
35
+ "release": "release-it",
36
+ "postinstall": "node -e \"try{process.env.npm_config_global==='true'&&process.stdout.isTTY&&!process.env.CI&&process.stdout.write('\\nReevesAgents installed. Run: reevesagents attach to connect your AI CLIs, then restart them.\\n\\n')}catch(e){}\""
35
37
  },
36
38
  "dependencies": {
37
39
  "@modelcontextprotocol/sdk": "^1.29.0",
@@ -0,0 +1,64 @@
1
+ ---
2
+ name: reevesagents
3
+ 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).
4
+ ---
5
+
6
+ # reevesagents: drive a team of AI CLIs
7
+
8
+ reevesagents lets you, from this session, run and steer other AI coding CLIs. Each
9
+ agent is a real CLI in its own tmux window on this machine. reevesagents never
10
+ proxies model traffic; every CLI uses its own login.
11
+
12
+ The tools below come from the reevesagents MCP server. Depending on this host they
13
+ may appear as bare names (`spawn`), as `mcp__reevesagents__spawn` (Claude Code,
14
+ Kimi), or as `reevesagents_spawn` (OpenCode). Use whichever form your tool list
15
+ shows; the bare names are used here.
16
+
17
+ ## When to use
18
+ - The user wants to hand a slice of work to another model and keep working.
19
+ - Several independent tasks can run in parallel across different CLIs.
20
+ - The user asks for a team (a lead plus workers) or to orchestrate multiple agents.
21
+
22
+ ## Drive loop
23
+ 1. list_providers - the CLIs installed here and their models. Spawn only these.
24
+ 2. spawn { provider, task } - start an agent; returns agent_id and run_id. Omit
25
+ run_id to keep agents in one run (a team); pass run_id to add to an existing run.
26
+ Set permissions:"skip" for an autonomous worker when no human will approve prompts.
27
+ 3. read { agent_id } - the agent's recent output. spawn is fire-and-forget: it
28
+ returns ids, not answers, so poll read until the agent replies or its output
29
+ settles. A fresh agent may sit at a login or trust prompt; read first.
30
+ 4. send_text { agent_id, text } then send_key { agent_id, key: "enter" } - type a
31
+ message, then submit it. send_text alone does NOT submit.
32
+ 5. kill { agent_id } or stop { run_id } when done.
33
+
34
+ ## Worked example: hand a task to Codex, then steer it
35
+ 1. list_providers confirm "codex" is installed
36
+ 2. spawn { "provider": "codex", "task": "summarize README.md" } -> { agent_id, run_id }
37
+ 3. read { "agent_id": "..." } poll until it answers
38
+ 4. send_text { "agent_id": "...", "text": "now write tests for it" }
39
+ send_key { "agent_id": "...", "key": "enter" }
40
+ 5. kill { "agent_id": "..." } stop it when finished
41
+
42
+ ## Spawn a team
43
+ Spawn several agents with run_id omitted so they land in one run, then poll each:
44
+ spawn { "provider": "cc", "task": "lead: coordinate the others", "permissions": "skip" }
45
+ spawn { "provider": "codex", "task": "worker: the API slice", "permissions": "skip" }
46
+ spawn { "provider": "kimi", "task": "worker: the docs" }
47
+
48
+ ## Housekeeping
49
+ - list shows every live run and agent; list_history shows ended ones.
50
+ - reap ends zombie agents: any whose tmux window died, plus any older than
51
+ max_lifetime_ms. reevesagents also reaps in the background, but call reap to force
52
+ an immediate sweep.
53
+ - get_config / set_config read and change global settings, including the per-run
54
+ agent cap (max_agents) and the auto-reap age (max_lifetime_ms; 0 disables it).
55
+ - request_approval / resolve_approval gate a risky action behind a human or another
56
+ agent before it runs.
57
+
58
+ ## Notes
59
+ - send_text types but does not submit; always follow it with send_key enter.
60
+ - permissions:"skip" runs a worker autonomously; use it when no human will approve.
61
+ - Spawned agents are plain CLIs and cannot spawn others unless reevesagents is also
62
+ attached to them.
63
+ - If a spawn is rejected because a run is at the agent cap, raise max_agents with
64
+ set_config.