agenthud 0.11.3 → 0.12.1

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 CHANGED
@@ -24,27 +24,35 @@ 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
+ 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.
28
+
29
+ ```bash
30
+ agenthud # all Claude projects on the machine
31
+ agenthud --cwd # only the project containing the current dir
32
+ agenthud --once # print one frame and exit (no alt-screen)
33
+ ```
34
+
27
35
  ## Live monitor
28
36
 
29
37
  AgentHUD's TUI splits the screen into a project tree and an activity viewer:
30
38
 
31
39
  ```
32
- ┌─ Projects ───────────────────────────────────────────────┐
33
- │ > agenthud ~/WestbrookAI/agenthud 13m │
34
- │ #864f [hot] Fix the auth bug in login flow
35
- │ ├─ » code-reviewer
36
- │ (#398c [warm])
37
- │ myproject ~/work/myproject 2d │
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
40
+ ┌─ Projects ─────────────────────────────────────────────────┐
41
+ │ > agenthud ~/WestbrookAI/agenthud 13m │
42
+ │ #864f [hot] Fix the auth bug in login flow
43
+ │ ├─ » code-reviewer
44
+ │ (#398c [warm])
45
+ │ myproject ~/work/myproject 2d │
46
+ │ #def4 [hot] Add OAuth support
47
+ │ ... 12 cold projects
48
+ └────────────────────────────────────────────────────────────┘
49
+ ┌─ Activity · agenthud ──────────────────────────────────────┐
50
+ │ [10:23] ○ Read src/ui/App.tsx
51
+ │ [10:23] ~ Edit src/ui/App.tsx
52
+ │ [10:23] $ Bash npm test
53
+ │ [10:23] < Response Tests passed successfully
46
54
  │ [10:25] ⠧ Edit src/auth/oauth.ts ← bold + spinner = live │
47
- └──────────────────────────────────────────────────────────┘
55
+ └────────────────────────────────────────────────────────────┘
48
56
  ```
49
57
 
50
58
  **Project tree (top pane)**
@@ -100,6 +108,7 @@ Full reference is also available inside the app — press `?`.
100
108
  |-----|--------|
101
109
  | `↑` / `k` | Move up |
102
110
  | `↓` / `j` | Move down |
111
+ | `←` | Jump to parent (sub-agent → session, session → project) |
103
112
  | `↵` | Expand/collapse project, session, or sub-agent summary |
104
113
  | `h` | Hide selected (project / session / sub-agent) |
105
114
  | `Tab` | Switch focus to activity viewer |
@@ -180,7 +189,7 @@ Output:
180
189
  | Flag | Default | Description |
181
190
  |------|---------|-------------|
182
191
  | `--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` |
192
+ | `--include` | `user,response,bash,edit,thinking` | Comma-separated types or `all` |
184
193
  | `--format` | `markdown` | `markdown` or `json` |
185
194
  | `--detail-limit` | `120` | Max chars per detail field; `0` = unlimited |
186
195
  | `--with-git` | off | Merge git commits from each session's project into the timeline |
@@ -204,11 +213,27 @@ agenthud summary --last 7d # last 7 days, ending today
204
213
  agenthud summary --from 2026-05-10 --to 2026-05-16 # explicit range
205
214
  agenthud summary --last 7d -y # skip per-day confirmations
206
215
 
216
+ # Tune what gets sent to the LLM — same option shape as `report`
217
+ agenthud summary --include all # include every activity type
218
+ agenthud summary --detail-limit 200 # truncate long tool outputs
219
+ agenthud summary --with-git # include git commits (default in config)
220
+ # Defaults are CLI flag → `summary:` config → `report:` config → built-in.
221
+
207
222
  # Cheaper model — summarization doesn't need Opus-tier reasoning
208
223
  agenthud summary --date today --model sonnet # ~40% cheaper than Opus
209
224
  agenthud summary --last 7d --model haiku # ~80% cheaper, 200K context
225
+
226
+ # Open the resulting summary in your OS default app (browser, VS Code, etc.)
227
+ agenthud summary --last 7d --open # -o is the short form
228
+
229
+ # Open the index (~/.agenthud/summaries/index.md) instead — a hub
230
+ # listing every daily and range summary, grouped by year/month.
231
+ agenthud summary --open-index # -I is the short form
232
+ agenthud summary -oI # open today + the index
210
233
  ```
211
234
 
235
+ 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.
236
+
212
237
  **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
238
 
214
239
  **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 +265,24 @@ filterPresets:
240
265
  - ["all"]
241
266
  - ["response", "user"]
242
267
  - ["commit"]
268
+
269
+ # Defaults for `agenthud report` (CLI flags still win per-invocation).
270
+ report:
271
+ include: [user, response, bash, edit, thinking]
272
+ detailLimit: 120
273
+ withGit: false
274
+ format: markdown
275
+
276
+ # Defaults for `agenthud summary`. Any field omitted here is inherited
277
+ # from `report` above. `model` is summary-specific.
278
+ summary:
279
+ withGit: true
280
+ detailLimit: 0
281
+ # model: sonnet
243
282
  ```
244
283
 
284
+ `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.
285
+
245
286
  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
287
 
247
288
  ## Files
@@ -254,6 +295,7 @@ App-managed state (hidden items) lives separately in `~/.agenthud/state.yaml` so
254
295
  | `~/.agenthud/summary-range-prompt.md` | LLM prompt template for range `summary --last/--from/--to` |
255
296
  | `~/.agenthud/summaries/YYYY-MM-DD.md` | Cached daily summaries |
256
297
  | `~/.agenthud/summaries/range-FROM_TO.md` | Cached range summaries |
298
+ | `~/.agenthud/summaries/index.md` | Auto-regenerated hub linking every summary; each summary also gets a backlink footer at the top |
257
299
 
258
300
  ## Environment Variables
259
301
 
package/dist/index.js CHANGED
@@ -15,4 +15,4 @@ Error: Node.js ${MIN_NODE_VERSION}+ is required (current: ${process.version})
15
15
  process.exit(1);
16
16
  }
17
17
  if (!process.env.NODE_ENV) process.env.NODE_ENV = "production";
18
- import("./main-PCPOGJO6.js");
18
+ import("./main-CRTF5EHN.js");