reevesagents 1.3.1 → 1.4.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/AGENTS.md CHANGED
@@ -63,8 +63,14 @@ half-starting a run. On success it prints the run id, each agent's id, and the e
63
63
  Useful `spawn` flags: `--name <run>`, `--cwd <dir>` (defaults to the current dir),
64
64
  `--prompt <text>` (pasted into every agent on startup), `--skip` (launch agents without
65
65
  their own permission prompts; use it when no human is there to approve), `--run <run-id>`
66
- (add agents to an existing run instead of starting a new one), `--json` (print the run
67
- and agent ids as JSON instead of text).
66
+ (add agents to an existing run instead of starting a new one), `--extra-args <args>`
67
+ (flags appended to every agent launch, for provider options ReevesAgents does not model,
68
+ e.g. `--remote-control`), `--json` (print the run and agent ids as JSON instead of text).
69
+
70
+ To grow a workspace one agent at a time, `reevesagents add <spec...>` adds to the most
71
+ recent active run without a run id (pass `--run <run-id>` to target another). It takes
72
+ the same per-agent flags as `spawn`. Agents added this way run side by side and do not
73
+ control each other; that only happens when the Agent control MCP is attached.
68
74
 
69
75
  ## Provider ids and aliases
70
76
 
@@ -93,6 +99,8 @@ reevesagents send <agent-id> "do X" # paste text at the agent's prompt
93
99
  reevesagents key <agent-id> enter # submit it (send does not submit on its own)
94
100
  reevesagents interrupt <agent-id> # ctrl-c the agent
95
101
  reevesagents open <run-id|agent-id> # jump to its tmux window
102
+ reevesagents approvals # pending approval requests (add --json)
103
+ reevesagents approve <approval-id> # resolve one; deny <approval-id> refuses it
96
104
  ```
97
105
 
98
106
  `send` only pastes; follow it with `key <agent-id> enter` to submit. Keys accepted by
@@ -106,8 +114,9 @@ reevesagents stop <run-id> --yes # end a whole run and tear down its tmux
106
114
  reevesagents kill <agent-id> --yes # end one agent
107
115
  ```
108
116
 
109
- `stop` and `kill` are the only destructive commands, so they refuse to run without
110
- `--yes`.
117
+ `stop` and `kill` refuse to run without `--yes`. The same gate covers cleanup:
118
+ `delete <agent-id>` and `delete-run <run-id>` remove ended records, and
119
+ `delete-history <id>` removes an archived one.
111
120
 
112
121
  ## A worked example: five agents, then drive them
113
122
 
@@ -164,7 +173,7 @@ Don't:
164
173
  - Don't `send` and assume it ran; nothing submits until you `key <agent-id> enter`.
165
174
  - Don't spawn a provider that is missing or signed out; spawn refuses the first, and the
166
175
  second leaves a window parked at a login prompt that never does the work.
167
- - Don't run `stop` or `kill` without `--yes`; they are the only destructive commands.
176
+ - Don't run `stop`, `kill`, or the `delete` commands without `--yes`; those are the destructive ones.
168
177
  - Don't target native Windows; run inside WSL with tmux and the CLIs installed there.
169
178
  - Don't paste secrets into a `--prompt` or `send`; output is captured and shown through `peek` and the web UI.
170
179
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ # [1.4.0](https://github.com/mertkayacs/reevesagents/compare/v1.3.2...v1.4.0) (2026-07-05)
4
+
5
+
6
+ ### Features
7
+
8
+ * **cli:** add an `add` command to grow a workspace one agent at a time ([07f9cde](https://github.com/mertkayacs/reevesagents/commit/07f9cdedb3b33f742f209a2f1453f5af5a5d69e4))
9
+ * **spawn:** pass extra launch flags through to the provider CLI ([011f923](https://github.com/mertkayacs/reevesagents/commit/011f9233578158d1399e2580154de56f5d17bc8c))
10
+
11
+ ## [1.3.2](https://github.com/mertkayacs/reevesagents/compare/v1.3.1...v1.3.2) (2026-07-02)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **providers:** show auth-mode and effort pickers only where they apply ([43fc16d](https://github.com/mertkayacs/reevesagents/commit/43fc16dae8e4544c6a40218956e3bee7cfafeb96))
17
+
3
18
  ## [1.3.1](https://github.com/mertkayacs/reevesagents/compare/v1.3.0...v1.3.1) (2026-06-26)
4
19
 
5
20
 
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  <p align="center">
2
- <img src="https://raw.githubusercontent.com/mertkayacs/reevesagents/master/docs/assets/reevesagents-header.gif" alt="ReevesAgents" width="800" />
2
+ <a href="https://reevesagents.mertkayacs.com">
3
+ <img src="https://raw.githubusercontent.com/mertkayacs/reevesagents/master/docs/assets/reevesagents-header.gif" alt="ReevesAgents" width="800" />
4
+ </a>
3
5
  </p>
4
6
 
5
7
  [![npm version](https://img.shields.io/npm/v/reevesagents.svg)](https://www.npmjs.com/package/reevesagents)
@@ -8,13 +10,19 @@
8
10
  [![license](https://img.shields.io/npm/l/reevesagents.svg)](LICENSE)
9
11
  [![CI](https://img.shields.io/github/actions/workflow/status/mertkayacs/reevesagents/test.yml?branch=master&label=CI)](https://github.com/mertkayacs/reevesagents/actions/workflows/test.yml)
10
12
 
13
+ <h3 align="center"><a href="https://reevesagents.mertkayacs.com">reevesagents.mertkayacs.com</a></h3>
14
+ <p align="center">
15
+ <a href="https://reevesagents.mertkayacs.com/demo"><b>Demo</b></a> ·
16
+ <a href="https://reevesagents.mertkayacs.com/docs"><b>Docs</b></a> ·
17
+ <a href="https://reevesagents.mertkayacs.com/faq"><b>FAQ</b></a> ·
18
+ <a href="https://github.com/mertkayacs/reevesagents/issues"><b>Issues</b></a>
19
+ </p>
20
+
11
21
  **English** · [Deutsch](docs/i18n/README.de.md) · [Français](docs/i18n/README.fr.md) · [Español](docs/i18n/README.es.md) · [Português](docs/i18n/README.pt.md) · [Italiano](docs/i18n/README.it.md) · [Türkçe](docs/i18n/README.tr.md) · [Русский](docs/i18n/README.ru.md) · [简体中文](docs/i18n/README.zh-Hans.md) · [العربية](docs/i18n/README.ar.md)
12
22
 
13
23
  *Create and drive AI agents from other agents. ReevesAgents is a free, local workspace where coding agents (such as Claude Code, Codex, Hermes, DeepSeek, and Kimi) run side by side, and one agent can spawn, steer, and supervise the rest. No API keys, and no changes to your existing Agent.md or Claude.md.*
14
24
 
15
- **In more than 10 languages!**
16
-
17
- GitHub: https://github.com/mertkayacs/reevesagents
25
+ **In 10 languages!**
18
26
 
19
27
  ## Let one agent install and run the rest
20
28
 
@@ -35,7 +43,7 @@ Prefer to set it up by hand? Turn it on from the **Agent control** screen in the
35
43
 
36
44
  The TUI and the local Web UI driving the same run:
37
45
 
38
- ![ReevesAgents TUI: language picker, welcome screen, and runs](https://raw.githubusercontent.com/mertkayacs/reevesagents/master/docs/assets/reevesagents-tui.gif)
46
+ ![ReevesAgents TUI: language picker, welcome menu, and doctor](https://raw.githubusercontent.com/mertkayacs/reevesagents/master/docs/assets/reevesagents-tui.gif)
39
47
 
40
48
  ![ReevesAgents Web UI: runs and live agent panes](https://raw.githubusercontent.com/mertkayacs/reevesagents/master/docs/assets/reevesagents-web-en.png)
41
49
 
@@ -54,6 +62,19 @@ Portuguese, Italian, Turkish, Russian, Simplified Chinese, and Arabic.
54
62
  New to ReevesAgents? The [User Guide](docs/GUIDE.md) walks you through install,
55
63
  your first run, and letting one agent drive the rest.
56
64
 
65
+ ## Two ways to use it
66
+
67
+ - **As a workspace.** Spawn the agents you want and keep adding more with
68
+ `reevesagents add`, one at a time. They run side by side, each in its own tmux
69
+ window, and none of them controls another. This is the simplest way in: your
70
+ different CLIs together in one local place.
71
+ - **As an orchestrator.** Attach the opt-in Agent control MCP to one CLI, and
72
+ that agent gains the tools to spawn and drive the rest. This is the headline
73
+ feature, and it stays off until you turn it on.
74
+
75
+ Both use the same runs and the same surfaces, so you can start as a plain
76
+ workspace and reach for orchestration later, or never.
77
+
57
78
  ## Surfaces
58
79
 
59
80
  | Surface | What it is good for |
@@ -77,17 +98,24 @@ This is not a cloud agent platform. It is a small local layer around real CLIs:
77
98
 
78
99
  ## Install
79
100
 
80
- ReevesAgents is published on npm as `reevesagents`. Install it globally with the
81
- package manager you already use, then verify the machine with `doctor`.
101
+ Install ReevesAgents with Homebrew, or globally with any Node package manager
102
+ (pnpm, npm, Yarn, or Bun), then verify the machine with `doctor`.
103
+
104
+ ```sh
105
+ # Homebrew
106
+ brew install mertkayacs/reevesagents/reevesagents
107
+
108
+ # or a Node package manager, pnpm shown here
109
+ pnpm add -g reevesagents
110
+ ```
82
111
 
83
112
  ```sh
84
- npm install -g reevesagents
85
113
  reevesagents doctor
86
114
  reevesagents
87
115
  ```
88
116
 
89
117
  To pin a version, append `@<version>` to the package name, for example
90
- `npm install -g reevesagents@1.2.0`.
118
+ `pnpm add -g reevesagents@1.4.0`.
91
119
 
92
120
  <details>
93
121
  <summary><b>pnpm</b></summary>
@@ -106,6 +134,23 @@ pnpm dlx reevesagents doctor
106
134
 
107
135
  </details>
108
136
 
137
+ <details>
138
+ <summary><b>npm</b></summary>
139
+
140
+ ```sh
141
+ npm install -g reevesagents
142
+ reevesagents doctor
143
+ reevesagents
144
+ ```
145
+
146
+ One-shot, no global install:
147
+
148
+ ```sh
149
+ npx reevesagents doctor
150
+ ```
151
+
152
+ </details>
153
+
109
154
  <details>
110
155
  <summary><b>Yarn</b></summary>
111
156
 
@@ -142,15 +187,6 @@ bunx reevesagents doctor
142
187
 
143
188
  </details>
144
189
 
145
- <details>
146
- <summary><b>npx (no install)</b></summary>
147
-
148
- ```sh
149
- npx reevesagents doctor
150
- ```
151
-
152
- </details>
153
-
154
190
  <details>
155
191
  <summary><b>Homebrew</b></summary>
156
192
 
@@ -194,9 +230,9 @@ at least one provider CLI already installed.
194
230
 
195
231
  ReevesAgents can launch these provider CLIs when they are installed and
196
232
  authenticated on your machine: Claude Code, Codex CLI, OpenCode, Hermes, Kimi,
197
- DeepSeek, Pi, Qwen, and Aider. Provider login, models, tools, quotas, and
198
- permission prompts stay with each provider. ReevesAgents does not store provider
199
- API keys and does not proxy model traffic.
233
+ DeepSeek, Pi, Qwen, and Aider. Each CLI keeps its own login, models, quotas,
234
+ and permission prompts, exactly as if you had started it yourself, which is
235
+ why ReevesAgents never needs to hold an API key or sit in the traffic path.
200
236
 
201
237
  ## Quick Start
202
238
 
@@ -215,6 +251,15 @@ reevesagents spawn deepseek:backend claude-code:product codex:system hermes:rese
215
251
  --prompt "Plan the backend, product surface, design system, and research notes."
216
252
  ```
217
253
 
254
+ Or start small and grow the workspace one agent at a time. `add` joins the most
255
+ recent run, so you never have to copy a run id around:
256
+
257
+ ```sh
258
+ reevesagents spawn claude-code:product # start a workspace
259
+ reevesagents add codex:system # add to it later
260
+ reevesagents add hermes:research
261
+ ```
262
+
218
263
  For a full walkthrough, see the [User Guide](docs/GUIDE.md).
219
264
 
220
265
  ## Commands
@@ -222,24 +267,45 @@ For a full walkthrough, see the [User Guide](docs/GUIDE.md).
222
267
  No arguments launches the TUI. The subcommands are the operator surface for
223
268
  humans and scripts.
224
269
 
225
- | Command | Purpose | Key flags |
226
- | --- | --- | --- |
227
- | `reevesagents` | Launch the TUI (no subcommand). | none |
228
- | `spawn [spec...]` | Start a run with one or more provider agents. Each `spec` is `provider[:nickname[:model]]`. The first spec is the lead, the rest are workers. No spec defaults to `codex`. | `--name <name>` (default `run`), `--cwd <dir>` (default current dir), `--prompt <text>` (pasted into each agent) |
229
- | `runs` | List active runs, one per line. | `--json` (full run records as a JSON array) |
230
- | `open <id>` | Switch tmux to a run's Reeves window or an agent window. Inside tmux it switches; outside tmux on a TTY it attaches; otherwise it prints a pasteable tmux command. Accepts a run id/name or an agent id/nickname (prefix match allowed). | none |
231
- | `peek <agent-id>` | Print recent output from one agent. | `-n, --lines <n>` (default `20`), `--json` (lines as an array) |
232
- | `stop <run-id>` | Stop one run. | `-y, --yes` (or `ALLOW_DESTRUCTIVE=1`) |
233
- | `kill <agent-id>` | Stop one agent. | `-y, --yes` (or `ALLOW_DESTRUCTIVE=1`) |
234
- | `doctor` | Run environment health checks (Node, tmux, state path, provider CLIs). Exits non-zero on any failed check. | `--json` |
235
- | `web` | Start the on-demand, loopback-only Web UI. Runs in the foreground; agents keep running after you stop it. | `--port <n>` (preferred port, falls back to the next free port), `--no-open` (do not open the browser) |
236
- | `hosts` | List the agent CLIs on this machine and show which ones ReevesAgents is connected to. | none |
237
- | `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`. | none |
238
- | `detach <cli>` | Disconnect ReevesAgents from one agent CLI. Runs that CLI's own `mcp remove`. | none |
239
- | `mcp` | Start the Agent control MCP server over stdio. Not run by hand; the CLI you connect it to runs it. | none |
240
-
241
- `stop` and `kill` are the only destructive commands. They refuse to run without
242
- `--yes` or `ALLOW_DESTRUCTIVE=1`.
270
+ The everyday surface:
271
+
272
+ - `reevesagents`: Launch the TUI (no subcommand).
273
+ - `spawn [spec...]`: Start a run with one or more provider agents. Each `spec` is `provider[:nickname[:model]]`. The first spec is the lead, the rest are workers. No spec defaults to `codex`. Key flags: `--name <name>` (default `run`), `--cwd <dir>` (default current dir), `--prompt <text>` (pasted into each agent), `--skip` (skip permission prompts), `--run <run-id>` (add agents to an existing run), `--auth-mode <mode>`, `--effort <level>`, `--extra-args <args>` (flags appended to every agent launch, e.g. `"--remote-control"`), `--json`.
274
+ - `add [spec...]`: Add one or more agents to the current workspace, the most recent active run, without passing a run id. Use it to grow a workspace one agent at a time. Same per-agent flags as `spawn`, plus `--run <run-id>` to target a specific run instead of the latest.
275
+ - `runs`: List active runs, one per line. Key flags: `--json` (full run records as a JSON array).
276
+ - `agents [run-id]`: List agents across all runs, or the agents in one run. Key flags: `--json`.
277
+ - `open <id>`: Switch tmux to a run's Reeves window or an agent window. Inside tmux it switches; outside tmux on a TTY it attaches; otherwise it prints a pasteable tmux command. Accepts a run id/name or an agent id/nickname (prefix match allowed).
278
+ - `peek <agent-id>`: Print recent output from one agent. Key flags: `-n, --lines <n>` (default `20`), `--json` (lines as an array).
279
+ - `send <agent-id> <text...>`: Paste text at an agent's prompt. It does not submit; follow with `key <agent-id> enter`.
280
+ - `key <agent-id> <key>`: Send one key: `enter`, `escape`, `backspace`, `tab`, `space`, `up`, `down`, `left`, `right`, or `ctrl-c`.
281
+ - `interrupt <agent-id>`: Send ctrl-c to one agent.
282
+ - `stop <run-id>`: Stop one run. Key flags: `-y, --yes` (or `ALLOW_DESTRUCTIVE=1`).
283
+ - `kill <agent-id>`: Stop one agent. Key flags: `-y, --yes` (or `ALLOW_DESTRUCTIVE=1`).
284
+ - `doctor`: Run environment health checks (Node, tmux, state path, provider CLIs). Exits non-zero on any failed check. Key flags: `--json`.
285
+ - `web`: Start the on-demand, loopback-only Web UI. Runs in the foreground; agents keep running after you stop it. Key flags: `--port <n>` (preferred port, falls back to the next free port), `--no-open` (do not open the browser).
286
+
287
+ Discovery, approvals, agent control, config, and cleanup:
288
+
289
+ - `providers`: List every provider with availability, aliases, and known models. Key flags: `--models`, `--json`.
290
+ - `approvals`: List pending approval requests from agents. Key flags: `--json`.
291
+ - `approve <approval-id> [note]`: Resolve an approval request as approved.
292
+ - `deny <approval-id> [note]`: Resolve an approval request as denied.
293
+ - `hosts`: List the agent CLIs on this machine and show which ones ReevesAgents is connected to.
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
+ - `detach <cli>`: Disconnect ReevesAgents from one agent CLI. Runs that CLI's own `mcp remove`.
296
+ - `mcp`: Start the Agent control MCP server over stdio. Not run by hand; the CLI you connect it to runs it.
297
+ - `config [key] [value]`: Show all editable settings, read one, or set one. Key flags: `--json`.
298
+ - `presets`: List saved run presets. Key flags: `--json`.
299
+ - `save-preset <run-id> <name> [description...]`: Capture a live run as a reusable preset.
300
+ - `start-preset <name>`: Start a new run from a preset. Key flags: `--name <run>`, `--cwd <dir>`.
301
+ - `delete-preset <name>`: Delete a preset. Key flags: `-y, --yes`.
302
+ - `delete <agent-id>`: Delete one ended agent's record. Key flags: `-y, --yes`.
303
+ - `delete-run <run-id>`: Delete one ended run and archive it to history. Key flags: `-y, --yes`.
304
+ - `history`: List archived ended and stale runs. Key flags: `--json`.
305
+ - `delete-history <id>`: Delete one archived history record. Key flags: `-y, --yes`.
306
+
307
+ `stop`, `kill`, and the `delete` commands are destructive. They refuse to run
308
+ without `--yes` or `ALLOW_DESTRUCTIVE=1`.
243
309
 
244
310
  ## Agent control
245
311
 
@@ -279,7 +345,8 @@ See [docs/mcp.md](docs/mcp.md) for the full design and tool list.
279
345
 
280
346
  ## Configuration
281
347
 
282
- State and config are local JSON. No database, no daemon.
348
+ All state and config are plain JSON files on your disk, so there is nothing to
349
+ administer and nothing running when you are not using it.
283
350
 
284
351
  State lives under `~/.reeves`:
285
352
 
@@ -298,7 +365,7 @@ multi-profile use:
298
365
  for `runs/`, `history/`, and `presets/`.
299
366
  - `REEVES_CONFIG`: config file path override. Replaces `~/.reeves/config.json`.
300
367
 
301
- Text fields that can hold secrets are redacted before they are written to state.
368
+ Anything that might contain a secret is scrubbed before it reaches a file.
302
369
 
303
370
  ## Examples
304
371
 
@@ -338,10 +405,11 @@ The Web UI is local and loopback-only.
338
405
  reevesagents web
339
406
  ```
340
407
 
341
- It binds to `127.0.0.1`, runs in the foreground, and exits when you stop it.
342
- Agents keep running in tmux afterward. From the browser you can create runs, add
343
- agents, choose provider models and permission modes, stop agents, delete ended
344
- work, and inspect history while the real CLIs keep running.
408
+ It answers on `127.0.0.1` only and stays in the foreground until you stop it,
409
+ which changes nothing for the agents, because they live in tmux rather than in
410
+ the page. From the browser you can create runs, add agents with a chosen model
411
+ and permission mode, stop what needs stopping, and dig through history while
412
+ the real CLIs keep working underneath.
345
413
 
346
414
  The Web UI uses two optional runtime modules, `ws` and `@lydell/node-pty`. npm
347
415
  installs them by default. The CLI and TUI keep working without them, and the
@@ -397,6 +465,7 @@ TypeScript, tsup, Vitest, and ESLint from the repository.
397
465
 
398
466
  ## Links
399
467
 
468
+ - Website: https://reevesagents.mertkayacs.com
400
469
  - npm: https://www.npmjs.com/package/reevesagents
401
470
  - GitHub: https://github.com/mertkayacs/reevesagents
402
471
  - Releases: https://github.com/mertkayacs/reevesagents/releases
@@ -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-GYB53IBP.js");
31
+ const { startWebServer } = await import("./server-L5DTU6U2.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-2LC6V55H.js.map
51
+ //# sourceMappingURL=chunk-33EB4RUP.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  DEFAULT_LANGUAGE
4
- } from "./chunk-65LHCGPC.js";
4
+ } from "./chunk-KL5YFLQF.js";
5
5
 
6
6
  // src/i18n/locales/en.ts
7
7
  var en = {
@@ -234,6 +234,8 @@ var en = {
234
234
  "web.presets": "Presets",
235
235
  "web.presetsNoRun": "Open a run first, then save it as a preset.",
236
236
  "web.presetsSubtitle": "Saved agent-team templates.",
237
+ "web.extraArgs": "Extra flags",
238
+ "web.extraArgsHelp": "Passed to the CLI on launch, after the flags ReevesAgents sets.",
237
239
  "web.promptHelp": "Sent to the agent after its window opens.",
238
240
  "web.promptPlaceholder": "What should this agent start working on?",
239
241
  "web.provider": "Provider",
@@ -527,6 +529,8 @@ var de = {
527
529
  "web.presets": "Vorlagen",
528
530
  "web.presetsNoRun": "\xD6ffne zuerst einen Run, dann speichere ihn als Vorlage.",
529
531
  "web.presetsSubtitle": "Gespeicherte Agententeam-Vorlagen.",
532
+ "web.extraArgs": "Zus\xE4tzliche Flags",
533
+ "web.extraArgsHelp": "Wird der CLI beim Start \xFCbergeben, nach den Flags, die ReevesAgents setzt.",
530
534
  "web.promptHelp": "Wird an den Agenten gesendet, nachdem sein Fenster ge\xF6ffnet ist.",
531
535
  "web.promptPlaceholder": "Woran soll dieser Agent zuerst arbeiten?",
532
536
  "web.providerDefault": "Provider-Standard",
@@ -1029,6 +1033,8 @@ var fr = {
1029
1033
  "web.effortXhigh": "Tr\xE8s \xE9lev\xE9",
1030
1034
  "web.error": "erreur",
1031
1035
  "web.exited": "termin\xE9",
1036
+ "web.extraArgs": "Flags suppl\xE9mentaires",
1037
+ "web.extraArgsHelp": "Pass\xE9s \xE0 la CLI au lancement, apr\xE8s les flags que ReevesAgents d\xE9finit.",
1032
1038
  "web.history": "Historique",
1033
1039
  "web.initialPrompt": "Prompt initial",
1034
1040
  "web.initialPromptOpt": "optionnel, saisi au d\xE9marrage",
@@ -1638,6 +1644,8 @@ var es = {
1638
1644
  "web.presets": "Preajustes",
1639
1645
  "web.presetsNoRun": "Abre primero un run, luego gu\xE1rdalo como preajuste.",
1640
1646
  "web.presetsSubtitle": "Plantillas de equipos de agentes guardadas.",
1647
+ "web.extraArgs": "Flags extra",
1648
+ "web.extraArgsHelp": "Se pasan a la CLI al arrancar, despu\xE9s de los flags que establece ReevesAgents.",
1641
1649
  "web.promptHelp": "Se env\xEDa al agente despu\xE9s de abrir su ventana.",
1642
1650
  "web.promptPlaceholder": "\xBFEn qu\xE9 debe empezar este agente?",
1643
1651
  "web.provider": "Proveedor",
@@ -2204,6 +2212,8 @@ var pt = {
2204
2212
  "web.presets": "Predefini\xE7\xF5es",
2205
2213
  "web.presetsNoRun": "Abra uma execu\xE7\xE3o primeiro, depois guarde-a como predefini\xE7\xE3o.",
2206
2214
  "web.presetsSubtitle": "Modelos de equipas de agentes guardados.",
2215
+ "web.extraArgs": "Flags extra",
2216
+ "web.extraArgsHelp": "Passado \xE0 CLI no arranque, depois das flags que o ReevesAgents define.",
2207
2217
  "web.promptHelp": "Enviado ao agente depois de a janela abrir.",
2208
2218
  "web.promptPlaceholder": "No que este agente deve come\xE7ar?",
2209
2219
  "web.provider": "Fornecedor",
@@ -2772,6 +2782,8 @@ var it = {
2772
2782
  "web.presets": "Preset",
2773
2783
  "web.presetsNoRun": "Apri prima un run, poi salvalo come preset.",
2774
2784
  "web.presetsSubtitle": "Modelli di team di agenti salvati.",
2785
+ "web.extraArgs": "Flag extra",
2786
+ "web.extraArgsHelp": "Passati alla CLI al lancio, dopo i flag impostati da ReevesAgents.",
2775
2787
  "web.promptHelp": "Inviato all\u2019agente dopo l\u2019apertura della finestra.",
2776
2788
  "web.promptPlaceholder": "Da cosa deve iniziare questo agente?",
2777
2789
  "web.providerDefault": "Predefinito del provider",
@@ -3329,6 +3341,8 @@ var tr = {
3329
3341
  "web.presets": "Haz\u0131r Ayarlar",
3330
3342
  "web.presetsNoRun": "\xD6nce bir run a\xE7, sonra onu haz\u0131r ayar olarak kaydet.",
3331
3343
  "web.presetsSubtitle": "Kay\u0131tl\u0131 agent ekibi \u015Fablonlar\u0131.",
3344
+ "web.extraArgs": "Ek flag'ler",
3345
+ "web.extraArgsHelp": "Ba\u015Flat\u0131l\u0131rken, ReevesAgents'\u0131n ekledi\u011Fi flag'lerden sonra CLI'ya ge\xE7irilir.",
3332
3346
  "web.promptHelp": "Penceresi a\xE7\u0131ld\u0131ktan sonra agent'a g\xF6nderilir.",
3333
3347
  "web.promptPlaceholder": "Bu agent neyle ba\u015Flamal\u0131?",
3334
3348
  "web.provider": "Sa\u011Flay\u0131c\u0131",
@@ -3897,6 +3911,8 @@ var ru = {
3897
3911
  "web.presets": "\u041F\u0440\u0435\u0441\u0435\u0442\u044B",
3898
3912
  "web.presetsNoRun": "\u0421\u043D\u0430\u0447\u0430\u043B\u0430 \u043E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 run, \u0437\u0430\u0442\u0435\u043C \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u0435 \u0435\u0433\u043E \u043A\u0430\u043A \u043F\u0440\u0435\u0441\u0435\u0442.",
3899
3913
  "web.presetsSubtitle": "\u0421\u043E\u0445\u0440\u0430\u043D\u0451\u043D\u043D\u044B\u0435 \u0448\u0430\u0431\u043B\u043E\u043D\u044B \u043A\u043E\u043C\u0430\u043D\u0434 \u0430\u0433\u0435\u043D\u0442\u043E\u0432.",
3914
+ "web.extraArgs": "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0444\u043B\u0430\u0433\u0438",
3915
+ "web.extraArgsHelp": "\u041F\u0435\u0440\u0435\u0434\u0430\u044E\u0442\u0441\u044F CLI \u043F\u0440\u0438 \u0437\u0430\u043F\u0443\u0441\u043A\u0435, \u043F\u043E\u0441\u043B\u0435 \u0444\u043B\u0430\u0433\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0437\u0430\u0434\u0430\u0451\u0442 ReevesAgents.",
3900
3916
  "web.promptHelp": "\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0430\u0433\u0435\u043D\u0442\u0443 \u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u0435\u0433\u043E \u043E\u043A\u043D\u0430.",
3901
3917
  "web.promptPlaceholder": "\u0421 \u0447\u0435\u0433\u043E \u0434\u043E\u043B\u0436\u0435\u043D \u043D\u0430\u0447\u0430\u0442\u044C \u044D\u0442\u043E\u0442 \u0430\u0433\u0435\u043D\u0442?",
3902
3918
  "web.provider": "\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440",
@@ -4469,6 +4485,8 @@ var zhHans = {
4469
4485
  "web.presets": "\u9884\u8BBE",
4470
4486
  "web.presetsNoRun": "\u5148\u6253\u5F00\u4E00\u4E2A\u8FD0\u884C\uFF0C\u518D\u5C06\u5176\u4FDD\u5B58\u4E3A\u9884\u8BBE\u3002",
4471
4487
  "web.presetsSubtitle": "\u5DF2\u4FDD\u5B58\u7684\u667A\u80FD\u4F53\u56E2\u961F\u6A21\u677F\u3002",
4488
+ "web.extraArgs": "\u989D\u5916\u6807\u5FD7",
4489
+ "web.extraArgsHelp": "\u542F\u52A8\u65F6\u4F20\u7ED9 CLI\uFF0C\u6392\u5728 ReevesAgents \u8BBE\u7F6E\u7684\u6807\u5FD7\u4E4B\u540E\u3002",
4472
4490
  "web.promptHelp": "\u7A97\u53E3\u6253\u5F00\u540E\u53D1\u9001\u7ED9\u667A\u80FD\u4F53\u3002",
4473
4491
  "web.promptPlaceholder": "\u8FD9\u4E2A\u667A\u80FD\u4F53\u5E94\u8BE5\u5148\u505A\u4EC0\u4E48\uFF1F",
4474
4492
  "web.provider": "\u670D\u52A1\u5546",
@@ -5044,6 +5062,8 @@ var ar = {
5044
5062
  "web.presets": "\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062C\u0627\u0647\u0632\u0629",
5045
5063
  "web.presetsNoRun": "\u0627\u0641\u062A\u062D \u062A\u0634\u063A\u064A\u0644\u0629 \u0623\u0648\u0644\u0627\u064B \u062B\u0645 \u0627\u062D\u0641\u0638\u0647\u0627 \u0643\u0625\u0639\u062F\u0627\u062F \u062C\u0627\u0647\u0632.",
5046
5064
  "web.presetsSubtitle": "\u0642\u0648\u0627\u0644\u0628 \u0641\u0650\u0631\u064E\u0642 \u0648\u0643\u0644\u0627\u0621 \u0645\u062D\u0641\u0648\u0638\u0629.",
5065
+ "web.extraArgs": "\u0627\u0644\u0623\u0639\u0644\u0627\u0645 \u0627\u0644\u0625\u0636\u0627\u0641\u064A\u0629",
5066
+ "web.extraArgsHelp": "\u062A\u064F\u0645\u0631\u064E\u0651\u0631 \u0625\u0644\u0649 \u0623\u062F\u0627\u0629 CLI \u0639\u0646\u062F \u0627\u0644\u0625\u0637\u0644\u0627\u0642\u060C \u0628\u0639\u062F \u0627\u0644\u0623\u0639\u0644\u0627\u0645 \u0627\u0644\u062A\u064A \u064A\u0636\u0628\u0637\u0647\u0627 ReevesAgents.",
5047
5067
  "web.promptHelp": "\u064A\u064F\u0631\u0633\u064E\u0644 \u0625\u0644\u0649 \u0627\u0644\u0648\u0643\u064A\u0644 \u0628\u0639\u062F \u0641\u062A\u062D \u0646\u0627\u0641\u0630\u062A\u0647.",
5048
5068
  "web.promptPlaceholder": "\u0628\u0645\u0627\u0630\u0627 \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0647\u0630\u0627 \u0627\u0644\u0648\u0643\u064A\u0644\u061F",
5049
5069
  "web.provider": "\u0627\u0644\u0645\u0632\u0648\u0651\u062F",
@@ -5423,4 +5443,4 @@ export {
5423
5443
  localeCatalog,
5424
5444
  translatePhrase
5425
5445
  };
5426
- //# sourceMappingURL=chunk-YMUISYYB.js.map
5446
+ //# sourceMappingURL=chunk-BELIYZTN.js.map
@@ -7,7 +7,7 @@ import {
7
7
  redactSecrets,
8
8
  runDir,
9
9
  withRunsLock
10
- } from "./chunk-65LHCGPC.js";
10
+ } from "./chunk-KL5YFLQF.js";
11
11
 
12
12
  // src/core/approvals.ts
13
13
  import {
@@ -314,4 +314,4 @@ export {
314
314
  attachAll,
315
315
  REEVESAGENTS_VERSION
316
316
  };
317
- //# sourceMappingURL=chunk-Z2JHNE7V.js.map
317
+ //# sourceMappingURL=chunk-EX5LH2KW.js.map
@@ -119,6 +119,8 @@ var PROVIDER_REGISTRY = {
119
119
  helpRequirements: [
120
120
  { feature: "skip permissions", tokens: ["--dangerously-skip-permissions"] }
121
121
  ],
122
+ supportsAuthMode: true,
123
+ supportsEffort: true,
122
124
  buildArgs: ({ permissions, model, auth_mode, effort }) => {
123
125
  const args = [];
124
126
  if (permissions === "skip") args.push("--dangerously-skip-permissions");
@@ -292,6 +294,15 @@ var PROVIDER_DEFS = Object.values(PROVIDER_REGISTRY);
292
294
 
293
295
  // src/core/providers.ts
294
296
  import { execFileSync, spawnSync } from "child_process";
297
+ function coerceExtraArgs(value) {
298
+ if (Array.isArray(value)) {
299
+ return value.filter((item) => typeof item === "string").map((item) => item.trim()).filter(Boolean);
300
+ }
301
+ if (typeof value === "string") {
302
+ return value.trim().split(/\s+/).filter(Boolean);
303
+ }
304
+ return [];
305
+ }
295
306
  var BIN = Object.fromEntries(
296
307
  PROVIDER_DEFS.map((def) => [def.id, def.bin])
297
308
  );
@@ -308,13 +319,19 @@ function normalizeProvider(value) {
308
319
  if (typeof value !== "string") return null;
309
320
  return PROVIDER_ALIASES[value.trim().toLowerCase()] ?? null;
310
321
  }
322
+ function providerSupportsAuthMode(provider) {
323
+ return PROVIDER_REGISTRY[provider]?.supportsAuthMode === true;
324
+ }
325
+ function providerSupportsEffort(provider) {
326
+ return PROVIDER_REGISTRY[provider]?.supportsEffort === true;
327
+ }
311
328
  function buildCommand(opts) {
312
- const { provider, permissions, model, auth_mode = "default", effort = "default" } = opts;
329
+ const { provider, permissions, model, auth_mode = "default", effort = "default", extra_args = [] } = opts;
313
330
  if (!isProvider(provider)) {
314
331
  throw new Error(`Unsupported provider: ${String(provider)}`);
315
332
  }
316
333
  const def = PROVIDER_REGISTRY[provider];
317
- return [def.bin, ...def.buildArgs({ permissions, model, auth_mode, effort })];
334
+ return [def.bin, ...def.buildArgs({ permissions, model, auth_mode, effort }), ...extra_args];
318
335
  }
319
336
  function detectAvailable() {
320
337
  const result = {};
@@ -794,6 +811,11 @@ function listRunHistoryUnlocked() {
794
811
  function listRuns() {
795
812
  return listRunsUnlocked();
796
813
  }
814
+ function latestActiveRun() {
815
+ const active = listRuns();
816
+ if (active.length === 0) return null;
817
+ return active.reduce((latest, run) => run.started_at > latest.started_at ? run : latest);
818
+ }
797
819
  function listRunHistory() {
798
820
  return listRunHistoryUnlocked();
799
821
  }
@@ -1553,7 +1575,8 @@ function terminalShellCommand(config, permissions) {
1553
1575
  model: config.model,
1554
1576
  auth_mode: config.auth_mode,
1555
1577
  effort: config.effort,
1556
- rc_enabled: false
1578
+ rc_enabled: false,
1579
+ extra_args: config.extra_args
1557
1580
  });
1558
1581
  return `exec ${cmd.map(shellQuote).join(" ")}`;
1559
1582
  }
@@ -1966,10 +1989,13 @@ function openTmuxTarget(id, options = {}) {
1966
1989
  export {
1967
1990
  PROVIDER_REGISTRY,
1968
1991
  PROVIDER_DEFS,
1992
+ coerceExtraArgs,
1969
1993
  BIN,
1970
1994
  PROVIDERS,
1971
1995
  isProvider,
1972
1996
  normalizeProvider,
1997
+ providerSupportsAuthMode,
1998
+ providerSupportsEffort,
1973
1999
  buildCommand,
1974
2000
  detectAvailable,
1975
2001
  colors,
@@ -1987,6 +2013,7 @@ export {
1987
2013
  withRunsLock,
1988
2014
  readRun,
1989
2015
  listRuns,
2016
+ latestActiveRun,
1990
2017
  listRunHistory,
1991
2018
  deleteAgent,
1992
2019
  deleteRunHistory,
@@ -2032,4 +2059,4 @@ export {
2032
2059
  stopRun,
2033
2060
  openTmuxTarget
2034
2061
  };
2035
- //# sourceMappingURL=chunk-65LHCGPC.js.map
2062
+ //# sourceMappingURL=chunk-KL5YFLQF.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  PROVIDER_DEFS
4
- } from "./chunk-65LHCGPC.js";
4
+ } from "./chunk-KL5YFLQF.js";
5
5
 
6
6
  // src/core/model-catalog.ts
7
7
  var PROVIDER_DEFAULT_MODEL = "";
@@ -27,4 +27,4 @@ export {
27
27
  modelDisplayName,
28
28
  modelSourceForProvider
29
29
  };
30
- //# sourceMappingURL=chunk-HS6TOISU.js.map
30
+ //# sourceMappingURL=chunk-NJWOKVBZ.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  stateRoot
4
- } from "./chunk-65LHCGPC.js";
4
+ } from "./chunk-KL5YFLQF.js";
5
5
 
6
6
  // src/core/tui-open.ts
7
7
  import { mkdirSync, readFileSync, writeFileSync } from "fs";
@@ -26,4 +26,4 @@ export {
26
26
  readTuiOpenToken,
27
27
  writeTuiOpenToken
28
28
  };
29
- //# sourceMappingURL=chunk-4W6MVOPK.js.map
29
+ //# sourceMappingURL=chunk-PEOJCUQI.js.map