ai-agentmanager 1.43.0 → 1.46.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,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.46.0 (2026-11-13)
4
+
5
+ - **Debug.** **🐞 Debug** in an agent's detail (or the **Debug** tab of the split) puts the agent's session on the left and a debug pane on the right. Say what goes wrong (a failure, E2E instability at max scale, slowness under load) and the agent investigates in its own session: it reads the code and logs, reproduces and measures where it can, and changes no code yet.
6
+ - **The report.** Drawn beside the session as the agent writes it: animated diagrams of the code path and the data flow, with where it breaks outlined red and what is only suspected dashed amber; the order of events for timing and load problems; findings with evidence, marked confirmed or suspected; the likely causes; and recommended fixes with how to verify each.
7
+ - **Follow-ups and fixes.** **Ask** continues the investigation and brings the report up to date. **Apply fixes** has the agent make the fixes you name (or the ones it recommends), verify each and record the result before and after. From the terminal: `agentmgr debug <agent> "<what goes wrong>"`, and `--fix`.
8
+
9
+ ## 1.45.0 (2026-11-13)
10
+
11
+ - **AI News.** **AI News** in the top bar (or `l`, `#news`, `agentmgr news`) lists what the frontier labs released in the last 30 days, newest first and grouped by day. Each entry has its lab, a summary of a sentence or two, a link to the release and the links from the note. Filter by lab or by words; what arrived since you last looked is marked *new* and counted on the button.
12
+ - **Where it comes from.** The release notes of the Claude Platform, Claude Code, the OpenAI API and the Gemini API, read every 6 hours, and a web search once a day for the other top labs (xAI, Meta, Mistral and the rest). **Refresh** and **Search top labs** look now. Add release notes of your own with `"news": { "custom": [...] }` in config.json.
13
+ - **Model calls, on your Claude plan.** One tool-less call per 25 new entries for the summaries (each entry once), and one Claude Code call a day for the web search, allowed only to search and read the web. What the search finds is as reliable as a web search: check the link. Turn either off with `"news": { "summaries": false, "search": false }`.
14
+
15
+ ## 1.44.0 (2026-11-12)
16
+
17
+ - **Whose session is this?** Expanded, in full screen and on a phone, the terminal bar shows the agent's name on the left, on every tab (Claude, Code, Shell, Browser). It follows a rename, and its tooltip has the agent's task.
18
+ - **Due in Actions.** A **Due** tab lists every action with a due date that isn't done or removed, soonest first with overdue ones at the top; ones without a fixed date ("next sprint") come last. Due dates read "overdue 3 days", "due tomorrow", "due Friday" (the tooltip has what was said), overdue ones are red, and the tab is outlined red when something is overdue. `agentmgr actions --due` prints the same list.
19
+ - **Due dates are read from when they were asked.** "By Friday" asked last week is that Friday, now overdue, not the next one; Actions and Today agree.
20
+ - **Overlaps in a panel of their own.** An agent's overlaps with other agents are behind **⚔ Overlaps** (with the count) in its detail, next to Overview and Questions, instead of taking room on the page. The agent list's ⚔ marker and the Inbox are unchanged.
21
+
3
22
  ## 1.43.0 (2026-11-11)
4
23
 
5
24
  - **An MCP session of its own.** Each folder (your home folder or an agent's workspace) gets one Claude Code process for MCP, separate from any agent's session. Listing servers, signing in, reconnecting and calling a tool make no model call and don't interrupt an agent. It closes after 15 minutes unused; **Refresh all** starts a new one.
package/README.md CHANGED
@@ -27,6 +27,8 @@ Run one background [Claude Code](https://claude.com/claude-code) agent per inten
27
27
  - **Slack alerts.** A message in your channel when an agent needs input, finishes a backlog item, or fails.
28
28
  - **Priority.** Mark agents P0–P3. P0 and P1 are highlighted, and lists sort by priority.
29
29
  - **Share for review.** One click writes an **Analysis**, **Design**, **Flow** or **Proposal** document from the agent's work, a human time **Estimate** for planning, or the change's **Documentation** with an OpenAPI spec of any API changes. Copy it as Markdown, download it, or print it to PDF with diagrams.
30
+ - **Debug.** Say what to debug (a failure, E2E instability at max scale, slowness under load) in the **Debug** tab beside an agent's session. The agent investigates there and writes a report next to it: animated diagrams of the code path and the data flow with where it breaks, findings with evidence, likely causes and recommended fixes. It changes no code until you press **Apply fixes**.
31
+ - **AI News.** The frontier labs' latest releases in one list, newest first: Claude Platform, Claude Code, the OpenAI API and the Gemini API from their release notes, and the other top labs from a daily web search. Each is summarized in a sentence or two, with its links.
30
32
  - **MCP servers and tools.** See every MCP server Claude Code has in a folder (yours, the project's, claude.ai connectors and plugins) with its tools, sign in to the ones that need it, and run any tool directly, through Claude Code, or in an agent's session.
31
33
  - **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.
32
34
  - **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.
@@ -181,6 +183,8 @@ agentmgr explain <agent> # full briefing: ask, status, plan
181
183
  agentmgr remote on | off | status | rotate # phone / remote access (see below)
182
184
  agentmgr backlog add "ask" -r <repo> [-p 1] # queue work; also: ls, start, accept, reopen, move, limit, pause
183
185
  agentmgr notify slack --webhook <url> # Slack alerts; also: test, status, on, off, event <name> on|off
186
+ agentmgr debug <agent> "what goes wrong" # debug with an agent; no question prints its report; --fix applies the fixes
187
+ agentmgr news # the frontier labs' latest releases, summarized (--refresh, --lab, --days)
184
188
  agentmgr inbox # prompts, questions, stuck agents and overlaps waiting on you
185
189
  agentmgr answer <agent> <question-id> "…" # answer a question from the inbox
186
190
  agentmgr tell <agent> "…" # send a message into the session (when it's idle)
@@ -642,7 +646,7 @@ For each agent with its own branch, AI Agent Manager works out which files and l
642
646
  - **same lines**: both edit the same region, within a few lines (likely a merge conflict). Only judged when both branched from the same commit.
643
647
  - **same file**: both edit the file, in different places.
644
648
 
645
- The suggested merge order puts an agent whose PR is merged or open first; otherwise the smaller change lands first, so the other has less to rebase. **Tell** sends an agent a short note naming the other agent, the files and the order. Attempts in one race, and a fork and its source, are expected to overlap, so they aren't flagged.
649
+ The suggested merge order puts an agent whose PR is merged or open first; otherwise the smaller change lands first, so the other has less to rebase. An agent's overlaps are behind **⚔ Overlaps** in its detail (with how many), in a panel of their own; the Inbox lists each on the agent that should rebase. **Tell** sends an agent a short note naming the other agent, the files and the order. Attempts in one race, and a fork and its source, are expected to overlap, so they aren't flagged.
646
650
 
647
651
  ## Stuck detection
648
652
 
@@ -1145,6 +1149,53 @@ Usage comes from the session transcripts and is refreshed every few seconds whil
1145
1149
 
1146
1150
  `agentmgr mcp run <agent|home> <server> <tool> [arguments or request]` does the first two, and `--session` the third. A destructive tool needs a second click. Plugins can refuse runs outside an agent's session with the `mcp.run` policy.
1147
1151
 
1152
+ ## Debug
1153
+
1154
+ **🐞 Debug** in an agent's detail (or the **Debug** tab of the split, **◫ Split** in the terminal bar) puts the agent's session on the left and the debug pane on the right. Type what is going wrong, for example *E2E tests fail at max scale after about 20 minutes* or *p99 latency triples under load*, and press **Debug** (or Enter).
1155
+
1156
+ The agent investigates in its own session, with everything it already knows about the work: it reads the code on the path, the logs and the tests, reproduces the problem where it can (the failing test, a small load, a script) and measures. It keeps a report, drawn in the pane as it grows:
1157
+
1158
+ | Section | What it has |
1159
+ |---|---|
1160
+ | Summary | What goes wrong, the most likely cause, and how sure it is |
1161
+ | Symptoms | What is seen and when (scale, load, timing), and how to reproduce it |
1162
+ | Code path | An animated flowchart of the path the failing request, job or test takes through the real files and functions; where it breaks is outlined red, what is only suspected dashed amber |
1163
+ | Data flow | An animated flowchart or sequence diagram of the data on that path: where it grows, waits, is dropped or goes wrong |
1164
+ | Interleaving | For timing, concurrency and load problems: the order of events that breaks |
1165
+ | Findings | Each with its evidence (file and line, a log line, a metric, a command and its output), marked confirmed or suspected |
1166
+ | Root cause | The causes, most likely first, with a confidence and what would confirm each |
1167
+ | Recommended fixes | Each with where, the effort, the risk and how to verify it |
1168
+ | Next checks | What to measure next, and what it needs from you |
1169
+
1170
+ - **Follow-ups.** Type what you know or what to look at next and press **Ask**: the investigation continues and the report is brought up to date. If the agent needs something only you have (the scale it fails at, logs), it asks in its session on the left.
1171
+ - **Apply fixes.** The agent changes no repository code while it investigates. **Apply fixes** asks it to make the fixes (name them in the box, like *1 and 3*, or leave it empty for the ones it recommends), verify each the way the report says, and add a **Fixes applied** section with the result before and after.
1172
+ - **How it runs.** Your question is typed into the agent's session like any message: when it is idle, resuming it if it was closed. It uses the agent's own engine, model and permissions; no other model call is made. The report is `DEBUG.md` next to the agent's brief, outside the repository.
1173
+
1174
+ `agentmgr debug <agent> "<what goes wrong>"` asks from the terminal, `agentmgr debug <agent>` prints the report, and `--fix ["1 and 3"]` applies fixes.
1175
+
1176
+ ## AI News
1177
+
1178
+ **AI News** in the top bar (or `l`, `#news`, or `agentmgr news`) lists what the frontier labs released in the last 30 days, newest first and grouped by day. Each entry has its lab, a summary of a sentence or two, a link to the release and the links from the note. Filter by lab or by words. What arrived since you last looked is marked *new* and counted on the button.
1179
+
1180
+ Where it comes from:
1181
+
1182
+ | Source | Read from |
1183
+ |---|---|
1184
+ | Claude Platform (Anthropic) | [platform.claude.com release notes](https://platform.claude.com/docs/en/release-notes/overview) |
1185
+ | Claude Code (Anthropic) | its [GitHub releases](https://github.com/anthropics/claude-code/releases), one entry per version |
1186
+ | OpenAI API | [developers.openai.com/changelog](https://developers.openai.com/changelog) |
1187
+ | Gemini API (Google) | [ai.google.dev release notes](https://ai.google.dev/gemini-api/docs/changelog) |
1188
+ | Top 10 labs | a web search once a day, for labs without release notes read here (xAI, Meta, Mistral and the rest) |
1189
+
1190
+ The daemon reads the release notes every 6 hours; **Refresh** reads them now, and **Search top labs** also searches now. Model calls, on your own Claude plan:
1191
+
1192
+ - **Summaries:** one tool-less call per 25 new entries, each entry summarized once. Until then an entry shows the start of its own text.
1193
+ - **Web search:** one Claude Code call a day that may use only web search and web fetch, with no MCP servers and none of its other tools. What it finds is as reliable as a web search: check the link.
1194
+
1195
+ Only public pages are read, and nothing is sent anywhere. A source whose page can't be read is marked ⚠ with the reason, and the others still show.
1196
+
1197
+ In config.json: `"news": { "enabled": true, "sources": ["claude-platform", "claude-code", "openai", "gemini"], "search": true, "summaries": true, "refreshHours": 6, "searchHours": 24, "days": 30 }`. Add release notes of your own, in Markdown with a dated heading per day and a bullet per change, with `"custom": [{ "id": "mistral", "lab": "Mistral AI", "label": "Mistral API", "url": "https://…/changelog.md" }]`.
1198
+
1148
1199
  ## Configuration
1149
1200
 
1150
1201
  State lives in `~/.agentmanager/` (`state.json`, `daemon.log`, `repos/` for shared clones, `workspaces/` for worktrees). Set `AGENTMGR_HOME` or `AGENTMGR_PORT` to change the location or port. Optional `~/.agentmanager/config.json`:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-agentmanager",
3
- "version": "1.43.0",
3
+ "version": "1.46.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/actions.js CHANGED
@@ -10,6 +10,7 @@ const SAVED = 'agentmgr.actionsFilter';
10
10
  const PROJECT = 'agentmgr.actionsProject';
11
11
  const FILTERS = [
12
12
  ['open', 'Open'],
13
+ ['due', 'Due'],
13
14
  ['assigned', 'Assigned'],
14
15
  ['questions', 'Questions'],
15
16
  ['skipped', 'Skipped'],
@@ -27,6 +28,11 @@ const STATES = [
27
28
  ['remove', 'Remove', 'Not mine, or not needed: off the list (under Removed)'],
28
29
  ];
29
30
  const ICON = { slack: '💬', gemini: '📝', other: '•' };
31
+ // Still yours to handle: what the Due list shows (done and removed ones are off it).
32
+ const PENDING = new Set(['open', 'assigned', 'skipped', 'snoozed']);
33
+ const late = (r) => Boolean(r.dueAt) && /^overdue/.test(r.dueWords ?? '');
34
+ // Soonest first, overdue at the top; a due date that can't be told ("next sprint") after the dated ones.
35
+ const byDue = (x, y) => (x.dueAt ? 0 : 1) - (y.dueAt ? 0 : 1) || String(x.dueAt ?? '').localeCompare(String(y.dueAt ?? '')) || String(y.when).localeCompare(String(x.when));
30
36
 
31
37
  export function initActions({ api, $, esc, ago, toast, openAgent, projects = () => [] }) {
32
38
  let editing = null; // the question whose answer is being edited
@@ -73,7 +79,7 @@ export function initActions({ api, $, esc, ago, toast, openAgent, projects = ()
73
79
  function row(r) {
74
80
  const opts = STATES.map(([v, label, title]) => `<option value="${v}" title="${esc(title)}" ${r.status === v ? 'selected' : ''}>${label}</option>`).join('');
75
81
  const where = r.link ? `<a href="${esc(r.link)}" target="_blank" rel="noopener" title="Open where it was asked">${esc(r.sourceLabel)} ↗</a>` : esc(r.sourceLabel);
76
- const meta = [`${ICON[r.source] ?? '•'} ${where}`, r.from && `from <b>${esc(r.from)}</b>`, r.due && `<span class="action-due">due ${esc(r.due)}</span>`, `<span title="${esc(new Date(r.when).toLocaleString())}">${esc(ago(r.when))}</span>`].filter(Boolean).join(' · ');
82
+ const meta = [`${ICON[r.source] ?? '•'} ${where}`, r.from && `from <b>${esc(r.from)}</b>`, r.due && `<span class="action-due${late(r) ? ' late' : ''}" title="${esc(`Said: ${r.due}${r.dueAt ? ` (${new Date(r.dueAt).toLocaleDateString([], { weekday: 'short', month: 'short', day: 'numeric' })})` : ''}`)}">${esc(r.dueWords ?? `due ${r.due}`)}</span>`, `<span title="${esc(new Date(r.when).toLocaleString())}">${esc(ago(r.when))}</span>`].filter(Boolean).join(' · ');
77
83
  const agent = r.agent ? `<button class="link" data-act-open="${esc(r.agent.id)}" title="Open the agent doing it">${esc(r.agent.name)}</button>` : '';
78
84
  const talk = r.discussion
79
85
  ? `<button class="small" data-act-open="${esc(r.discussion.id)}" title="Open the conversation about it">💬 Open talk</button>`
@@ -91,16 +97,18 @@ export function initActions({ api, $, esc, ago, toast, openAgent, projects = ()
91
97
  body.innerHTML = '<p class="hint">Loading…</p>';
92
98
  return;
93
99
  }
94
- const inGroup = (r, g) => (g === 'all' ? r.group !== 'removed' : g === 'questions' ? r.kind === 'question' && r.group === 'open' : r.group === g);
100
+ const inGroup = (r, g) => (g === 'all' ? r.group !== 'removed' : g === 'questions' ? r.kind === 'question' && r.group === 'open' : g === 'due' ? Boolean(r.due) && PENDING.has(r.group) : r.group === g);
95
101
  const count = (g) => data.rows.filter((r) => inGroup(r, g)).length;
96
102
  const rows = data.rows.filter((r) => inGroup(r, filter));
103
+ if (filter === 'due') rows.sort(byDue);
104
+ const overdue = data.rows.filter((r) => inGroup(r, 'due') && late(r)).length;
97
105
  const f = data.features ?? {};
98
106
  const from = [f.slack && 'Slack', f.gemini && 'meeting notes (Notes by Gemini)'].filter(Boolean).join(' and ');
99
107
  const list = projects();
100
108
  body.innerHTML = `
101
109
  <div class="issues-head">
102
110
  <h2>Actions</h2>
103
- <div class="chips" role="tablist">${FILTERS.map(([k, label]) => `<button class="chip ${k === filter ? 'active' : ''}" role="tab" aria-selected="${k === filter}" data-act-filter="${k}">${label} <span class="count">${count(k)}</span></button>`).join('')}</div>
111
+ <div class="chips" role="tablist">${FILTERS.map(([k, label]) => `<button class="chip ${k === filter ? 'active' : ''}${k === 'due' && overdue ? ' late' : ''}" role="tab" aria-selected="${k === filter}" data-act-filter="${k}"${k === 'due' ? ` title="With a due date and not done yet, soonest first${overdue ? `: ${overdue} overdue` : ''}"` : ''}>${label} <span class="count">${count(k)}</span></button>`).join('')}</div>
104
112
  <span class="spacer"></span>
105
113
  <label class="hint" title="Where an agent works when you assign an action to one">Agents in <select data-act-project class="small">
106
114
  <option value="">pick a project</option>
@@ -122,7 +130,9 @@ export function initActions({ api, $, esc, ago, toast, openAgent, projects = ()
122
130
  ? `Nothing yet. With the Assistant running and "Things asked of me in Slack and in meeting notes" on, what's asked of you shows up here after its next check (or: agentmgr actions add).`
123
131
  : filter === 'open'
124
132
  ? 'Nothing left to decide.'
125
- : 'None here.',
133
+ : filter === 'due'
134
+ ? 'Nothing with a due date is waiting on you.'
135
+ : 'None here.',
126
136
  )}</p>`}`;
127
137
  keys.redraw();
128
138
  }
package/public/app.js CHANGED
@@ -38,6 +38,7 @@ import { initReviews } from '/reviews.js';
38
38
  import { initBugHunt } from '/bughunt.js';
39
39
  import { drawDiagram } from '/diagram.js';
40
40
  import { initValue } from '/value.js';
41
+ import { initNews } from '/news.js';
41
42
  import { initMcp } from '/mcp.js';
42
43
  import { initCodeMap } from '/codemap.js';
43
44
  import { initKeys } from '/keys.js';
@@ -66,11 +67,12 @@ const watchOnLoad = hashId === 'watch';
66
67
  const standupOnLoad = hashId === 'standup';
67
68
  const mapOnLoad = hashId === 'map';
68
69
  const valueOnLoad = hashId === 'value';
70
+ const newsOnLoad = hashId === 'news';
69
71
  const reviewsOnLoad = hashId === 'reviews';
70
72
  // "#mcp" or "#mcp/<agent>": the MCP window on its own.
71
73
  const mcpOnLoad = hashId === 'mcp';
72
74
  let watchShown = false;
73
- let selectedId = (watchOnLoad || standupOnLoad || mapOnLoad || valueOnLoad || reviewsOnLoad || mcpOnLoad ? null : hashId) || null;
75
+ let selectedId = (watchOnLoad || standupOnLoad || mapOnLoad || valueOnLoad || newsOnLoad || reviewsOnLoad || mcpOnLoad ? null : hashId) || null;
74
76
  let openTermOnLoad = hashView === 'term' || hashView === 'code' || isShell(hashView) || isBrowser(hashView);
75
77
  let filterText = '';
76
78
  // "Only agents created in the last N days": remembered in this browser.
@@ -299,6 +301,9 @@ $('#bugs-btn').onclick = () => bugsUi.open();
299
301
  // Value: what the delivered work is worth, for you and for management.
300
302
  const valueUi = initValue({ api, $, esc, toast: (m, ms) => toast(m, ms), openAgent: (id) => (showTab('agents'), select(id)) });
301
303
  $('#value-btn').onclick = () => valueUi.open();
304
+ // AI News: the frontier labs' latest releases, summarized.
305
+ const newsUi = initNews({ api, $, esc, ago, toast: (m, ms) => toast(m, ms) });
306
+ $('#news-btn').onclick = () => newsUi.open();
302
307
  // MCP: the MCP servers and tools Claude Code has in a folder, and running one.
303
308
  const mcpUi = initMcp({ api, $, esc, ago, md: (t) => md(t), toast: (m, ms) => toast(m, ms), agents: () => [...agents.values()] });
304
309
  $('#mcp-btn').onclick = () => mcpUi.open(selectedId && agents.get(selectedId)?.workdir ? selectedId : null);
@@ -352,6 +357,7 @@ function shortcut(act) {
352
357
  if (act === 'reviews') return reviewsUi.open();
353
358
  if (act === 'bugs') return bugsUi.open();
354
359
  if (act === 'value') return valueUi.open();
360
+ if (act === 'news') return newsUi.open();
355
361
  if (act === 'today') return todayUi.open();
356
362
  if (act.startsWith('tab:')) return showTab(act.slice(4));
357
363
  return false;
@@ -1810,10 +1816,11 @@ for (const root of [$('#inbox-view'), $('#detail-body'), $('#needs-body')]) {
1810
1816
  root.addEventListener('submit', onNeedSubmit);
1811
1817
  }
1812
1818
 
1813
- // ------------------------------------------------------------------ overview and questions panels
1819
+ // ------------------------------------------------------------------ overview, questions and overlaps panels
1814
1820
 
1815
1821
  const openQuestions = (a) => (a.questions ?? []).filter((q) => !q.answer).length;
1816
- let needsOpen = null; // { id, kind: 'overview' | 'questions' }
1822
+ let needsOpen = null; // { id, kind: 'overview' | 'questions' | 'overlaps' }
1823
+ const NEEDS_TITLE = { overview: 'Overview', questions: 'Questions', overlaps: 'Overlaps' };
1817
1824
 
1818
1825
  function openNeeds(id, kind) {
1819
1826
  needsOpen = { id, kind };
@@ -1826,10 +1833,14 @@ function renderNeeds() {
1826
1833
  if (!needsOpen) return;
1827
1834
  const a = agents.get(needsOpen.id);
1828
1835
  if (!a) return $('#needs-dialog').close();
1829
- $('#needs-title').textContent = `${needsOpen.kind === 'overview' ? 'Overview' : 'Questions'}: ${a.name}`;
1836
+ $('#needs-title').textContent = `${NEEDS_TITLE[needsOpen.kind]}: ${a.name}`;
1830
1837
  let html;
1831
1838
  if (needsOpen.kind === 'overview') {
1832
1839
  html = a.aiReview?.verdict ? needCard({ a, kind: 'review', key: `review:${a.id}` }, { inDetail: true }) : '<p class="hint">No AI review yet.</p>';
1840
+ } else if (needsOpen.kind === 'overlaps') {
1841
+ // Every overlap, also the ones where the other agent is the one to rebase.
1842
+ const items = needsFor(a, { both: true }).filter((it) => it.kind === 'conflict');
1843
+ html = items.length ? items.map((it) => needCard(it, { inDetail: true })).join('') : '<p class="hint">No overlaps with other agents now.</p>';
1833
1844
  } else {
1834
1845
  const open = (a.questions ?? []).filter((q) => !q.answer);
1835
1846
  const answered = (a.questions ?? []).filter((q) => q.answer);
@@ -2294,6 +2305,8 @@ function renderDetail() {
2294
2305
  ${noRepo(a) ? '' : `<button data-act="changes" ${a.workdir && a.status !== 'preparing' ? '' : 'disabled'} title="Read its changes, comment on lines for the agent, commit and open a pull request">Review changes${a.git?.dirtyFiles ? ` <span class="count">${a.git.dirtyFiles}</span>` : ''}</button>`}
2295
2306
  ${a.aiReview?.verdict ? `<button data-act="overview" title="The AI review: what's done, what's missing, the risks">Overview${a.aiReview.seen ? '' : ' <span class="count">new</span>'}</button>` : ''}
2296
2307
  ${a.questions?.length ? `<button data-act="questions" title="What the agent asked you, and your answers">Questions${openQuestions(a) ? ` <span class="count">${openQuestions(a)}</span>` : ''}</button>` : ''}
2308
+ ${a.conflicts?.length ? `<button data-act="overlaps" title="Other agents changing the same files: which, who should merge first, and what to do">⚔ Overlaps <span class="count">${a.conflicts.length}</span></button>` : ''}
2309
+ <button data-act="debug" class="desk-only" ${a.workdir && a.status !== 'preparing' ? '' : 'disabled'} title="Debug with this agent: say what to debug (a failure, instability at scale, slowness under load). It investigates in its session and writes a report beside it: animated diagrams of the code path and data flow, findings and recommended fixes">🐞 Debug${a.specDocs?.debug ? ' <span class="count">report</span>' : ''}</button>
2297
2310
  <button data-act="mcp" ${a.workdir && a.status !== 'preparing' ? '' : 'disabled'} title="The MCP servers and tools Claude Code has in this agent's folder; run one in its session or once in the workspace">MCP tools</button>
2298
2311
  <button data-act="fork" ${a.workdir && a.git?.branch ? '' : 'disabled'} title="A new agent with this one's code and conversation, in its own worktree, to try another approach">Fork</button>
2299
2312
  <button data-act="edit" title="Change its name, request, project, priority, permission mode or model">Edit</button>
@@ -2338,8 +2351,8 @@ function renderDetail() {
2338
2351
  ${a.builds ? builtUi.panel(a) : ''}
2339
2352
  ${a.forkOf ? `<div class="bl-banner">⑂ Forked from <a href="#${a.forkOf.agentId}" data-goto="${a.forkOf.agentId}">${esc(a.forkOf.name)}</a>${a.forkOf.checkpoint ? ` at checkpoint ${a.forkOf.checkpoint}` : ''} ${ago(a.forkOf.at)}</div>` : ''}
2340
2353
  ${(() => {
2341
- // The AI review and the questions have their own panels (Overview, Questions).
2342
- const items = needsFor(a, { both: true }).filter((it) => it.kind !== 'review' && it.kind !== 'question');
2354
+ // The AI review, the questions and the overlaps have their own panels (Overview, Questions, Overlaps).
2355
+ const items = needsFor(a, { both: true }).filter((it) => !['review', 'question', 'conflict'].includes(it.kind));
2343
2356
  return items.length ? `<div class="needs">${items.map((it) => needCard(it, { inDetail: true })).join('')}</div>` : '';
2344
2357
  })()}
2345
2358
  ${a.outbox ? `<div class="hint outbox-note">✉ ${a.outbox} message${a.outbox > 1 ? 's' : ''} waiting to be typed into the session when the agent is idle</div>` : ''}
@@ -2662,6 +2675,8 @@ const term = {
2662
2675
  renderTabs() {
2663
2676
  renderSignIn();
2664
2677
  const a = this.agentId && agents.get(this.agentId);
2678
+ // Whose session this is, for when the detail above is out of view (expanded, full screen, phone).
2679
+ Object.assign($('#term-agent'), { textContent: a?.name ?? '', title: a ? `${a.name}${a.intent && a.intent !== a.name ? `\n${a.intent}` : ''}` : '' });
2665
2680
  // The agent's own session tab is named after its engine (Codex, Muse Code, …).
2666
2681
  $('.term-tab[data-kind="claude"]').textContent = ENGINE_LABEL[a?.engine] ?? 'Claude';
2667
2682
  sidePane?.follow(this.agentId);
@@ -3888,7 +3903,11 @@ $('#detail-body').addEventListener('click', async (e) => {
3888
3903
  return reviewUi.open(a.id);
3889
3904
  case 'overview':
3890
3905
  case 'questions':
3906
+ case 'overlaps':
3891
3907
  return openNeeds(a.id, btn.dataset.act);
3908
+ case 'debug':
3909
+ term.open(a.id);
3910
+ return sidePane.open('debug');
3892
3911
  case 'mcp':
3893
3912
  return mcpUi.open(a.id);
3894
3913
  case 'memory':
@@ -4401,6 +4420,11 @@ function handleEvent(msg) {
4401
4420
  history.replaceState(null, '', '#');
4402
4421
  valueUi.open();
4403
4422
  }
4423
+ if (newsOnLoad && !watchShown) {
4424
+ watchShown = true;
4425
+ history.replaceState(null, '', '#');
4426
+ newsUi.open();
4427
+ }
4404
4428
  if (standupOnLoad && !watchShown) {
4405
4429
  watchShown = true;
4406
4430
  history.replaceState(null, '', '#');
@@ -4450,6 +4474,8 @@ function handleEvent(msg) {
4450
4474
  teams.delete(msg.id);
4451
4475
  } else if (msg.t === 'value') {
4452
4476
  valueUi.changed();
4477
+ } else if (msg.t === 'news') {
4478
+ newsUi.changed();
4453
4479
  } else if (msg.t === 'standup') {
4454
4480
  standupUi.set(msg.latest);
4455
4481
  if (msg.latest?.reason === 'scheduled' && msg.latest.items.length) toast('Standup ready: press Standup (or p) to play it', 8000);
package/public/index.html CHANGED
@@ -40,6 +40,7 @@
40
40
  <button id="bugs-btn" title="Bugs: background hunts in a project or folder, and what they found, checked and worst first">Bugs <span id="bugs-count" class="badge"></span></button>
41
41
  <button id="reviews-btn" title="Reviews: pull requests you review. Reviewer agents ask the critical questions and find what blocks approval; you post what you pick">Reviews <span id="reviews-count" class="badge ready"></span></button>
42
42
  <button id="value-btn" title="Value: what the delivered work is worth, by day, week, month and quarter, against the AI cost and your time; reports for management">Value</button>
43
+ <button id="news-btn" title="AI News: the frontier labs' latest releases (Anthropic, OpenAI, Google and the other top labs), each summarized, with links">AI News <span id="news-count" class="badge ready"></span></button>
43
44
  <button id="map-btn" title="The codebase map: where each agent is changing and reading code, and who is about to collide">Map</button>
44
45
  <button id="watch-btn" title="Running agents' sessions side by side, live: follow them all without clicking from one to the next">Watch</button>
45
46
  <button id="mcp-btn" title="MCP: the MCP servers Claude Code has (yours, projects', claude.ai connectors and plugins), their tools, and running one in an agent's session or workspace">MCP</button>
@@ -132,6 +133,7 @@
132
133
  <div class="splitter split-term" id="split-term" role="separator" aria-orientation="horizontal" title="Drag to resize the terminal; double-click to reset"></div>
133
134
  <div class="term-wrap" id="term-wrap" hidden>
134
135
  <div class="term-bar">
136
+ <span id="term-agent" class="term-agent"></span>
135
137
  <div class="term-tabs" role="tablist">
136
138
  <button class="term-tab" data-kind="claude" role="tab">Claude</button>
137
139
  <button class="term-tab" data-kind="code" role="tab" title="The agent's files: browse, edit, search and compare (Monaco, the editor in VS Code)">Code</button>
@@ -145,7 +147,7 @@
145
147
  <button id="term-attach" class="ghost small" title="Attach files or images (you can also drop or paste them into the terminal)">📎 Attach</button>
146
148
  <input type="file" id="term-file" multiple hidden>
147
149
  <button id="term-fit" class="ghost small" title="Refit the terminal to the panel">Fit</button>
148
- <button id="term-split-btn" class="ghost small desk-only" title="Split: the terminal on the left, and Code, Docs (diagrams) or Changes on the right">◫ Split</button>
150
+ <button id="term-split-btn" class="ghost small desk-only" title="Split: the terminal on the left, and Code, Docs (diagrams), Changes or Debug on the right">◫ Split</button>
149
151
  <button id="group-split" class="ghost small desk-only" title="Split the screen: a group to the right for another agent's session, as in VS Code (Cmd+\ on a Mac, or Ctrl+Shift+\; add Shift on a Mac, or Alt, to split down). Or drag an agent from the list onto the right or bottom edge">⊞ Split screen</button>
150
152
  <button id="term-max" class="ghost small desk-only" title="Expand to fill the window (Ctrl+Shift+E)">⤢ Expand</button>
151
153
  <button id="term-full" class="ghost small desk-only" title="Full screen (Esc to leave)">⛶ Full screen</button>
@@ -193,6 +195,7 @@
193
195
  <button class="term-tab" data-side="code" role="tab" title="The agent's files">Code</button>
194
196
  <button class="term-tab" data-side="docs" role="tab" title="Diagrams and the other documents">Docs</button>
195
197
  <button class="term-tab" data-side="changes" role="tab" title="Its changes, explained one by one">Changes</button>
198
+ <button class="term-tab" data-side="debug" role="tab" title="Debug: say what to debug; the agent investigates in its session and its report shows here, with animated diagrams of the code path and data flow, findings and recommended fixes">Debug</button>
196
199
  </div>
197
200
  <span class="spacer"></span>
198
201
  <button type="button" class="ghost small" id="side-close" title="Close the split">✕</button>
@@ -414,6 +417,9 @@
414
417
  <dialog id="value-dialog" class="issues-dialog value-dialog" aria-label="Value">
415
418
  <div id="value-body"></div>
416
419
  </dialog>
420
+ <dialog id="news-dialog" class="issues-dialog news-dialog" aria-label="AI News">
421
+ <div id="news-body"></div>
422
+ </dialog>
417
423
  <dialog id="standup-dialog" class="standup-dialog" aria-label="Standup">
418
424
  <div id="standup-body"></div>
419
425
  </dialog>
package/public/keys.js CHANGED
@@ -27,6 +27,7 @@ export const SHORTCUTS = [
27
27
  [['d'], 'Designs: agents\' design docs', 'designs'],
28
28
  [['g'], 'Reviews: pull requests you review', 'reviews'],
29
29
  [['v'], 'Value: what the work is worth', 'value'],
30
+ [['l'], 'AI News: the latest frontier releases', 'news'],
30
31
  [['1'], 'Agents tab', 'tab:agents'],
31
32
  [['2'], 'Inbox: what needs you', 'tab:inbox'],
32
33
  [['3'], 'Backlog', 'tab:backlog'],
@@ -70,11 +71,11 @@ export const SHORTCUTS = [
70
71
  // A single key, as an event names it, to its action.
71
72
  export const SINGLE = {
72
73
  j: 'next', k: 'prev', Enter: 'terminal', t: 'terminal',
73
- r: 'changes', s: 'start', X: 'stop', e: 'edit', n: 'new', a: 'ask', '/': 'filter', w: 'watch', p: 'standup', m: 'map', i: 'issues', o: 'actions', h: 'assistant', ',': 'settings', d: 'designs', g: 'reviews', v: 'value', y: 'today', b: 'bugs', '?': 'help',
74
+ r: 'changes', s: 'start', X: 'stop', e: 'edit', n: 'new', a: 'ask', '/': 'filter', w: 'watch', p: 'standup', m: 'map', i: 'issues', o: 'actions', h: 'assistant', ',': 'settings', d: 'designs', g: 'reviews', v: 'value', l: 'news', y: 'today', b: 'bugs', '?': 'help',
74
75
  1: 'tab:agents', 2: 'tab:inbox', 3: 'tab:backlog', 4: 'tab:land', 5: 'tab:built',
75
76
  };
76
77
  // While Watch is open: only what makes sense there.
77
- const ON_WATCH = new Set(['today', 'new', 'ask', 'watch', 'standup', 'map', 'issues', 'actions', 'assistant', 'settings', 'designs', 'reviews', 'value', 'bugs', 'help']);
78
+ const ON_WATCH = new Set(['today', 'new', 'ask', 'watch', 'standup', 'map', 'issues', 'actions', 'assistant', 'settings', 'designs', 'reviews', 'value', 'news', 'bugs', 'help']);
78
79
 
79
80
  /** Typing somewhere: a field, an editor or a terminal (xterm types through a textarea). */
80
81
  const typing = (el) => Boolean(el?.closest?.('input, textarea, select, [contenteditable=""], [contenteditable="true"], .xterm, .cm-editor'));
package/public/news.js ADDED
@@ -0,0 +1,167 @@
1
+ // AI News: the frontier labs' latest releases in one list, newest first, each with a short summary
2
+ // and its links. The daemon reads the release notes (and searches the web for the top labs once a
3
+ // day) on its own; Refresh looks now. New since you last looked is marked, and counted on the button.
4
+
5
+ import { expandButton, expandable } from './expand.js';
6
+
7
+ const SAVED = 'agentmgr.newsLab';
8
+
9
+ export function initNews({ api, $, esc, ago, toast }) {
10
+ const dialog = $('#news-dialog');
11
+ const body = $('#news-body');
12
+ let data = null;
13
+ let lab = 'all';
14
+ let query = '';
15
+ let again = null;
16
+ try {
17
+ lab = localStorage.getItem(SAVED) || 'all';
18
+ } catch {}
19
+
20
+ async function load({ quiet = false } = {}) {
21
+ try {
22
+ data = await api('GET', '/news');
23
+ } catch (e) {
24
+ if (!quiet) toast?.(e.message, 5000);
25
+ }
26
+ badge();
27
+ render();
28
+ }
29
+
30
+ function badge() {
31
+ const n = data?.newCount ?? 0;
32
+ const el = $('#news-count');
33
+ if (!el) return;
34
+ el.textContent = n ? String(n) : '';
35
+ el.title = n ? `${n} new since you last looked` : '';
36
+ }
37
+
38
+ /** "Today", "Yesterday", "Monday, Nov 9" (with the year when it isn't this one). */
39
+ function dayLabel(date) {
40
+ const d = new Date(`${date}T12:00:00`);
41
+ const today = new Date();
42
+ const days = Math.round((new Date(today.toDateString()) - new Date(d.toDateString())) / 86_400_000);
43
+ if (days === 0) return 'Today';
44
+ if (days === 1) return 'Yesterday';
45
+ return d.toLocaleDateString([], { weekday: 'long', month: 'short', day: 'numeric', ...(d.getFullYear() === today.getFullYear() ? {} : { year: 'numeric' }) });
46
+ }
47
+
48
+ function item(i) {
49
+ const extra = i.links.filter((l) => l.url !== i.url).slice(0, 4);
50
+ return `<li class="news-item${i.isNew ? ' new' : ''}">
51
+ <div class="news-meta"><span class="tag news-lab" data-lab="${esc(i.lab)}">${esc(i.lab)}</span> <span class="hint">${esc(i.label)}</span>${i.isNew ? ' <span class="tag news-new">new</span>' : ''}</div>
52
+ <a class="news-title" href="${esc(i.url)}" target="_blank" rel="noopener">${esc(i.title)}</a>
53
+ ${i.summary
54
+ ? `<p class="news-summary">${esc(i.summary)}</p>`
55
+ : `<p class="news-summary hint" title="The summary is written on the next refresh">${esc(i.lead ?? '')}</p>`}
56
+ ${extra.length ? `<div class="news-links">${extra.map((l) => `<a href="${esc(l.url)}" target="_blank" rel="noopener" title="${esc(l.url)}">${esc(l.text || new URL(l.url).host)} ↗</a>`).join('')}</div>` : ''}
57
+ </li>`;
58
+ }
59
+
60
+ function source(s) {
61
+ const what = s.error ? `⚠ ${s.error}` : s.at ? `${s.count} entries, read ${ago(s.at)}` : 'not read yet';
62
+ const name = s.page ? `<a href="${esc(s.page)}" target="_blank" rel="noopener">${esc(s.label)}</a>` : esc(s.label);
63
+ return `<span class="news-source${s.error ? ' failed' : ''}" title="${esc(`${s.lab}: ${what}`)}">${name}${s.error ? ' ⚠' : ''}</span>`;
64
+ }
65
+
66
+ function draw() {
67
+ if (!dialog.open) return;
68
+ if (!data) {
69
+ body.innerHTML = '<p class="hint">Loading…</p>';
70
+ return;
71
+ }
72
+ const labs = [...new Set(data.items.map((i) => i.lab))].sort((x, y) => data.items.filter((i) => i.lab === y).length - data.items.filter((i) => i.lab === x).length || x.localeCompare(y));
73
+ if (lab !== 'all' && lab !== 'new' && !labs.includes(lab)) lab = 'all';
74
+ const q = query.trim().toLowerCase();
75
+ const rows = data.items.filter((i) => (lab === 'all' || (lab === 'new' ? i.isNew : i.lab === lab)) && (!q || `${i.title} ${i.summary ?? i.lead ?? ''} ${i.lab} ${i.label} ${(i.tags ?? []).join(' ')}`.toLowerCase().includes(q)));
76
+ const days = [];
77
+ for (const i of rows) {
78
+ if (days.at(-1)?.date !== i.date) days.push({ date: i.date, items: [] });
79
+ days.at(-1).items.push(i);
80
+ }
81
+ const chip = (k, label, n) => `<button class="chip ${k === lab ? 'active' : ''}" role="tab" aria-selected="${k === lab}" data-news-lab="${esc(k)}">${esc(label)} <span class="count">${n}</span></button>`;
82
+ const s = data.settings ?? {};
83
+ body.innerHTML = `
84
+ <div class="issues-head">
85
+ <h2>AI News</h2>
86
+ <div class="chips" role="tablist">${chip('all', 'All', data.items.length)}${data.newCount ? chip('new', 'New', data.newCount) : ''}${labs.map((l) => chip(l, l, data.items.filter((i) => i.lab === l).length)).join('')}</div>
87
+ <span class="spacer"></span>
88
+ <input type="search" class="small news-find" data-news-find placeholder="Find…" value="${esc(query)}" aria-label="Find in the news">
89
+ <button class="small" data-news="refresh" ${data.refreshing || !data.enabled ? 'disabled' : ''} title="Read the release notes again now${s.summaries ? ' and summarize what is new' : ''}">${data.refreshing ? 'Refreshing…' : '↻ Refresh'}</button>
90
+ ${s.search ? `<button class="small" data-news="search" ${data.refreshing || !data.enabled ? 'disabled' : ''} title="Also search the web now for the top 10 AI labs' latest releases (otherwise once every ${s.searchHours} hours). One Claude Code call that may only search and read the web">🔎 Search top labs</button>` : ''}
91
+ ${expandButton(dialog)}
92
+ <button class="small" data-news="close" title="Close (Esc)">Close</button>
93
+ </div>
94
+ <p class="hint">The frontier labs' latest releases from the last ${esc(String(s.days ?? 30))} days, newest first${s.summaries ? ', each summarized by a model in a sentence or two' : ''}. Read from ${data.sources.map(source).join(', ')}${data.refreshedAt ? `; updated ${esc(ago(data.refreshedAt))}, again every ${esc(String(s.refreshHours))} hours` : ''}. Sources and timing: <code>"news"</code> in config.json.</p>
95
+ ${!data.enabled
96
+ ? '<p class="hint issues-empty">AI News is off. Turn it on with <code>"news": { "enabled": true }</code> in config.json.</p>'
97
+ : days.length
98
+ ? `<div class="issues-scroll news-list">${days.map((d) => `<h3 class="news-day">${esc(dayLabel(d.date))}</h3><ul class="news-items">${d.items.map(item).join('')}</ul>`).join('')}</div>`
99
+ : `<p class="hint issues-empty">${data.refreshing ? 'Reading the release notes…' : data.items.length ? 'Nothing matches.' : 'No news yet. Refresh reads the release notes now.'}</p>`}`;
100
+ }
101
+
102
+ // Typing in Find keeps its focus and caret while the list redraws under it.
103
+ function render() {
104
+ const find = body.querySelector('[data-news-find]');
105
+ const typing = find && document.activeElement === find;
106
+ const at = typing ? find.selectionStart : null;
107
+ draw();
108
+ if (typing) {
109
+ const f = body.querySelector('[data-news-find]');
110
+ f?.focus();
111
+ f?.setSelectionRange(at, at);
112
+ }
113
+ }
114
+
115
+ async function refresh(search) {
116
+ try {
117
+ data = await api('POST', '/news/refresh', search ? { search: true } : {});
118
+ toast?.(search ? 'Reading the release notes and searching the web: this can take a few minutes' : 'Reading the release notes', 3000);
119
+ } catch (e) {
120
+ toast?.(e.message, 6000);
121
+ }
122
+ render();
123
+ }
124
+
125
+ body.addEventListener('input', (e) => {
126
+ if (e.target.dataset.newsFind === undefined) return;
127
+ query = e.target.value;
128
+ render();
129
+ });
130
+
131
+ body.addEventListener('click', (e) => {
132
+ const l = e.target.closest('[data-news-lab]');
133
+ if (l) {
134
+ lab = l.dataset.newsLab;
135
+ try {
136
+ localStorage.setItem(SAVED, lab === 'new' ? 'all' : lab);
137
+ } catch {}
138
+ return render();
139
+ }
140
+ const b = e.target.closest('[data-news]')?.dataset.news;
141
+ if (b === 'close') return dialog.close();
142
+ if (b === 'refresh') return refresh(false);
143
+ if (b === 'search') return refresh(true);
144
+ });
145
+
146
+ // Closing marks what you saw as seen: the "new" marks and the count clear. The first look starts them.
147
+ dialog.addEventListener('close', () => {
148
+ if (data && (data.newCount || !data.seenAt)) api('POST', '/news/seen', {}).then(() => load({ quiet: true }), () => {});
149
+ });
150
+
151
+ function open() {
152
+ if (dialog.open) return dialog.close();
153
+ dialog.showModal();
154
+ render();
155
+ load();
156
+ }
157
+
158
+ /** The daemon says the news changed: the count now, and the list while open. */
159
+ function changed() {
160
+ clearTimeout(again);
161
+ again = setTimeout(() => load({ quiet: true }), dialog.open ? 300 : 1500);
162
+ }
163
+
164
+ expandable(dialog, render);
165
+ load({ quiet: true });
166
+ return { open, changed, isOpen: () => dialog.open };
167
+ }