agenthud 0.9.0 → 0.9.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 CHANGED
@@ -23,7 +23,7 @@ Run this in a separate terminal while using Claude Code. Press `?` inside the TU
23
23
  AgentHUD reads Claude Code's session files from `~/.claude/projects/` and displays them in a split view:
24
24
 
25
25
  ```
26
- ┌─ Sessions ──────────────────────────────────────────────┐
26
+ ┌─ Projects ──────────────────────────────────────────────┐
27
27
  │ > agenthud ~/WestbrookAI/agenthud │
28
28
  │ #864f [hot] Fix the auth bug in login flow │
29
29
  │ ├─ » code-reviewer │
@@ -41,7 +41,7 @@ AgentHUD reads Claude Code's session files from `~/.claude/projects/` and displa
41
41
  └─────────────────────────────────────────────────────────┘
42
42
  ```
43
43
 
44
- **Session tree (top pane)**
44
+ **Project tree (top pane)**
45
45
  - Sessions grouped under their project (project name + path at the top).
46
46
  - Session rows show short ID + first user prompt (the session's "topic").
47
47
  - Non-interactive sessions (from `claude -p`, SDK, `agenthud summary`) appear in parens and dimmed.
@@ -54,6 +54,19 @@ AgentHUD reads Claude Code's session files from `~/.claude/projects/` and displa
54
54
  - Press `f` to cycle through filter presets (configurable).
55
55
  - Press `↵` on any row to open a scrollable detail view; on a commit row this shows `git show --stat`.
56
56
 
57
+ ## Session status
58
+
59
+ Each session row carries a colored badge derived from when its JSONL file was last touched:
60
+
61
+ | Badge | Color | Meaning |
62
+ |-------|-------|---------|
63
+ | `[hot]` | green | Updated in the last 30 minutes — actively running |
64
+ | `[warm]` | yellow | Updated in the last hour |
65
+ | `[cool]` | cyan | Updated earlier today |
66
+ | `[cold]` | gray | Last updated yesterday or earlier — collapsed under `... N cold projects` at the bottom |
67
+
68
+ Sub-agents use the same scheme. Projects inherit the hottest status of their sessions; a project is treated as "cold" only when all its sessions are cold.
69
+
57
70
  ## Activity types
58
71
 
59
72
  | Icon | Type | Description |
@@ -73,7 +86,7 @@ AgentHUD reads Claude Code's session files from `~/.claude/projects/` and displa
73
86
 
74
87
  Full reference is also available inside the app — press `?`.
75
88
 
76
- ### Session tree focus
89
+ ### Project tree focus
77
90
 
78
91
  | Key | Action |
79
92
  |-----|--------|
@@ -101,8 +114,7 @@ Full reference is also available inside the app — press `?`.
101
114
  | `G` | Jump to oldest |
102
115
  | `↵` | Open detail view |
103
116
  | `f` | Cycle filter preset |
104
- | `s` | Save log to `~/.agenthud/logs/` |
105
- | `Tab` | Switch focus to session tree |
117
+ | `Tab` | Switch focus to project tree |
106
118
  | `?` | Help |
107
119
  | `q` | Quit |
108
120
 
@@ -153,18 +165,31 @@ Output:
153
165
 
154
166
  ## Summary
155
167
 
156
- Generate an LLM-based summary of a day's activity using the `claude` CLI:
168
+ Generate an LLM-based summary of one day or a date range using the `claude` CLI:
157
169
 
158
170
  ```bash
171
+ # Single day
159
172
  agenthud summary # today (always regenerated)
173
+ agenthud summary --date yesterday # natural-language date
160
174
  agenthud summary --date 2026-05-14 # past date (cached on second run)
161
175
  agenthud summary --date 2026-05-14 --force # ignore cache
162
176
  agenthud summary --prompt "Only commits" # override prompt
177
+
178
+ # Date range — daily summaries are re-summarized into a meta-summary
179
+ agenthud summary --last 7d # last 7 days, ending today
180
+ agenthud summary --from 2026-05-10 --to 2026-05-16 # explicit range
181
+ agenthud summary --last 7d -y # skip per-day confirmations
163
182
  ```
164
183
 
165
- Results are saved to `~/.agenthud/summaries/YYYY-MM-DD.md`. Past dates are cached and returned instantly on re-run. Today is always regenerated (activity still growing).
184
+ **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).
166
185
 
167
- **Prompt customization:** The summary uses `~/.agenthud/summary-prompt.md`, auto-created from a built-in template on first run. Edit it freely or override per-call with `--prompt`.
186
+ **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.
187
+
188
+ Each missing daily prompts for confirmation just before generation, so you see concrete context (session/activity/commit counts and report size) before deciding. Pass `-y` / `--yes` to skip all prompts. Press Enter to accept the default (`[Y/n]`).
189
+
190
+ **Prompt customization:** The daily template lives at `~/.agenthud/summary-prompt.md` and the range template at `~/.agenthud/summary-range-prompt.md`. Both are auto-created from built-in templates on first run. Edit them freely.
191
+
192
+ **`--date` formats:** `YYYY-MM-DD`, `today`, `yesterday`, or `-Nd` (N days ago).
168
193
 
169
194
  **Requires:** [`@anthropic-ai/claude-code`](https://www.npmjs.com/package/@anthropic-ai/claude-code) installed and authenticated.
170
195
 
@@ -176,9 +201,6 @@ Results are saved to `~/.agenthud/summaries/YYYY-MM-DD.md`. Past dates are cache
176
201
  # How often to poll for activity updates (Linux fallback when fs.watch isn't used)
177
202
  refreshInterval: 2s
178
203
 
179
- # Where 's' key saves activity logs
180
- logDir: ~/.agenthud/logs
181
-
182
204
  # Activity filter presets (cycle with 'f' key in viewer)
183
205
  # Each list is one preset; [] means "all". First preset is the default.
184
206
  filterPresets:
@@ -195,9 +217,10 @@ App-managed state (hidden items) lives separately in `~/.agenthud/state.yaml` so
195
217
  |------|---------|
196
218
  | `~/.agenthud/config.yaml` | User settings (edit freely) |
197
219
  | `~/.agenthud/state.yaml` | Hidden projects/sessions/sub-agents (app-managed) |
198
- | `~/.agenthud/summary-prompt.md` | LLM prompt template for `summary` |
199
- | `~/.agenthud/summaries/` | Cached daily summaries |
200
- | `~/.agenthud/logs/` | Saved activity logs (`s` key) |
220
+ | `~/.agenthud/summary-prompt.md` | LLM prompt template for daily `summary` |
221
+ | `~/.agenthud/summary-range-prompt.md` | LLM prompt template for range `summary --last/--from/--to` |
222
+ | `~/.agenthud/summaries/YYYY-MM-DD.md` | Cached daily summaries |
223
+ | `~/.agenthud/summaries/range-FROM_TO.md` | Cached range summaries |
201
224
 
202
225
  ## Environment Variables
203
226
 
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-NHQJ23YJ.js");
18
+ import("./main-6SGKXL7E.js");