reevesagents 1.4.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 +29 -0
- package/README.md +21 -6
- package/dist/chunk-7YW57CWK.js +55 -0
- package/dist/chunk-ICFJOMFZ.js +66 -0
- package/dist/{chunk-BELIYZTN.js → chunk-J2DD52HJ.js} +271 -2
- package/dist/chunk-JDJW3WST.js +136 -0
- package/dist/{chunk-33EB4RUP.js → chunk-S4JLBMK4.js} +2 -2
- package/dist/{chunk-KL5YFLQF.js → chunk-T7SPF4ZP.js} +272 -26
- package/dist/{chunk-EX5LH2KW.js → chunk-VYLFTVIQ.js} +2 -148
- package/dist/{chunk-NJWOKVBZ.js → chunk-WDJ6RTES.js} +2 -2
- package/dist/cli.js +167 -17
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -2
- package/dist/{router-MGXDADKM.js → router-L5IRXRCH.js} +315 -208
- package/dist/{server-KHY23W6D.js → server-AP4NN6RT.js} +118 -29
- package/dist/{server-L5DTU6U2.js → server-Y5EO5QYV.js} +19 -20
- package/dist/{tui-launch-2UWK76V3.js → tui-launch-AGR3JF4I.js} +2 -2
- package/dist/web/app.css +10 -0
- package/dist/web/app.js +57 -3
- package/dist/web/index.html +19 -0
- package/package.json +4 -2
- package/skills/reevesagents/SKILL.md +64 -0
- package/dist/chunk-PEOJCUQI.js +0 -29
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
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
|
+
|
|
12
|
+
# [1.5.0](https://github.com/mertkayacs/reevesagents/compare/v1.4.0...v1.5.0) (2026-07-11)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* address remaining review notes across CLI, TUI, and web ([b7753c0](https://github.com/mertkayacs/reevesagents/commit/b7753c060e8ab05e6b50650d15a8a008f1c9b4f8)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
|
|
18
|
+
* **cli:** set failure exit codes and add attach --force ([a68c247](https://github.com/mertkayacs/reevesagents/commit/a68c24782f8fb2b1311fcbaf4a03cd4d9baf17c9)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
|
|
19
|
+
* **win:** guard .cmd launchers, add setup --json, shorten status probe ([6273ea7](https://github.com/mertkayacs/reevesagents/commit/6273ea7eae7d72916edf7a1b45cedcc5a4aedfee)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
|
|
20
|
+
* **win:** protect live runs in the verifier and fix cmd.exe quoting ([52dc275](https://github.com/mertkayacs/reevesagents/commit/52dc27536c8a1e6d92cf1275d3bf99356fbf6d9c)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* **cli:** add a setup command and shared onboarding core ([79dd470](https://github.com/mertkayacs/reevesagents/commit/79dd470bbaf0f4aa9598a889ecb8f7d5025b4d6b)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
|
|
26
|
+
* **mcp:** add connect-time instructions and a getting-started guide ([341c8e6](https://github.com/mertkayacs/reevesagents/commit/341c8e689b6a13057edcd8274e442bc1a71e6f5b)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
|
|
27
|
+
* **mcp:** resolve an absolute launcher and verify attach ([2315e8e](https://github.com/mertkayacs/reevesagents/commit/2315e8e494d61036f7659db82ac55d35d44fadde)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
|
|
28
|
+
* **tui:** add a first-run setup wizard ([1895611](https://github.com/mertkayacs/reevesagents/commit/18956117e6af36dbd1055ed984b3cbb589f5387b)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
|
|
29
|
+
* **web:** add a first-visit getting-started popup ([c3d909b](https://github.com/mertkayacs/reevesagents/commit/c3d909b4456052cc4398b82bf74213dc8b9af220)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
|
|
30
|
+
* **win:** add reevesagents-win, an MCP-only Windows-native package ([58dba05](https://github.com/mertkayacs/reevesagents/commit/58dba05fad8c23cf27a5ab77d97c8fd8f097468f)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
|
|
31
|
+
|
|
3
32
|
# [1.4.0](https://github.com/mertkayacs/reevesagents/compare/v1.3.2...v1.4.0) (2026-07-05)
|
|
4
33
|
|
|
5
34
|
|
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
|
|
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
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
that touches provider config, and only through each CLI's
|
|
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
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
attachAll,
|
|
4
|
+
checkTmux,
|
|
5
|
+
detectAvailable,
|
|
6
|
+
hostStatus,
|
|
7
|
+
nodeVersionCheck,
|
|
8
|
+
resolveLaunchCmd,
|
|
9
|
+
stateRoot,
|
|
10
|
+
verifyServerLaunch
|
|
11
|
+
} from "./chunk-T7SPF4ZP.js";
|
|
12
|
+
|
|
13
|
+
// src/core/onboard.ts
|
|
14
|
+
function buildOnboardingState() {
|
|
15
|
+
const available = detectAvailable();
|
|
16
|
+
const installedProviders = Object.keys(available).filter((p) => available[p]);
|
|
17
|
+
const hosts = hostStatus();
|
|
18
|
+
const tmuxOk = checkTmux().status !== "fail";
|
|
19
|
+
return {
|
|
20
|
+
tmuxOk,
|
|
21
|
+
nodeOk: nodeVersionCheck().status === "ok",
|
|
22
|
+
installedProviders,
|
|
23
|
+
hosts,
|
|
24
|
+
attachable: hosts.filter((h) => h.installed && !h.manual && !h.attached).map((h) => h.key),
|
|
25
|
+
attachedHosts: hosts.filter((h) => h.attached).map((h) => h.key),
|
|
26
|
+
launcherAbsolute: resolveLaunchCmd().command !== "reevesagents",
|
|
27
|
+
ready: tmuxOk && installedProviders.length > 0
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
async function runOnboarding() {
|
|
31
|
+
const attached = attachAll();
|
|
32
|
+
const verify = attached.some((result) => result.ok) ? await verifyServerLaunch() : null;
|
|
33
|
+
return { attached, verify };
|
|
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
|
+
}
|
|
39
|
+
|
|
40
|
+
// src/core/tui-open.ts
|
|
41
|
+
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
42
|
+
import { join } from "path";
|
|
43
|
+
function tokenPath() {
|
|
44
|
+
return join(stateRoot(), "tui-open-token");
|
|
45
|
+
}
|
|
46
|
+
function readTuiOpenToken() {
|
|
47
|
+
try {
|
|
48
|
+
return readFileSync(tokenPath(), "utf-8").trim();
|
|
49
|
+
} catch {
|
|
50
|
+
return "";
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function writeTuiOpenToken() {
|
|
54
|
+
mkdirSync(stateRoot(), { recursive: true });
|
|
55
|
+
writeFileSync(tokenPath(), `${Date.now()}
|
|
56
|
+
`, "utf-8");
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
buildOnboardingState,
|
|
61
|
+
runOnboarding,
|
|
62
|
+
suggestedAgentPrompt,
|
|
63
|
+
readTuiOpenToken,
|
|
64
|
+
writeTuiOpenToken
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=chunk-ICFJOMFZ.js.map
|