agents-deck 1.18.0 → 1.19.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/README.md +71 -33
- package/dist/web/assets/index-Bs89BdrR.js +62 -0
- package/dist/web/assets/{index-DGqLVo1U.css → index-CVsr6RfQ.css} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/src/server/index.mjs +9 -0
- package/src/server/quota.mjs +133 -0
- package/dist/web/assets/index-uANyTzBq.js +0 -62
package/README.md
CHANGED
|
@@ -1,52 +1,66 @@
|
|
|
1
1
|
# agents-deck
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/agents-deck)
|
|
4
|
+
[](https://www.npmjs.com/package/agents-deck)
|
|
5
|
+
[](LICENSE)
|
|
6
|
+
[](https://nodejs.org)
|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
Live canvas for **Claude Code** and **OpenAI Codex** agents. Watch parallel subagents fork, call tools, and finish — all on one calm graph.
|
|
6
9
|
|
|
7
|
-
|
|
10
|
+

|
|
11
|
+
|
|
12
|
+
## Quick start
|
|
8
13
|
|
|
9
14
|
```bash
|
|
10
15
|
npx agents-deck
|
|
11
16
|
```
|
|
12
17
|
|
|
13
|
-
Opens http://127.0.0.1:4317
|
|
18
|
+
Opens **http://127.0.0.1:4317** and auto-registers the Claude Code hook. Start any Claude Code or Codex session and the graph fills in live.
|
|
14
19
|
|
|
15
|
-
|
|
20
|
+
No config. No install step. Ctrl+C to stop.
|
|
16
21
|
|
|
17
|
-
|
|
18
|
-
-p, --port <number> Preferred port (default: 4317; falls back to random 4318–4400)
|
|
19
|
-
--no-open Don't open the browser automatically
|
|
20
|
-
--workspace <path> Only capture sessions whose cwd is inside <path>
|
|
21
|
-
--scope Restrict to the current working directory
|
|
22
|
-
--all Capture sessions from all workspaces (machine-wide; default)
|
|
23
|
-
--codex Force-enable Codex capture even if ~/.codex/ is missing
|
|
24
|
-
--no-codex Skip Codex capture (Claude only)
|
|
25
|
-
--history <path> Override events log file (default: ~/.claude/agent-dag/events.jsonl)
|
|
26
|
-
--no-persist RAM-only mode, no log file
|
|
27
|
-
--uninstall Remove agents-deck hooks from ~/.claude/settings.json
|
|
28
|
-
-h, --help Show help
|
|
29
|
-
```
|
|
22
|
+
## Features
|
|
30
23
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
- Click a node for details.
|
|
24
|
+
- **Live DAG** — nodes are agents, edges are spawns and tool calls; in-flight edges animate, settled edges fade
|
|
25
|
+
- **Dual provider** — Claude Code via hooks, Codex via log-tail; both appear on the same canvas; the model chip (`Opus 4.8`, `GPT-5.5`) tells them apart
|
|
26
|
+
- **Click-to-inspect** — click any node for prompt, tool calls, token usage, and timing
|
|
27
|
+
- **Persistent replay** — events survive restarts; the log at `~/.claude/agent-dag/events.jsonl` replays the last session on open
|
|
28
|
+
- **Workspace filter** — `--scope` limits capture to the current directory; `--workspace <path>` for any subtree
|
|
29
|
+
- **Zero trust step for Codex** — no hook install, no `/hooks` trust prompt; the server tails `~/.codex/sessions/` directly
|
|
38
30
|
|
|
39
31
|
## How it works
|
|
40
32
|
|
|
41
|
-
Two
|
|
33
|
+
Two capture paths feed one SSE stream → one browser canvas.
|
|
42
34
|
|
|
43
|
-
**Claude Code** — `agents-deck`
|
|
35
|
+
**Claude Code** — on first run `agents-deck` injects a hook entry into `~/.claude/settings.json` for every relevant event:
|
|
44
36
|
|
|
45
|
-
|
|
37
|
+
```
|
|
38
|
+
SessionStart · UserPromptSubmit · PreToolUse · PostToolUse · PostToolUseFailure
|
|
39
|
+
SubagentStart · SubagentStop · Stop · SessionEnd · Notification
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Each hook fires the bundled `hook.js`, which POSTs the event JSON to the running server.
|
|
43
|
+
|
|
44
|
+
**OpenAI Codex** — Codex CLI hooks don't fire reliably on Windows (the sandbox refuses to spawn them). Instead, the server tails Codex's rollout files at `~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl` and reconstructs an equivalent event stream — session start, prompts, tool calls, token usage, model. No hook install, no trust step needed. Set `CODEX_HOME` to override the default path.
|
|
46
45
|
|
|
47
|
-
|
|
46
|
+
## Options
|
|
48
47
|
|
|
49
|
-
|
|
48
|
+
```
|
|
49
|
+
agents-deck [options]
|
|
50
|
+
|
|
51
|
+
-p, --port <number> Preferred port (default: 4317; fallback: random 4318–4400)
|
|
52
|
+
--no-open Don't open the browser automatically
|
|
53
|
+
--workspace <path> Only capture sessions whose cwd is inside <path>
|
|
54
|
+
--scope Restrict to the current working directory
|
|
55
|
+
--all Capture every session on this machine (default)
|
|
56
|
+
--history <path> Override the events log file
|
|
57
|
+
(default: ~/.claude/agent-dag/events.jsonl)
|
|
58
|
+
--no-persist RAM-only mode — don't write or replay the log
|
|
59
|
+
--codex Force Codex capture even if ~/.codex/ is missing
|
|
60
|
+
--no-codex Skip Codex capture (Claude only)
|
|
61
|
+
--uninstall Remove agents-deck hooks from settings files
|
|
62
|
+
-h, --help Show this help
|
|
63
|
+
```
|
|
50
64
|
|
|
51
65
|
## Uninstall
|
|
52
66
|
|
|
@@ -54,8 +68,32 @@ The hook forwards the event JSON to the running server.
|
|
|
54
68
|
npx agents-deck --uninstall
|
|
55
69
|
```
|
|
56
70
|
|
|
57
|
-
Removes all
|
|
71
|
+
Removes all hook entries injected by agents-deck from `~/.claude/settings.json` (and `~/.codex/hooks.json` if present).
|
|
72
|
+
|
|
73
|
+
## Legacy name
|
|
74
|
+
|
|
75
|
+
Formerly **agent-dag**. Both names publish the same package and the `agent-dag` command is a built-in alias — existing installs and scripts keep working.
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
# both work identically
|
|
79
|
+
npx agents-deck
|
|
80
|
+
npx agent-dag
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Design
|
|
84
|
+
|
|
85
|
+
One canvas. No tabs. No kanban.
|
|
86
|
+
|
|
87
|
+
- Node = agent (root session or subagent)
|
|
88
|
+
- Edge = parent → child (spawn) or agent → tool (call)
|
|
89
|
+
- In-flight = animated; settled = dimmed
|
|
90
|
+
- Click a node for full details
|
|
91
|
+
|
|
92
|
+
## Requirements
|
|
93
|
+
|
|
94
|
+
- Node.js ≥ 18
|
|
95
|
+
- Claude Code CLI or OpenAI Codex CLI (or both)
|
|
58
96
|
|
|
59
|
-
##
|
|
97
|
+
## License
|
|
60
98
|
|
|
61
|
-
|
|
99
|
+
MIT © [Bargan Constantin](https://github.com/BarganConstantin)
|