ai-agentmanager 1.42.0 → 1.44.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,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.44.0 (2026-11-12)
4
+
5
+ - **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.
6
+ - **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.
7
+ - **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.
8
+ - **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.
9
+
10
+ ## 1.43.0 (2026-11-11)
11
+
12
+ - **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.
13
+ - **Sign in to MCP servers.** A server that needs it shows **Sign in** (or `agentmgr mcp signin`), which opens its sign-in page. Claude Code keeps the tokens; the app never sees them. From another device, paste the address the browser ended on.
14
+ - **Reconnect one server** with **↻** (or `agentmgr mcp reconnect`), leaving the others alone.
15
+ - **Run a tool directly.** **Run** with JSON arguments (or none) calls the tool with no model call and shows its output as it is; plain words still go through a one-off Claude Code call allowed only that tool, and **Run in agent session** asks the agent. The last 30 runs are kept with their results, and **↗ Window** opens the panel on its own (`#mcp`). The `mcp.run` plugin policy now gets `where`.
16
+ - **Update from the app** shows an in-page dialog with live progress (install, restart, reload) instead of a browser confirm and a short toast.
17
+
3
18
  ## 1.42.0 (2026-11-11)
4
19
 
5
20
  - **MCP servers and tools.** **MCP** in the top bar (or **MCP tools** in an agent's detail, or `agentmgr mcp [agent]`) lists the MCP servers Claude Code has in your home folder or an agent's workspace: your own, the project's `.mcp.json`, claude.ai connectors and plugins' servers. Each shows its status, where it comes from and its tools. Listing makes no model call, and secrets are never shown.
package/README.md CHANGED
@@ -27,7 +27,7 @@ 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
- - **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, and run any tool in an agent's session or once in its workspace.
30
+ - **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
31
  - **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
32
  - **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.
33
33
  - **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.
@@ -111,7 +111,7 @@ npm install
111
111
  npm link
112
112
  ```
113
113
 
114
- **Updating.** `agentmgr update` installs the newest release and restarts onto it; running agents pause briefly and resume. In the app, **Update to …** appears in the top bar when a release is out (checked twice a day; turn it off in **☰ → Settings** or with `agentmgr update --auto-check off`), and **About → Update and restart** does the same. Both work from a signed-in phone too: the install and restart run on the computer, and the page reloads when it's back. A clone at a release tag (or one you `npm link`ed) moves to the newest tag; a clone on a branch or with uncommitted changes is left alone. By hand, use the command for how you installed, then `agentmgr restart`:
114
+ **Updating.** `agentmgr update` installs the newest release and restarts onto it; running agents pause briefly and resume. In the app, **Update to …** appears in the top bar when a release is out (checked twice a day; turn it off in **☰ → Settings** or with `agentmgr update --auto-check off`), and **About → Update and restart** does the same. Either one opens a window that asks first, then shows each step as it happens: the install (how long it has taken, how many packages npm has fetched and its last line), the restart, and the page's reload. If the install fails, the error stays on screen with the command to run by hand, and nothing is restarted. Both work from a signed-in phone too: the install and restart run on the computer, and the page reloads when it's back. A clone at a release tag (or one you `npm link`ed) moves to the newest tag; a clone on a branch or with uncommitted changes is left alone. By hand, use the command for how you installed, then `agentmgr restart`:
115
115
 
116
116
  | Installed with | Update |
117
117
  | --- | --- |
@@ -642,7 +642,7 @@ For each agent with its own branch, AI Agent Manager works out which files and l
642
642
  - **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
643
  - **same file**: both edit the file, in different places.
644
644
 
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.
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. 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
646
 
647
647
  ## Stuck detection
648
648
 
@@ -1130,13 +1130,20 @@ Usage comes from the session transcripts and is refreshed every few seconds whil
1130
1130
 
1131
1131
  ## MCP servers and tools
1132
1132
 
1133
- **MCP** in the top bar (or **MCP tools** in an agent's detail, or `agentmgr mcp [agent]`) lists the MCP servers Claude Code has in a folder: your own servers, the project's `.mcp.json`, local ones, claude.ai connectors and plugins' servers. Each shows its status, where it comes from, where it runs and its tools, marked *read-only* or *destructive* when the server says so. Pick the home folder or any agent's workspace at the top, since a workspace adds its project's servers. The app asks Claude Code itself through its control protocol, which connects to each server but makes no model call. The list is kept for 5 minutes, and **Refresh** asks again. Environment variables, headers, URL queries and secret-looking arguments are never shown.
1133
+ **MCP** in the top bar (or **MCP tools** in an agent's detail, or `agentmgr mcp [agent]`) lists the MCP servers Claude Code has in a folder: your own servers, the project's `.mcp.json`, local ones, claude.ai connectors and plugins' servers. Each shows its status, where it comes from, where it runs and its tools, marked *read-only* or *destructive* when the server says so. Pick the home folder or any agent's workspace at the top, since a workspace adds its project's servers. Environment variables, headers, URL queries and secret-looking arguments are never shown.
1134
1134
 
1135
- **Run…** on a tool takes an optional request in plain words, then runs it in one of two ways:
1136
- - **Run in session** tells the agent to use the tool, with its conversation and context. The answer is in the session. This works for Claude Code agents.
1137
- - **Run once in workspace** (or `agentmgr mcp run <agent|home> <server> <tool> [request]`) is a separate one-off Claude Code call in that folder. It may use only that one tool, works out the arguments from your request, and shows what the tool returned. The agent isn't interrupted.
1135
+ **Its own MCP session.** Each folder gets an MCP session of its own on the daemon: one Claude Code process, separate from any agent's session, that the app talks to through Claude Code's control protocol. It keeps the servers connected, so listing, signing in, reconnecting and calling a tool make no model call and don't interrupt an agent. The session closes after 15 minutes unused and starts again when needed. **Refresh all** starts a new one, which reads the configuration again. **↗ Window** opens the panel in a window of its own (`#mcp` or `#mcp/<agent>`), and **Runs in this MCP session** at the bottom keeps the last 30 runs with their results.
1138
1136
 
1139
- A destructive tool needs a second click. Plugins can refuse one-off runs with the `mcp.run` policy.
1137
+ **Signing in.** A server that needs it shows **needs sign-in** and a **Sign in** button (or `agentmgr mcp signin <agent|home> <server>`), which opens that server's sign-in page in a new tab and keeps the link on the page. Claude Code runs the sign-in and keeps the tokens; the app never sees them. When you finish, the server connects by itself. The sign-in ends on an address on the computer the daemon runs on, so from another device (or when that last page doesn't load) paste the address the browser ended on into the box under the link. A claude.ai connector is connected on claude.ai instead: the link goes there.
1138
+
1139
+ **↻ on each server** (or `agentmgr mcp reconnect <agent|home> <server>`) connects that one server again and lists its tools, after signing in or when it failed. The others are left alone.
1140
+
1141
+ **Run…** on a tool takes its input and runs it in one of three ways:
1142
+ - **Run** with the tool's arguments as JSON (`{"query": "…"}`), or with nothing: the tool is called directly in the folder's MCP session, with no model call, and its output is shown as it is.
1143
+ - **Run** with a request in plain words: a separate one-off Claude Code call in that folder, allowed only that one tool, works out the arguments and shows what the tool returned.
1144
+ - **Run in agent session** tells the agent to use the tool, with its conversation and context. The answer is in the session. This works for Claude Code agents.
1145
+
1146
+ `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.
1140
1147
 
1141
1148
  ## Configuration
1142
1149
 
package/docs/plugins.md CHANGED
@@ -53,7 +53,7 @@ Policies are synchronous so every code path can call them. Keep them fast; do sl
53
53
  | `agent.start` | Before an agent's engine is launched or resumed (including after a restart) | `agent`, `fresh` |
54
54
  | `agent.message` | Before a message is typed into an agent (`tell`, inbox replies) | `agent`, `text`, `source` |
55
55
  | `agent.remove` | Before an agent is deleted | `agent`, `deleteWorkspace` |
56
- | `mcp.run` | Before an MCP tool runs once in a folder (the MCP panel's **Run once**, `agentmgr mcp run`); running it in a session goes through `agent.message` | `agent` (or null for the home folder), `dir`, `tool`, `input` |
56
+ | `mcp.run` | Before an MCP tool runs in a folder's MCP session (the MCP panel's **Run**, `agentmgr mcp run`); running it in an agent's session goes through `agent.message` | `agent` (or null for the home folder), `dir`, `tool`, `input`, `where` (`direct`: called with the JSON arguments in `input`; `workspace`: through a one-off Claude Code call) |
57
57
  | `agent.commit` | Before Commit in the review screen commits an agent's worktree | `agent`, `message` |
58
58
  | `agent.pr` | Before the review screen pushes an agent's branch and opens a pull request | `agent`, `title`, `draft` |
59
59
  | `agent.merge` | Before Merge (or auto-merge) in the Land tab merges an agent's pull request | `agent`, `url`, `method`, `auto` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-agentmanager",
3
- "version": "1.42.0",
3
+ "version": "1.44.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
@@ -67,8 +67,10 @@ const standupOnLoad = hashId === 'standup';
67
67
  const mapOnLoad = hashId === 'map';
68
68
  const valueOnLoad = hashId === 'value';
69
69
  const reviewsOnLoad = hashId === 'reviews';
70
+ // "#mcp" or "#mcp/<agent>": the MCP window on its own.
71
+ const mcpOnLoad = hashId === 'mcp';
70
72
  let watchShown = false;
71
- let selectedId = (watchOnLoad || standupOnLoad || mapOnLoad || valueOnLoad || reviewsOnLoad ? null : hashId) || null;
73
+ let selectedId = (watchOnLoad || standupOnLoad || mapOnLoad || valueOnLoad || reviewsOnLoad || mcpOnLoad ? null : hashId) || null;
72
74
  let openTermOnLoad = hashView === 'term' || hashView === 'code' || isShell(hashView) || isBrowser(hashView);
73
75
  let filterText = '';
74
76
  // "Only agents created in the last N days": remembered in this browser.
@@ -1808,10 +1810,11 @@ for (const root of [$('#inbox-view'), $('#detail-body'), $('#needs-body')]) {
1808
1810
  root.addEventListener('submit', onNeedSubmit);
1809
1811
  }
1810
1812
 
1811
- // ------------------------------------------------------------------ overview and questions panels
1813
+ // ------------------------------------------------------------------ overview, questions and overlaps panels
1812
1814
 
1813
1815
  const openQuestions = (a) => (a.questions ?? []).filter((q) => !q.answer).length;
1814
- let needsOpen = null; // { id, kind: 'overview' | 'questions' }
1816
+ let needsOpen = null; // { id, kind: 'overview' | 'questions' | 'overlaps' }
1817
+ const NEEDS_TITLE = { overview: 'Overview', questions: 'Questions', overlaps: 'Overlaps' };
1815
1818
 
1816
1819
  function openNeeds(id, kind) {
1817
1820
  needsOpen = { id, kind };
@@ -1824,10 +1827,14 @@ function renderNeeds() {
1824
1827
  if (!needsOpen) return;
1825
1828
  const a = agents.get(needsOpen.id);
1826
1829
  if (!a) return $('#needs-dialog').close();
1827
- $('#needs-title').textContent = `${needsOpen.kind === 'overview' ? 'Overview' : 'Questions'}: ${a.name}`;
1830
+ $('#needs-title').textContent = `${NEEDS_TITLE[needsOpen.kind]}: ${a.name}`;
1828
1831
  let html;
1829
1832
  if (needsOpen.kind === 'overview') {
1830
1833
  html = a.aiReview?.verdict ? needCard({ a, kind: 'review', key: `review:${a.id}` }, { inDetail: true }) : '<p class="hint">No AI review yet.</p>';
1834
+ } else if (needsOpen.kind === 'overlaps') {
1835
+ // Every overlap, also the ones where the other agent is the one to rebase.
1836
+ const items = needsFor(a, { both: true }).filter((it) => it.kind === 'conflict');
1837
+ html = items.length ? items.map((it) => needCard(it, { inDetail: true })).join('') : '<p class="hint">No overlaps with other agents now.</p>';
1831
1838
  } else {
1832
1839
  const open = (a.questions ?? []).filter((q) => !q.answer);
1833
1840
  const answered = (a.questions ?? []).filter((q) => q.answer);
@@ -2292,6 +2299,7 @@ function renderDetail() {
2292
2299
  ${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>`}
2293
2300
  ${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>` : ''}
2294
2301
  ${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>` : ''}
2302
+ ${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>` : ''}
2295
2303
  <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>
2296
2304
  <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>
2297
2305
  <button data-act="edit" title="Change its name, request, project, priority, permission mode or model">Edit</button>
@@ -2336,8 +2344,8 @@ function renderDetail() {
2336
2344
  ${a.builds ? builtUi.panel(a) : ''}
2337
2345
  ${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>` : ''}
2338
2346
  ${(() => {
2339
- // The AI review and the questions have their own panels (Overview, Questions).
2340
- const items = needsFor(a, { both: true }).filter((it) => it.kind !== 'review' && it.kind !== 'question');
2347
+ // The AI review, the questions and the overlaps have their own panels (Overview, Questions, Overlaps).
2348
+ const items = needsFor(a, { both: true }).filter((it) => !['review', 'question', 'conflict'].includes(it.kind));
2341
2349
  return items.length ? `<div class="needs">${items.map((it) => needCard(it, { inDetail: true })).join('')}</div>` : '';
2342
2350
  })()}
2343
2351
  ${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>` : ''}
@@ -2660,6 +2668,8 @@ const term = {
2660
2668
  renderTabs() {
2661
2669
  renderSignIn();
2662
2670
  const a = this.agentId && agents.get(this.agentId);
2671
+ // Whose session this is, for when the detail above is out of view (expanded, full screen, phone).
2672
+ Object.assign($('#term-agent'), { textContent: a?.name ?? '', title: a ? `${a.name}${a.intent && a.intent !== a.name ? `\n${a.intent}` : ''}` : '' });
2663
2673
  // The agent's own session tab is named after its engine (Codex, Muse Code, …).
2664
2674
  $('.term-tab[data-kind="claude"]').textContent = ENGINE_LABEL[a?.engine] ?? 'Claude';
2665
2675
  sidePane?.follow(this.agentId);
@@ -3886,6 +3896,7 @@ $('#detail-body').addEventListener('click', async (e) => {
3886
3896
  return reviewUi.open(a.id);
3887
3897
  case 'overview':
3888
3898
  case 'questions':
3899
+ case 'overlaps':
3889
3900
  return openNeeds(a.id, btn.dataset.act);
3890
3901
  case 'mcp':
3891
3902
  return mcpUi.open(a.id);
@@ -4404,6 +4415,11 @@ function handleEvent(msg) {
4404
4415
  history.replaceState(null, '', '#');
4405
4416
  standupUi.open();
4406
4417
  }
4418
+ if (mcpOnLoad && !watchShown) {
4419
+ watchShown = true;
4420
+ history.replaceState(null, '', '#');
4421
+ mcpUi.open(agents.has(hashView) ? hashView : null);
4422
+ }
4407
4423
  if (watchOnLoad && !watchUi.isOpen() && !watchShown) {
4408
4424
  watchShown = true;
4409
4425
  watchUi.show(true);
package/public/index.html CHANGED
@@ -132,6 +132,7 @@
132
132
  <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
133
  <div class="term-wrap" id="term-wrap" hidden>
134
134
  <div class="term-bar">
135
+ <span id="term-agent" class="term-agent"></span>
135
136
  <div class="term-tabs" role="tablist">
136
137
  <button class="term-tab" data-kind="claude" role="tab">Claude</button>
137
138
  <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>
@@ -857,6 +858,12 @@
857
858
  </div>
858
859
  </dialog>
859
860
 
861
+ <dialog id="update-dialog" class="update-dialog" aria-label="Update">
862
+ <h2 id="update-title">Update</h2>
863
+ <div id="update-body"></div>
864
+ <div class="dialog-actions" id="update-actions"></div>
865
+ </dialog>
866
+
860
867
  <dialog id="about-dialog" class="about-dialog">
861
868
  <h2>AI Agent Manager</h2>
862
869
  <p class="hint">Run and track background coding agents, one per intent.</p>