Agent TreePro
Who started whom: an orchestrator and its sub-agents as a live tree with status, cost and time on every card, costs rolling up each branch, branches that fold, and Approve / Reject or Retry / Dismiss for agents that need you or failed.
oxyn add agent-treeAgents
1 running · 1 need you · 3 done$1.08“Unlimited seats” conflicts with the Team plan limit of 50. Keep it?
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Who started whom: an orchestrator and its sub-agents as a live tree.
- Every card shows status, model, task, cost and time; a card with children shows its branch cost; branches fold to one line (“3 sub-agents folded”); the header counts running, need-you, done and failed and the total cost.
- An agent that needs you opens a window with its question and Approve / Reject; a failed one shows the error with Retry / Dismiss.
When not to use
- An agent asks before it acts: use Approval Card instead.
- Several open requests in one card: use Approval pager instead.
- An agent's question in its own card above the composer: use Decision Card instead.
Installation
Agent Tree is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add agent-treeUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Needs you
The reviewer needs you.
Agents
1 running · 1 need you · 3 done$1.08“Unlimited seats” conflicts with the Team plan limit of 50. Keep it?
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Failed
The reviewer failed: Retry / Dismiss.
Agents
1 running · 0 need you · 3 done · 1 failed$1.08Brand rules doc is private (403).
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Folded
A folded branch.
Agents
1 running · 1 need you · 3 done$1.08“Unlimited seats” conflicts with the Team plan limit of 50. Keep it?
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
AgentTree
| Prop | Type | Default | Description |
|---|---|---|---|
rootrequired | CrewAgent | — | Root agent. |
nowrequired | ClockMs | — | Shared clock. |
title | String | "Agents" | Heading. |
folded | Vec<String> | Default::default() | Folded branch ids. |
on_fold | EventHandler<String> | — | Fold / open a branch. |
on_resolve | EventHandler<(String, Resolve)> | — | Answer for a waiting or failed agent. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Fold buttons, Approve / Reject, Retry / Dismiss |
Accessibility
- role=tree with treeitems carrying aria-level and aria-expanded.
- The needs-you window is a dialog named “<agent> needs you”.
From the spec
- role=tree, treeitem with aria-level / aria-expanded; windows are dialogs.
Motion & interaction
Timing
- Reduced motion: no entrance rise, no shimmer (static muted text), rings and bars jump to their value.
Responsive behaviour
- 22 px indent per level; costs and times stay right.
Edge cases (spec)
- 22 px indent per level.
Notes for AI
- Import
AgentTreefromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
AgentTreeElinoxyn_gpui. - Props to set first:
root,now. - It reads a clock (
now) for live timers; pass one clock for the whole page rather than one per component. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.