Skip to content

feat(web): milestones become a map of plans, detours and agents - #23

Merged
OmarAlex24 merged 10 commits into
fix/milestones-child-secretfrom
feat/milestones-graph-view
Nov 11, 2026
Merged

OmarAlex24 merged 10 commits into
fix/milestones-child-secretfrom
feat/milestones-graph-view

Conversation

@OmarAlex24

@OmarAlex24 OmarAlex24 commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Problem

The Milestones view from #17 put every milestone on a time axis, as a cascade of rows. It was accurate but hard to read. You couldn't see the plan's shape, where the agent went off plan, or what each agent was doing right now without reading bars.

Fix

Milestones is now a map shaped like a git graph, on a canvas you can pan and zoom.

The map.

  • Planned milestones run down one lane in the order work started. Work outside the plan forks to the side and rejoins at the next milestone. A replaced plan branches from the milestone it left off at, and the old plan's unfinished milestones show as dropped.
  • Each card shows:
    • the lead agent's icon, the title, and whether it was in the plan;
    • its status: Done, Working, Needs you, Planned or Dropped;
    • one line on what happened: the agent's last action (feat(server): thread shells carry each agent's latest tool action #21) or the milestone's note, with the icons of the agents that worked on it;
    • a summary such as "All 2 done", "1 needs you" or "No agents", and how long it took.
  • A thread without a plan shows one card per turn.
  • Drag or scroll to pan, and pinch or hold mod while scrolling to zoom. The controls at the bottom left zoom and fit the whole thread.

Zooming into a milestone.

  • Select a milestone to zoom in. Its agents fan out to the right, grouped the way the coordinator grouped them (feat(web): a milestones view you can zoom out and in, with agent groups #17), such as "Checks 2/2 done · in parallel". Sub-agents sit under the agent that started them. Posts and a comment box follow.
  • Each agent card shows its icon, task, model, status, group, and its last action or what it asks you for. Answer takes you to its ask.
  • On a narrow window the agents nest under the milestone instead. The width the open thread details card covers counts against the room, and each extra lane needs 18 px more.
  • ↑/↓ step through milestones and Esc zooms out. The keys are ignored in fields and the composer.

Asks above the composer.

  • A secret or approval request from the coordinator or any of its agents sits above the composer, named after the agent and its milestone, such as "Pedir token · Claude Haiku 5.5 · Preparar".
  • A secret ask folds to one line; Answer opens it again. Answering a subagent's ask goes straight to that subagent (fix: a delegated agent's secret request reaches the coordinator's thread #22).

Details card. The map lays out beside the open thread details card, using the same inset Chat uses to move its lane. Opening or closing the card moves the camera.

What stays from #17. The groups on delegate_task and the Plan section in the details card. The time-axis model, threadMilestoneTrace, is removed, and so are MilestoneTrace and MilestoneBoard.

Performance.

  • The map reads the coordinator's thread family once per open view (threadFamilies.mount), not once per agent.
  • The only motion is a one-time 220 ms entrance when agents fan out, and it respects reduced motion. Nothing repaints continuously.

Notes

  • Agents on another environment. An agent running on a linked environment shows its result instead of its last action, since its shell lives on that machine.
  • False detours. In every live run, Haiku called start with the title of a milestone it had just planned, so the map shows a "Not in the plan" duplicate of "Preparar". The map is drawing what the agent did. The cause is in the t3_milestone tool's wording on the base branch, and it will be fixed separately.
  • Windows paths. Paths under the workspace are shown relative to it. A Windows root with backslashes isn't rewritten yet.

Screenshots

Captures to attach:

  • the whole map;
  • zoomed in, wide, in light and dark;
  • zoomed in, narrow, in dark;
  • a subagent's secret in the dock, before and after answering;
  • the coordinator's own secret in Chat and in Milestones, at 816 px in dark;
  • zoomed in with the details card open and closed.

Test plan

  • threadMilestoneMap.test.ts:
    • graph layout table
    • a live OAuth task with its detour, plan changes, nesting and asks
    • agents that ran before the first plan get their own node, outside the counts
    • titles started again become detours, and the next plan forks from the last of them
    • one card per turn on a thread that never planned
    • agentLine table: ask, last action, then result or progress, with paths made relative to the workspace
  • threadMilestoneGraph.test.ts drops the cases for the helpers the map replaced (deriveCoordinatorActivity and the position summary)
  • ThreadMilestonesView.browser.test.tsx:
    • zooms in, steps with the arrows and zooms out with Esc
    • leaves keys typed in a field alone
    • still selects a milestone after a pan
  • canvasStore.test.ts: the details card's inset is 292 px when the card is shown, and 0 when it's closed, a popover or unmeasured
  • AgentAsks.browser.test.tsx, the renamed child approvals test, passes
  • Dev app with real Haiku agents at 1280 px:
    • a finished agent showed "Ran command · ls src/orchestration-v2 | wc -l", and one that asked showed "Asked for a secret";
    • its secret showed in the dock as "Pedir token · Claude Haiku 5.5 · Preparar", and answering there unblocked it;
    • the coordinator's own secret showed in Chat and in the dock at 816 px in dark, and Save securely let it finish.
  • Dev app with the details card open at 1280 px: the agents fan out left of the card, and the zoomed top bar clears it. Closing the card re-centres the camera. At 1100 px the card leaves the canvas and the map uses the full width.
  • A new Haiku run at 1280 px with the details card open: the milestone read "Delegated a child task". Its agent's secret sat in the dock as "Pedir token · Claude Haiku 5.5 · Preparar", and answering it there let the run finish with "Pedir token · Checks · Asked for a secret · Done".
  • Typecheck of apps/web and the commit's format, lint and knip checks pass

Built with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

@OmarAlex24
OmarAlex24 added this pull request to stack #24 November 11, 2026 19:11
@github-actions github-actions Bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Nov 11, 2026
@OmarAlex24 OmarAlex24 changed the title feat/milestones graph view feat(web): milestones become a map of plans, detours and agents Nov 11, 2026
@OmarAlex24 OmarAlex24 added the agent-context-increase Accepts a deliberate increase in the agent context budget label Nov 11, 2026
@OmarAlex24
OmarAlex24 marked this pull request as ready for review November 11, 2026 19:37
@OmarAlex24
OmarAlex24 force-pushed the feat/milestones-graph-view branch from 4808e01 to a26eb34 Compare November 11, 2026 19:47
@github-actions

Copy link
Copy Markdown

Thread transfer impact

⚠️ The latest CI run did not produce a thread transfer result for a26eb34.

This comment will update automatically after the next completed run.

OmarAlex24 and others added 10 commits November 11, 2026 14:46
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The view draws milestones down a rail in the order work started, with detours
and new plans on their own lanes. Selecting one zooms in and fans its agents and
posts out beside it. Asks from subagents move to a dock above the composer, and
the timeline view it replaces is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The shell leaves out idle subagent threads, so a finished agent's card had
no shell row and no last action. The map now keeps the coordinator's thread
family mounted while it is open, which brings those rows in with one read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An agent that ran no tools now shows its result (or progress while running)
as one plain line. Milestone and turn notes drop their markdown. The retry
flag was inferred from a matching title after a failure and could be wrong,
so failed roll-ups are plain counts and the "Second try" label is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…orkspace

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…name fits

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@OmarAlex24
OmarAlex24 force-pushed the feat/milestones-graph-view branch from a26eb34 to abfcc54 Compare November 11, 2026 20:47
@OmarAlex24
OmarAlex24 merged commit a827714 into feat/sandbox-environments Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-context-increase Accepts a deliberate increase in the agent context budget size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant