ai-agentmanager 1.20.0 → 1.21.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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.21.0 (2026-11-06)
4
+
5
+ - **Map: where agents are in the code.** A **Map** page (or `m`) shows a project's folders as tiles with each agent on the folders it's changing or reading now. Two agents that changed the same file are joined in red; one reading a file another changed is joined with a dashed line, the warning before they collide, and each is spelled out above the map.
6
+ - **Standup.** Every weekday morning (or on demand: **Standup**, or `p`), each agent's news is read aloud in its own voice: what it did, what it's on and what it needs from you, the ones that need you first. It stops on those with their questions beside it: answer by tap, or by voice (read back, sent on "send"). Worded by one short model call; a Slack alert says when it's ready.
7
+
3
8
  ## 1.20.0 (2026-11-06)
4
9
 
5
10
  - **Review comments reach the agent while its pull request is open.** New comments, reviews and line comments on an agent's open pull request are sent to it in one message (waking it if closed), checked every couple of minutes; it makes the changes, pushes and replies on the pull request. Only the repo's owners, members and collaborators (and review bots on the code) count; approvals, resolved threads and the agent's own replies don't. On by default: **Send new review comments** in the Land tab, `agentmgr land set --fix-comments off`, or `"landing": { "fixComments": false }`.
package/README.md CHANGED
@@ -29,8 +29,10 @@ Run one background [Claude Code](https://claude.com/claude-code) agent per inten
29
29
  - **Share for review.** One click writes an **Analysis**, **Design**, **Flow** or **Proposal** document from the agent's work. Copy it as Markdown, download it, or print it to PDF with diagrams.
30
30
  - **Human vs AI.** It splits the open questions about the work into the top 5 that need your judgment and the ones a model can answer from the evidence. It answers those, then a second model double-checks every answer.
31
31
  - **Review changes.** Each agent's diff file by file, line comments sent back to the agent as one message, then **Commit all** and **Push & open PR**, without leaving the page.
32
+ - **Standup.** Each weekday at 9:00 (or whenever you press **Standup**, or `p`), each agent with news since the last one is read aloud in a sentence or two, each in its own voice: what it did, what it's on, what it needs from you. Agents that need you go first and quiet ones are left out. It stops on an agent that needs you, with its questions beside it to answer by tap, or by voice when **Answer by voice** is on (what you say is read back, then sent when you say "send"). The wording comes from one short tool-less model call, plain wording if that fails. A Slack alert says when it's ready (Alerts). Change the time, weekends and wording in the player, or in config.json: `"standup": { "at": "09:00", "weekends": false, "ai": true, "notify": true }`. Speech is your browser's own; voice answers may be sent to your browser's maker to be turned into text.
33
+ - **Map.** A project's folders as tiles sized by their files, with each agent as a badge on the folders it is changing (filled) or reading right now (ring), refreshed every few seconds (**Map** at the top, `m`, or `#map`). A red line joins two agents that changed the same file: they will conflict when merged. A dashed line runs from an agent reading a file to the agent that already changed it, which is the warning before they collide. Each pair is also spelled out above the map. Reading comes from the last half hour of each agent's session; changes from the conflict radar.
32
34
  - **Watch.** Every running agent's session side by side on one page, live (**Watch** at the top, or `#watch`), so you follow them all without clicking from one to the next. Tiles keep a fixed order; one waiting on you gets a red border and is counted at the top. Click a tile and type to answer it there; its name opens the agent. Show running agents, only those waiting on you or only those working, one project's, or a fixed number per row; **Fit** sizes the tiles so all of them (up to 12) are on screen, keeping the newest lines in view. Tiles show each session at its own size and never resize it.
33
- - **Keyboard shortcuts.** Press **?** for the list. `j`/`k` move through the agents, `Enter` opens the terminal, `r` reviews changes, `s` resumes, `Shift+X` closes the session, `e` edits; `n` new agents, `a` Ask Agent, `/` filter, `w` Watch, `1`-`5` the side tabs. Single keys work when you're not typing in a field or a terminal. From inside a terminal, `Ctrl+Shift+↓`/`↑` switch to the next or previous agent's terminal and `Ctrl+Shift+L` leaves it.
35
+ - **Keyboard shortcuts.** Press **?** for the list. `j`/`k` move through the agents, `Enter` opens the terminal, `r` reviews changes, `s` resumes, `Shift+X` closes the session, `e` edits; `n` new agents, `a` Ask Agent, `/` filter, `w` Watch, `m` Map, `p` the standup, `1`-`5` the side tabs. Single keys work when you're not typing in a field or a terminal. From inside a terminal, `Ctrl+Shift+↓`/`↑` switch to the next or previous agent's terminal and `Ctrl+Shift+L` leaves it.
34
36
  - **Landing.** A **Land** tab with every agent's open pull request: ready to merge, needs fixes, behind, waiting. Failing checks and requested changes go back to the agent automatically (a few times at most), and so does every new review comment while the PR is open; **Update**, **Ask to fix** and **Merge** in one click.
35
37
  - **Triggers.** A label on a GitHub issue starts an agent for it, `/agent …` comments on an agent's pull request reach the agent, and a webhook starts agents from Jira automation or CI. No model watches, so no tokens are spent waiting.
36
38
  - **Repo memory.** What one agent learns about a repo (how to run its tests, a gotcha) is recorded in one line and given to every later agent there.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-agentmanager",
3
- "version": "1.20.0",
3
+ "version": "1.21.0",
4
4
  "description": "Run background coding agents (Claude Code, Codex) per intent, and keep track of them from a web UI, your phone or the CLI",
5
5
  "keywords": [
6
6
  "claude",
package/public/app.js CHANGED
@@ -24,6 +24,8 @@ import { initMenu } from '/menu.js';
24
24
  import { initCode } from '/code.js';
25
25
  import { initMachine } from '/machine.js';
26
26
  import { initWatch } from '/watch.js';
27
+ import { initStandup } from '/standup.js';
28
+ import { initCodeMap } from '/codemap.js';
27
29
  import { initKeys } from '/keys.js';
28
30
  import { morph } from '/morph.js';
29
31
 
@@ -47,8 +49,10 @@ const goHash = ticketHash ? decodeURIComponent(location.hash.match(/(?:^#|&)go=(
47
49
  const [hashId, hashView] = loginHash ? [null, null] : (ticketHash ? goHash : location.hash.slice(1)).split('/');
48
50
  // "#watch": the Watch page, not an agent.
49
51
  const watchOnLoad = hashId === 'watch';
52
+ const standupOnLoad = hashId === 'standup';
53
+ const mapOnLoad = hashId === 'map';
50
54
  let watchShown = false;
51
- let selectedId = (watchOnLoad ? null : hashId) || null;
55
+ let selectedId = (watchOnLoad || standupOnLoad || mapOnLoad ? null : hashId) || null;
52
56
  let openTermOnLoad = hashView === 'term' || hashView === 'code' || isShell(hashView) || isBrowser(hashView);
53
57
  let filterText = '';
54
58
  // "Only agents created in the last N days": remembered in this browser.
@@ -180,7 +184,24 @@ const watchUi = initWatch({
180
184
  projectLabel: (a) => a.projectInfo?.name ?? 'Other',
181
185
  openAgent: (id) => (showTab('agents'), select(id), term.open(id)),
182
186
  });
183
- $('#watch-btn').onclick = () => watchUi.show(!watchUi.isOpen());
187
+ $('#watch-btn').onclick = () => (mapUi.isOpen() && mapUi.show(false), watchUi.show(!watchUi.isOpen()));
188
+
189
+ // Map: where each agent is in the code, and who is about to collide.
190
+ const mapUi = initCodeMap({ api, $, esc, agents, toast: (m, ms) => toast(m, ms), openAgent: (id) => (showTab('agents'), select(id)) });
191
+ $('#map-btn').onclick = () => (watchUi.isOpen() && watchUi.show(false), mapUi.show(!mapUi.isOpen()));
192
+
193
+ // The standup: each agent's news read aloud, stopping on the ones that need you.
194
+ const standupUi = initStandup({
195
+ api,
196
+ $,
197
+ esc,
198
+ agents,
199
+ needsFor: (a) => needsFor(a),
200
+ needCard: (it, o) => needCard(it, o),
201
+ onNeed: (e) => onNeed(e),
202
+ toast: (m, ms) => toast(m, ms),
203
+ openAgent: (id) => (showTab('agents'), select(id)),
204
+ });
184
205
  // Keyboard shortcuts (keys.js): the same actions as the buttons.
185
206
  const keysUi = initKeys({ $, esc, run: (act) => shortcut(act) });
186
207
  $('#keys-btn').onclick = () => keysUi.help();
@@ -220,6 +241,8 @@ function shortcut(act) {
220
241
  return $('#filter').select();
221
242
  }
222
243
  if (act === 'watch') return $('#watch-btn') ? $('#watch-btn').click() : false;
244
+ if (act === 'standup') return standupUi.open();
245
+ if (act === 'map') return $('#map-btn').click();
223
246
  if (act.startsWith('tab:')) return showTab(act.slice(4));
224
247
  return false;
225
248
  }
@@ -2172,6 +2195,7 @@ const VIEWS = {
2172
2195
  detail: () => renderDetail(),
2173
2196
  overlay: () => term.syncOverlay(),
2174
2197
  watch: () => watchUi?.render(),
2198
+ standup: () => standupUi?.render(),
2175
2199
  };
2176
2200
  const ALL_VIEWS = Object.keys(VIEWS);
2177
2201
 
@@ -4074,6 +4098,15 @@ function handleEvent(msg) {
4074
4098
  else if (agents.get(selectedId).runtime.running) term.open(selectedId);
4075
4099
  }
4076
4100
  openTermOnLoad = false;
4101
+ if (mapOnLoad && !watchShown) {
4102
+ watchShown = true;
4103
+ mapUi.show(true);
4104
+ }
4105
+ if (standupOnLoad && !watchShown) {
4106
+ watchShown = true;
4107
+ history.replaceState(null, '', '#');
4108
+ standupUi.open();
4109
+ }
4077
4110
  if (watchOnLoad && !watchUi.isOpen() && !watchShown) {
4078
4111
  watchShown = true;
4079
4112
  watchUi.show(true);
@@ -4088,6 +4121,7 @@ function handleEvent(msg) {
4088
4121
  return invalidate([
4089
4122
  'list', 'backlog', 'land', 'inbox', 'race', 'team',
4090
4123
  ...(watchUi.isOpen() ? ['watch'] : []),
4124
+ ...(standupUi.isOpen() ? ['standup'] : []),
4091
4125
  ...(docView?.agentId === id ? ['doc'] : []),
4092
4126
  ...(id === selectedId || msg.agent.forkOf?.agentId === selectedId ? ['detail'] : []),
4093
4127
  ...(id === term.agentId ? ['overlay'] : []),
@@ -4103,6 +4137,9 @@ function handleEvent(msg) {
4103
4137
  teams.set(msg.team.id, msg.team);
4104
4138
  } else if (msg.t === 'team-removed') {
4105
4139
  teams.delete(msg.id);
4140
+ } else if (msg.t === 'standup') {
4141
+ standupUi.set(msg.latest);
4142
+ if (msg.latest?.reason === 'scheduled' && msg.latest.items.length) toast('Standup ready: press Standup (or p) to play it', 8000);
4106
4143
  } else if (msg.t === 'rules') {
4107
4144
  rulesState = msg.rules;
4108
4145
  } else if (msg.t === 'repeats') {
@@ -0,0 +1,209 @@
1
+ // Map: a repository's folders as tiles sized by their files, with each agent as a badge on the
2
+ // folders it is changing (solid) or reading (ring) now. A red line joins two agents that changed
3
+ // the same file; a dashed one runs from an agent reading a file to the agent that changed it.
4
+
5
+ const SAVED = 'agentmgr.mapProject';
6
+ const EVERY_MS = 8000;
7
+
8
+ const hue = (id) => [...String(id)].reduce((h, c) => (h * 31 + c.charCodeAt(0)) % 360, 17);
9
+ const initials = (name) => String(name).split(/[^a-z0-9]+/i).filter(Boolean).slice(0, 2).map((w) => w[0].toUpperCase()).join('') || '?';
10
+
11
+ /** Squarified treemap: items [{ weight }] into the rectangle, as [{ x, y, w, h, item }]. */
12
+ export function squarify(items, x, y, w, h) {
13
+ const total = items.reduce((s, i) => s + i.weight, 0);
14
+ if (!items.length || total <= 0 || w <= 0 || h <= 0) return [];
15
+ const scale = (w * h) / total;
16
+ const out = [];
17
+ let rest = items.map((item) => ({ item, area: item.weight * scale }));
18
+ const worst = (row, side) => {
19
+ const s = row.reduce((a, r) => a + r.area, 0);
20
+ const max = Math.max(...row.map((r) => r.area));
21
+ const min = Math.min(...row.map((r) => r.area));
22
+ return Math.max((side * side * max) / (s * s), (s * s) / (side * side * min));
23
+ };
24
+ while (rest.length) {
25
+ const side = Math.min(w, h);
26
+ let row = [rest[0]];
27
+ let i = 1;
28
+ while (i < rest.length && worst([...row, rest[i]], side) <= worst(row, side)) row.push(rest[i++]);
29
+ rest = rest.slice(i);
30
+ const s = row.reduce((a, r) => a + r.area, 0);
31
+ if (w >= h) {
32
+ const rw = s / h;
33
+ let yy = y;
34
+ for (const r of row) {
35
+ const rh = r.area / rw;
36
+ out.push({ x, y: yy, w: rw, h: rh, item: r.item });
37
+ yy += rh;
38
+ }
39
+ x += rw;
40
+ w -= rw;
41
+ } else {
42
+ const rh = s / w;
43
+ let xx = x;
44
+ for (const r of row) {
45
+ const rw = r.area / rh;
46
+ out.push({ x: xx, y, w: rw, h: rh, item: r.item });
47
+ xx += rw;
48
+ }
49
+ y += rh;
50
+ h -= rh;
51
+ }
52
+ }
53
+ return out;
54
+ }
55
+
56
+ export function initCodeMap({ api, $, esc, agents, openAgent, toast }) {
57
+ const view = $('#map-view');
58
+ let open = false;
59
+ let data = null;
60
+ let timer = null;
61
+ let project = null;
62
+ try {
63
+ project = localStorage.getItem(SAVED) || null;
64
+ } catch {}
65
+
66
+ const nameOf = (id) => data?.map.agents.find((a) => a.id === id)?.name ?? agents.get(id)?.name ?? id;
67
+ const color = (id) => `hsl(${hue(id)} 70% 55%)`;
68
+
69
+ async function load() {
70
+ try {
71
+ data = await api('GET', `/codemap${project ? `?project=${encodeURIComponent(project)}` : ''}`);
72
+ if (data.project && data.project.key !== project) project = data.project.key;
73
+ } catch (e) {
74
+ toast?.(e.message, 5000);
75
+ }
76
+ draw();
77
+ }
78
+
79
+ function sentence(l) {
80
+ const a = `<button class="link" data-map-open="${esc(l.a)}">${esc(nameOf(l.a))}</button>`;
81
+ const b = `<button class="link" data-map-open="${esc(l.b)}">${esc(nameOf(l.b))}</button>`;
82
+ const files = l.files.slice(0, 3).map((f) => `<code>${esc(f)}</code>`).join(', ') + (l.files.length > 3 ? ` and ${l.files.length - 3} more` : '');
83
+ if (l.kind === 'collide') return `<li class="collide">${a} and ${b} both changed ${files}: they will conflict when merged.</li>`;
84
+ if (l.kind === 'heading') return `<li class="heading">${a} is reading ${files}, which ${b} changed: heading for the same code.</li>`;
85
+ return '';
86
+ }
87
+
88
+ function draw() {
89
+ if (!open) return;
90
+ const m = data?.map;
91
+ const projects = data?.projects ?? [];
92
+ $('#map-bar').innerHTML = `
93
+ <b>Map</b>
94
+ ${projects.length ? `<select data-map-set="project" aria-label="Project">${projects.map((p) => `<option value="${esc(p.key)}" ${p.key === data?.project?.key ? 'selected' : ''}>${esc(p.name)} (${p.running} running)</option>`).join('')}</select>` : ''}
95
+ <span class="map-legend"><span class="map-key solid"></span>changing <span class="map-key ring"></span>reading <span class="map-key red"></span>same file changed <span class="map-key dash"></span>reading what another changed</span>
96
+ <span class="spacer"></span>
97
+ <button class="small" data-map="refresh" title="Look again now (it refreshes every few seconds)">↻</button>
98
+ <button class="small" data-map="close" title="Back (Esc)">Close</button>`;
99
+ const warn = (m?.links ?? []).filter((l) => l.kind !== 'near');
100
+ $('#map-warn').innerHTML = warn.length ? `<ul>${warn.map(sentence).join('')}</ul>` : m?.agents.length ? '<p class="hint">No agents are on the same code.</p>' : '';
101
+ const box = $('#map-box');
102
+ if (!m || !m.agents.length) {
103
+ box.innerHTML = `<p class="hint map-empty">${data?.project ? 'No agent in this project is running or has changes yet.' : 'No agents with a repository yet.'}</p>`;
104
+ $('#map-agents').innerHTML = '';
105
+ return;
106
+ }
107
+ // Folders with agents in them get room to show their badges.
108
+ const items = m.modules.map((mod) => ({ ...mod, weight: Math.max(1, mod.files) + (mod.agents.length ? 6 + 4 * mod.agents.length : 0) }));
109
+ const W = box.clientWidth;
110
+ const H = Math.max(320, view.clientHeight - box.offsetTop - $('#map-agents').offsetHeight - 24);
111
+ box.style.height = `${H}px`;
112
+ // Small folders past the first hundred go into one tile.
113
+ const big = items.slice(0, 100);
114
+ const rest = items.slice(100);
115
+ if (rest.length) big.push({ key: `${rest.length} more folders`, files: rest.reduce((s, x) => s + x.files, 0), agents: rest.flatMap((x) => x.agents), weight: rest.reduce((s, x) => s + x.weight, 0), more: true });
116
+ const rects = squarify(big, 0, 0, W, H);
117
+ // Agents in a collision get a red ring, ones heading for one a yellow ring.
118
+ const ring = new Map();
119
+ for (const l of m.links) {
120
+ if (l.kind === 'collide') for (const id of [l.a, l.b]) ring.set(id, 'collide');
121
+ if (l.kind === 'heading' && ring.get(l.a) !== 'collide') ring.set(l.a, 'heading');
122
+ }
123
+ const tiles = rects.map(({ x, y, w, h, item }) => {
124
+ const busy = item.agents.length;
125
+ const badges = item.agents.map((x2) => {
126
+ const a = m.agents.find((z) => z.id === x2.id);
127
+ const cls = [x2.changed ? 'solid' : 'ring', a?.busy ? 'busy' : '', a?.attention ? 'needs' : '', ring.get(x2.id) ?? ''].join(' ');
128
+ return `<span class="map-badge ${cls}" data-badge="${esc(x2.id)}" data-mod="${esc(item.key)}" style="--c:${color(x2.id)}" title="${esc(`${nameOf(x2.id)}: ${x2.changed} changed, ${x2.reading} reading here`)}">${esc(initials(nameOf(x2.id)))}</span>`;
129
+ }).join('');
130
+ return `<div class="map-tile ${busy ? 'active' : ''} ${item.more ? 'more' : ''}" style="left:${x}px;top:${y}px;width:${w}px;height:${h}px" title="${esc(`${item.key}: ${item.files} files`)}">
131
+ ${w > 46 && h > 22 ? `<span class="map-name">${esc(item.key === '.' ? '(top level)' : item.key)}</span>` : ''}
132
+ ${w > 46 && h > 38 ? `<span class="map-count">${item.files}</span>` : ''}
133
+ <span class="map-badges">${badges}</span>
134
+ </div>`;
135
+ }).join('');
136
+ box.innerHTML = `${tiles}<svg class="map-links" width="${W}" height="${H}"></svg>`;
137
+ drawLinks(m.links);
138
+ $('#map-agents').innerHTML = m.agents.map((a) => `<button class="map-agent" data-map-open="${esc(a.id)}" style="--c:${color(a.id)}"><span class="map-badge solid ${a.busy ? 'busy' : ''} ${a.attention ? 'needs' : ''}" style="--c:${color(a.id)}">${esc(initials(a.name))}</span>${esc(a.name)} <span class="hint">${a.changed} changed · ${a.reading} reading</span></button>`).join('');
139
+ }
140
+
141
+ /** Lines between badges: in the folder of the first shared file, else their nearest badges. */
142
+ function drawLinks(links) {
143
+ const box = $('#map-box');
144
+ const svg = box.querySelector('svg');
145
+ const origin = box.getBoundingClientRect();
146
+ const center = (el) => {
147
+ const r = el.getBoundingClientRect();
148
+ return [r.left - origin.left + r.width / 2, r.top - origin.top + r.height / 2];
149
+ };
150
+ const badges = (id) => [...box.querySelectorAll(`[data-badge="${CSS.escape(id)}"]`)];
151
+ const lines = [];
152
+ for (const l of links.filter((x) => x.kind !== 'near')) {
153
+ const A = badges(l.a);
154
+ const B = badges(l.b);
155
+ if (!A.length || !B.length) continue;
156
+ let best = null;
157
+ for (const p of A) for (const q of B) {
158
+ const [x1, y1] = center(p);
159
+ const [x2, y2] = center(q);
160
+ const d = Math.hypot(x2 - x1, y2 - y1) - (p.dataset.mod === q.dataset.mod ? 1e6 : 0);
161
+ if (!best || d < best.d) best = { d, x1, y1, x2, y2 };
162
+ }
163
+ lines.push(`<line class="${l.kind}" x1="${best.x1}" y1="${best.y1}" x2="${best.x2}" y2="${best.y2}"><title>${esc(l.files.join(', '))}</title></line>`);
164
+ }
165
+ svg.innerHTML = lines.join('');
166
+ }
167
+
168
+ function show(on) {
169
+ open = on;
170
+ view.hidden = !on;
171
+ document.body.classList.toggle('mapping', on);
172
+ $('#map-btn')?.classList.toggle('active', on);
173
+ clearInterval(timer);
174
+ if (on) {
175
+ history.replaceState(null, '', '#map');
176
+ load();
177
+ timer = setInterval(() => document.visibilityState === 'visible' && load(), EVERY_MS);
178
+ } else if (location.hash === '#map') history.replaceState(null, '', '#');
179
+ }
180
+
181
+ view.addEventListener('click', (e) => {
182
+ const o = e.target.closest('[data-map-open]');
183
+ if (o) {
184
+ show(false);
185
+ return openAgent(o.dataset.mapOpen);
186
+ }
187
+ const b = e.target.closest('[data-map]');
188
+ if (b?.dataset.map === 'close') return show(false);
189
+ if (b?.dataset.map === 'refresh') return load();
190
+ });
191
+ view.addEventListener('change', (e) => {
192
+ if (e.target.dataset.mapSet !== 'project') return;
193
+ project = e.target.value;
194
+ try {
195
+ localStorage.setItem(SAVED, project);
196
+ } catch {}
197
+ load();
198
+ });
199
+ document.addEventListener('keydown', (e) => {
200
+ if (open && e.key === 'Escape' && !document.querySelector('dialog[open]')) show(false);
201
+ });
202
+ let resizeTimer = null;
203
+ window.addEventListener('resize', () => {
204
+ clearTimeout(resizeTimer);
205
+ resizeTimer = setTimeout(draw, 100);
206
+ });
207
+
208
+ return { show, isOpen: () => open };
209
+ }
package/public/index.html CHANGED
@@ -31,6 +31,8 @@
31
31
  <input id="filter" type="search" placeholder="Filter agents" aria-label="Filter agents" />
32
32
  <button id="assistant-btn" title="An always-on session that finds new work and starts agents for it">Assistant <span id="assistant-dot" class="assistant-dot" hidden></span></button>
33
33
  <button id="spend-btn" title="Results across agents (merge rate, time to PR, cost per merged PR), what they cost, and spending limits">Results <span id="spend-today" class="spend-today"></span></button>
34
+ <button id="standup-btn" title="Today's standup: each agent's news read aloud, and what they need from you">Standup <span id="standup-dot" class="assistant-dot" hidden></span></button>
35
+ <button id="map-btn" title="The codebase map: where each agent is changing and reading code, and who is about to collide">Map</button>
34
36
  <button id="watch-btn" title="Running agents' sessions side by side, live: follow them all without clicking from one to the next">Watch</button>
35
37
  <button id="machine-btn" title="A terminal on this computer (your home folder), from any device you're signed in on">Terminal</button>
36
38
  <button id="ask-btn" title="A general session with no repo or folder, on Claude Code or another engine you have (Codex, Muse Code, …)">Ask Agent</button>
@@ -60,6 +62,12 @@
60
62
  </div>
61
63
  </header>
62
64
 
65
+ <section id="map-view" class="map-view" hidden aria-label="Map: where agents are in the code">
66
+ <div id="map-bar" class="watch-bar"></div>
67
+ <div id="map-warn" class="map-warn"></div>
68
+ <div id="map-box" class="map-box"></div>
69
+ <div id="map-agents" class="map-agents"></div>
70
+ </section>
63
71
  <section id="watch-view" class="watch-view" hidden aria-label="Watch: agents' sessions side by side">
64
72
  <div id="watch-bar" class="watch-bar"></div>
65
73
  <p id="watch-empty" class="hint watch-empty" hidden></p>
@@ -368,6 +376,9 @@
368
376
  </form>
369
377
  </dialog>
370
378
 
379
+ <dialog id="standup-dialog" class="standup-dialog" aria-label="Standup">
380
+ <div id="standup-body"></div>
381
+ </dialog>
371
382
  <dialog id="ask-dialog">
372
383
  <form id="ask-form" method="dialog">
373
384
  <h2>Ask an agent</h2>
@@ -518,6 +529,7 @@
518
529
  <label class="check"><input type="checkbox" name="ev_question" /> asks a question in the inbox</label>
519
530
  <label class="check"><input type="checkbox" name="ev_assistant" /> is started for new work (by the assistant, a GitHub label or a webhook)</label>
520
531
  <label class="check"><input type="checkbox" name="ev_budget" /> nears or reaches its budget, or today's spend reaches the daily limit</label>
532
+ <label class="check"><input type="checkbox" name="ev_standup" /> the daily standup is ready (with a link to play it)</label>
521
533
  <label class="check"><input type="checkbox" name="ev_waiting" /> finished its turn and is idle after <input name="waitingDelaySec" type="number" min="0" class="num" />s</label>
522
534
  <label class="check"><input type="checkbox" name="skipWhenWatching" /> not while I have its terminal open</label>
523
535
  <label class="check"><input type="checkbox" name="includeIntent" /> include the intent text in the message</label>
package/public/keys.js CHANGED
@@ -16,6 +16,8 @@ export const SHORTCUTS = [
16
16
  [['a'], 'Ask Agent (a general session)', 'ask'],
17
17
  [['/'], 'Filter agents', 'filter'],
18
18
  [['w'], 'Watch: agents side by side', 'watch'],
19
+ [['p'], 'Play the standup', 'standup'],
20
+ [['m'], 'Map: where agents are in the code', 'map'],
19
21
  [['1'], 'Agents tab', 'tab:agents'],
20
22
  [['2'], 'Inbox: what needs you', 'tab:inbox'],
21
23
  [['3'], 'Backlog', 'tab:backlog'],
@@ -34,11 +36,11 @@ export const SHORTCUTS = [
34
36
  // A single key, as an event names it, to its action.
35
37
  export const SINGLE = {
36
38
  j: 'next', k: 'prev', Enter: 'terminal', t: 'terminal',
37
- r: 'changes', s: 'start', X: 'stop', e: 'edit', n: 'new', a: 'ask', '/': 'filter', w: 'watch', '?': 'help',
39
+ r: 'changes', s: 'start', X: 'stop', e: 'edit', n: 'new', a: 'ask', '/': 'filter', w: 'watch', p: 'standup', m: 'map', '?': 'help',
38
40
  1: 'tab:agents', 2: 'tab:inbox', 3: 'tab:backlog', 4: 'tab:land', 5: 'tab:built',
39
41
  };
40
42
  // While Watch is open: only what makes sense there.
41
- const ON_WATCH = new Set(['new', 'ask', 'watch', 'help']);
43
+ const ON_WATCH = new Set(['new', 'ask', 'watch', 'standup', 'map', 'help']);
42
44
 
43
45
  /** Typing somewhere: a field, an editor or a terminal (xterm types through a textarea). */
44
46
  const typing = (el) => Boolean(el?.closest?.('input, textarea, select, [contenteditable=""], [contenteditable="true"], .xterm, .cm-editor'));
@@ -77,7 +79,7 @@ export function initKeys({ $, esc, run }) {
77
79
  // An open dialog has the keyboard; ? still closes the shortcuts one.
78
80
  if (document.querySelector('dialog[open]') && !(dialog.open && e.key === '?')) return;
79
81
  const act = SINGLE[e.key];
80
- if (!act || (document.body.classList.contains('watching') && !ON_WATCH.has(act))) return;
82
+ if (!act || (document.body.classList.contains('watching') || document.body.classList.contains('mapping')) && !ON_WATCH.has(act)) return;
81
83
  if (act === 'help') {
82
84
  e.preventDefault();
83
85
  return help();
package/public/speak.js CHANGED
@@ -60,6 +60,7 @@ function playNext() {
60
60
  const part = s.parts[s.i];
61
61
  const u = new SpeechSynthesisUtterance(part.text);
62
62
  u.rate = rate();
63
+ if (part.voice) u.voice = part.voice;
63
64
  u.onstart = () => part.onStart?.();
64
65
  u.onend = () => {
65
66
  if (session !== s || s.paused) return;
@@ -74,7 +75,8 @@ function playNext() {
74
75
  }
75
76
 
76
77
  /**
77
- * Play `parts` (strings, or { text, onStart } to follow along, e.g. highlight a change) under `id`.
78
+ * Play `parts` (strings, or { text, onStart, voice } to follow along, e.g. highlight a change, and
79
+ * to speak in a given voice) under `id`.
78
80
  * `onState(state)` hears 'playing' | 'paused' | 'stopped'.
79
81
  */
80
82
  export function play(id, parts, { onState, onEnd } = {}) {
@@ -83,7 +85,7 @@ export function play(id, parts, { onState, onEnd } = {}) {
83
85
  const list = parts.flatMap((p) => {
84
86
  const text = typeof p === 'string' ? p : p.text;
85
87
  const chunks = pieces(text);
86
- return chunks.map((c, k) => ({ text: c, onStart: k === 0 && typeof p !== 'string' ? p.onStart : null }));
88
+ return chunks.map((c, k) => ({ text: c, onStart: k === 0 && typeof p !== 'string' ? p.onStart : null, voice: typeof p === 'string' ? null : p.voice ?? null }));
87
89
  });
88
90
  if (!list.length) return false;
89
91
  session = { id, parts: list, i: 0, paused: false, onState, onEnd };