Skip to content
Back

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-tree

Agents

1 running · 1 need you · 3 done$1.08
LeadOpus 5.5
Ship the pricing page refresh
$1.084m 0s
Researcher
Compare 4 competitor pricing pages
$0.552m 13s
Browser 1
Read linear.app/pricing
$0.062m 0s
Browser 2
Read vercel.com/pricing
$0.071m 53s
WriterSonnet 5.5
Draft new plan copy
$0.221m 30s
ReviewerNeeds you
Check copy against brand rules
$0.0430s
Coder
Update pricing.tsx
$0.00
The code is part of Oxyn Pro

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.

Get Pro

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.

Terminal
oxyn add agent-tree

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Needs you

The reviewer needs you.

Agents

1 running · 1 need you · 3 done$1.08
LeadOpus 5.5
Ship the pricing page refresh
$1.084m 0s
Researcher
Compare 4 competitor pricing pages
$0.552m 13s
Browser 1
Read linear.app/pricing
$0.062m 0s
Browser 2
Read vercel.com/pricing
$0.071m 53s
WriterSonnet 5.5
Draft new plan copy
$0.221m 30s
ReviewerNeeds you
Check copy against brand rules
$0.0430s
Coder
Update pricing.tsx
$0.00
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Failed

The reviewer failed: Retry / Dismiss.

Agents

1 running · 0 need you · 3 done · 1 failed$1.08
LeadOpus 5.5
Ship the pricing page refresh
$1.084m 0s
Researcher
Compare 4 competitor pricing pages
$0.552m 13s
Browser 1
Read linear.app/pricing
$0.062m 0s
Browser 2
Read vercel.com/pricing
$0.071m 53s
WriterSonnet 5.5
Draft new plan copy
$0.221m 30s
ReviewerFailed
Check copy against brand rules
$0.0430s
Coder
Update pricing.tsx
$0.00
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Folded

A folded branch.

Agents

1 running · 1 need you · 3 done$1.08
LeadOpus 5.5
Ship the pricing page refresh
$1.084m 0s
WriterSonnet 5.5
Draft new plan copy
$0.221m 30s
ReviewerNeeds you
Check copy against brand rules
$0.0430s
Coder
Update pricing.tsx
$0.00
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

AgentTree

PropTypeDefaultDescription
rootrequiredCrewAgent—Root agent.
nowrequiredClockMs—Shared clock.
titleString"Agents"Heading.
foldedVec<String>Default::default()Folded branch ids.
on_foldEventHandler<String>—Fold / open a branch.
on_resolveEventHandler<(String, Resolve)>—Answer for a waiting or failed agent.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabFold 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 AgentTree from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: AgentTreeEl in oxyn_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.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI