← All proposals

Context: AgentTree

A tree of agent cards: the lead on top, its sub-agents side by side below, their helpers under them, joined by thin connectors.

Net-new componentOpen in Storybook

proposals/AgentTree/context.md41 lines · View on GitHub

Context: AgentTree

Started 2026-11-18. Source: the designer's single-file reference (AgentCrew, a lead agent with its sub-agents as a live tree of cards), not ported as is. Working name: Agent Tree (the reference called it Agent Crew; "map", "orchestrator" and "team" were considered and set aside, see decisions.md).

Problem

A person who runs a lead agent and its sub-agents has no single view of who is doing what, how full each agent's context window is, what each one works with, and who handed work to whom. Agent Inbox lists tasks by what they need from you; it does not show the agents or how they relate.

Proposal

A tree of agent cards: the lead on top, its sub-agents side by side below, their helpers under them, joined by thin connectors. Every agent stays on screen for the whole run. Each card shows the agent, its status, what it does now, its context window, its tools and the last thing it was handed. A card opens a details panel (task, model, time, cost, tokens, tools) with steering (message, pause, resume, stop, retry, approve, decline). A handoff runs as a short light along the connectors. A project switcher sits top left. Wide containers lay the sub-agents out side by side; narrow ones indent every level.

Built from package Panel, AgentAvatar, StatusBadge, ProgressBar, Button, IconButton, TextInput, Badge and the local bare Select, with the local Icon and Spinner. Net-new: the tree layout and connectors, the handoff light, the details panel and the keyboard model.

Challenge

  • Does PDS already do this? No tree, graph or node-link component in beta.20. Closest: Timeline / VerticalStepper (a line, not a tree), charts/, StatusIndicator.
  • Could an existing component carry it? No. Hierarchy with live status, connectors and a keyboard tree model are their own behavior.
  • Composition or component? New component composed of PDS parts, with its own state and API.
  • Who needs it? Not yet known (open).
  • Overlap with another proposal: Agent Inbox (same agents and statuses, different question; the Inbox opens a task, the Tree opens an agent). They share a status vocabulary (decision 5, 2026-11-18, "ok"), so the port is one union. Event Log is not used.
  • Cost: 6 statuses, 2 layouts, 3 levels of card, a details panel with steering, a project switcher, a handoff animation, a Figma component. No ripple: nothing imports it.
  • Verdict: new component (the designer's decision, 2026-11-18).

Source

The AgentCrew file the designer pasted on 2026-11-18. Its Hugeicons (MIT) icons are replaced by PDS icons. Its Gradient Floor (a soft floor of light on the receiving card) was removed on 2026-11-18 (see decisions.md).

Constraints

  • Tokens only; the file's --aui-* variables, hex and rgba values, px sizes and font stack become --pds-*.
  • Content is not hardcoded: every visible string is in labelStrings or in the agent data.
  • Light and dark, keyboard operable, a tree role with the cards as tree items, reduced motion honored.
  • One status union shared with Agent Inbox.

Open questions

  • Who needs it first, and is a second use known?
  • Should the handoff stroke on a receiving card stay, now that the AI border is only for working agents?
  • Does Agent Inbox take the same status union, and does an inbox card open the matching tree agent?