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.
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  localeCatalog,
4
4
  translatePhrase
5
- } from "./chunk-BWJKK6LM.js";
5
+ } from "./chunk-J2DD52HJ.js";
6
6
  import {
7
7
  modelValuesForProvider
8
- } from "./chunk-LZMMFJYG.js";
8
+ } from "./chunk-WDJ6RTES.js";
9
9
  import {
10
10
  REEVESAGENTS_VERSION,
11
11
  listRunApprovals,
12
12
  resolveRunApproval
13
- } from "./chunk-6RPG22BH.js";
13
+ } from "./chunk-VYLFTVIQ.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-T7SPF4ZP.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-Y5EO5QYV.js.map
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  closeTuiWebServer,
4
4
  startWebFromTui
5
- } from "./chunk-HL5MTR5M.js";
5
+ } from "./chunk-S4JLBMK4.js";
6
6
  export {
7
7
  closeTuiWebServer,
8
8
  startWebFromTui
9
9
  };
10
- //# sourceMappingURL=tui-launch-Y5YXPUHS.js.map
10
+ //# sourceMappingURL=tui-launch-AGR3JF4I.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.0",
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.