agenthud 0.11.4 → 0.12.2
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 +60 -16
- package/dist/index.js +1 -1
- package/dist/{main-WAT4DY4T.js → main-YCUCY2QP.js} +1023 -316
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,27 +24,37 @@ npx agenthud
|
|
|
24
24
|
|
|
25
25
|
Run this in a separate terminal while using Claude Code. Press `?` inside the TUI any time for in-app help.
|
|
26
26
|
|
|
27
|
+
> **Platform support.** Primary development is on macOS and Linux; the full test suite runs on all three platforms in CI (including Windows). Windows runtime behavior is exercised by a manual smoke job but isn't daily-driven — issues there are valued bug reports.
|
|
28
|
+
|
|
29
|
+
Pass `--cwd` to scope the view to the Claude project that contains your current directory — useful when you have many projects but only care about the one you're in right now. Exits 1 with a stderr message if no such project is registered.
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
agenthud # all Claude projects on the machine
|
|
33
|
+
agenthud --cwd # only the project containing the current dir
|
|
34
|
+
agenthud --once # print one frame and exit (no alt-screen)
|
|
35
|
+
```
|
|
36
|
+
|
|
27
37
|
## Live monitor
|
|
28
38
|
|
|
29
39
|
AgentHUD's TUI splits the screen into a project tree and an activity viewer:
|
|
30
40
|
|
|
31
41
|
```
|
|
32
|
-
┌─ Projects
|
|
33
|
-
│ > agenthud ~/WestbrookAI/agenthud
|
|
34
|
-
│ #864f [hot] Fix the auth bug in login flow
|
|
35
|
-
│ ├─ » code-reviewer
|
|
36
|
-
│ (#398c [warm])
|
|
37
|
-
│ myproject ~/work/myproject
|
|
38
|
-
│ #def4 [hot] Add OAuth support
|
|
39
|
-
│ ... 12 cold projects
|
|
40
|
-
|
|
41
|
-
┌─ Activity · agenthud
|
|
42
|
-
│ [10:23] ○ Read src/ui/App.tsx
|
|
43
|
-
│ [10:23] ~ Edit src/ui/App.tsx
|
|
44
|
-
│ [10:23] $ Bash npm test
|
|
45
|
-
│ [10:23] < Response Tests passed successfully
|
|
42
|
+
┌─ Projects ─────────────────────────────────────────────────┐
|
|
43
|
+
│ > agenthud ~/WestbrookAI/agenthud 13m │
|
|
44
|
+
│ #864f [hot] Fix the auth bug in login flow │
|
|
45
|
+
│ ├─ » code-reviewer │
|
|
46
|
+
│ (#398c [warm]) │
|
|
47
|
+
│ myproject ~/work/myproject 2d │
|
|
48
|
+
│ #def4 [hot] Add OAuth support │
|
|
49
|
+
│ ... 12 cold projects │
|
|
50
|
+
└────────────────────────────────────────────────────────────┘
|
|
51
|
+
┌─ Activity · agenthud ──────────────────────────────────────┐
|
|
52
|
+
│ [10:23] ○ Read src/ui/App.tsx │
|
|
53
|
+
│ [10:23] ~ Edit src/ui/App.tsx │
|
|
54
|
+
│ [10:23] $ Bash npm test │
|
|
55
|
+
│ [10:23] < Response Tests passed successfully │
|
|
46
56
|
│ [10:25] ⠧ Edit src/auth/oauth.ts ← bold + spinner = live │
|
|
47
|
-
|
|
57
|
+
└────────────────────────────────────────────────────────────┘
|
|
48
58
|
```
|
|
49
59
|
|
|
50
60
|
**Project tree (top pane)**
|
|
@@ -100,6 +110,7 @@ Full reference is also available inside the app — press `?`.
|
|
|
100
110
|
|-----|--------|
|
|
101
111
|
| `↑` / `k` | Move up |
|
|
102
112
|
| `↓` / `j` | Move down |
|
|
113
|
+
| `←` | Jump to parent (sub-agent → session, session → project) |
|
|
103
114
|
| `↵` | Expand/collapse project, session, or sub-agent summary |
|
|
104
115
|
| `h` | Hide selected (project / session / sub-agent) |
|
|
105
116
|
| `Tab` | Switch focus to activity viewer |
|
|
@@ -180,7 +191,7 @@ Output:
|
|
|
180
191
|
| Flag | Default | Description |
|
|
181
192
|
|------|---------|-------------|
|
|
182
193
|
| `--date` | today | `YYYY-MM-DD`, `today`, `yesterday`, or `-Nd` (N days ago, local date) |
|
|
183
|
-
| `--include` | `response,bash,edit,thinking` | Comma-separated types or `all` |
|
|
194
|
+
| `--include` | `user,response,bash,edit,thinking` | Comma-separated types or `all` |
|
|
184
195
|
| `--format` | `markdown` | `markdown` or `json` |
|
|
185
196
|
| `--detail-limit` | `120` | Max chars per detail field; `0` = unlimited |
|
|
186
197
|
| `--with-git` | off | Merge git commits from each session's project into the timeline |
|
|
@@ -204,11 +215,27 @@ agenthud summary --last 7d # last 7 days, ending today
|
|
|
204
215
|
agenthud summary --from 2026-05-10 --to 2026-05-16 # explicit range
|
|
205
216
|
agenthud summary --last 7d -y # skip per-day confirmations
|
|
206
217
|
|
|
218
|
+
# Tune what gets sent to the LLM — same option shape as `report`
|
|
219
|
+
agenthud summary --include all # include every activity type
|
|
220
|
+
agenthud summary --detail-limit 200 # truncate long tool outputs
|
|
221
|
+
agenthud summary --with-git # include git commits (default in config)
|
|
222
|
+
# Defaults are CLI flag → `summary:` config → `report:` config → built-in.
|
|
223
|
+
|
|
207
224
|
# Cheaper model — summarization doesn't need Opus-tier reasoning
|
|
208
225
|
agenthud summary --date today --model sonnet # ~40% cheaper than Opus
|
|
209
226
|
agenthud summary --last 7d --model haiku # ~80% cheaper, 200K context
|
|
227
|
+
|
|
228
|
+
# Open the resulting summary in your OS default app (browser, VS Code, etc.)
|
|
229
|
+
agenthud summary --last 7d --open # -o is the short form
|
|
230
|
+
|
|
231
|
+
# Open the index (~/.agenthud/summaries/index.md) instead — a hub
|
|
232
|
+
# listing every daily and range summary, grouped by year/month.
|
|
233
|
+
agenthud summary --open-index # -I is the short form
|
|
234
|
+
agenthud summary -oI # open today + the index
|
|
210
235
|
```
|
|
211
236
|
|
|
237
|
+
The index is auto-regenerated whenever a summary writes, and each summary file gets a one-line backlink footer at the top (`← all summaries · ← prev · next →`) so any markdown viewer is enough to navigate the whole corpus without leaving the file.
|
|
238
|
+
|
|
212
239
|
**Daily summaries** are saved to `~/.agenthud/summaries/YYYY-MM-DD.md`. Past dates are cached and returned instantly; today is always regenerated (activity still growing).
|
|
213
240
|
|
|
214
241
|
**Range summaries** generate any missing daily summaries first, then feed those into a second `claude` call that produces a cross-day synthesis (themes, multi-day workstreams, recurring patterns). Output is cached to `~/.agenthud/summaries/range-FROM_TO.md`. Cached dailies cost nothing to reuse, so weekly summaries are cheap after the first run.
|
|
@@ -240,8 +267,24 @@ filterPresets:
|
|
|
240
267
|
- ["all"]
|
|
241
268
|
- ["response", "user"]
|
|
242
269
|
- ["commit"]
|
|
270
|
+
|
|
271
|
+
# Defaults for `agenthud report` (CLI flags still win per-invocation).
|
|
272
|
+
report:
|
|
273
|
+
include: [user, response, bash, edit, thinking]
|
|
274
|
+
detailLimit: 120
|
|
275
|
+
withGit: false
|
|
276
|
+
format: markdown
|
|
277
|
+
|
|
278
|
+
# Defaults for `agenthud summary`. Any field omitted here is inherited
|
|
279
|
+
# from `report` above. `model` is summary-specific.
|
|
280
|
+
summary:
|
|
281
|
+
withGit: true
|
|
282
|
+
detailLimit: 0
|
|
283
|
+
# model: sonnet
|
|
243
284
|
```
|
|
244
285
|
|
|
286
|
+
`report` / `summary` resolve each option as **CLI flag → `summary:` key → `report:` key → built-in default**. The effective set is printed to stderr at the start of each run (e.g. `agenthud: report → include=[user,response,bash,edit,thinking] detail-limit=120 with-git=off format=markdown`), so the actual values are always visible.
|
|
287
|
+
|
|
245
288
|
App-managed state (hidden items) lives separately in `~/.agenthud/state.yaml` so your config file stays clean. You shouldn't need to edit it manually — use `h` in the TUI to hide things.
|
|
246
289
|
|
|
247
290
|
## Files
|
|
@@ -254,6 +297,7 @@ App-managed state (hidden items) lives separately in `~/.agenthud/state.yaml` so
|
|
|
254
297
|
| `~/.agenthud/summary-range-prompt.md` | LLM prompt template for range `summary --last/--from/--to` |
|
|
255
298
|
| `~/.agenthud/summaries/YYYY-MM-DD.md` | Cached daily summaries |
|
|
256
299
|
| `~/.agenthud/summaries/range-FROM_TO.md` | Cached range summaries |
|
|
300
|
+
| `~/.agenthud/summaries/index.md` | Auto-regenerated hub linking every summary; each summary also gets a backlink footer at the top |
|
|
257
301
|
|
|
258
302
|
## Environment Variables
|
|
259
303
|
|
package/dist/index.js
CHANGED