Tool networkPro
Agents and the tools they call as a living network – a pulse along the link for every call and its answer, agents that breathe while they work and turn amber when they need you, and a card with each node's latest calls.
oxyn add tool-network- Orchestrator (agent, working): Dividing the release into four jobs. Cost $0.02.
- Writer (agent, working): Drafting the announcement.
- Researcher (agent, working): Collecting what shipped.
- Coder (agent, working): Patching the release script.
- Analyst (agent, working): Sizing the audience.
- Slack (tool, idle)
- You (user, idle)
- Web search (tool, idle)
- Notion (tool, idle)
- GitHub (tool, idle)
- HubSpot (tool, idle)
- Database (tool, idle)
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
- Agents and the tools they call as a living network: the lead in the middle, the other agents on an inner orbit, tools and you on the outer one; a pulse along the link for every call and its answer, agents that breathe while they work and turn amber when they need you; a click opens a node's card with its latest calls.
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
Tool network 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 tool-networkUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Default
The lead in the middle, four agents around it and seven tools plus you on the outer orbit; every call runs a pulse out and its answer back, agents breathe, finish, fail and wait for you.
- Orchestrator (agent, working): Dividing the release into four jobs. Cost $0.02.
- Writer (agent, working): Drafting the announcement.
- Researcher (agent, working): Collecting what shipped.
- Coder (agent, working): Patching the release script.
- Analyst (agent, working): Sizing the audience.
- Slack (tool, idle)
- You (user, idle)
- Web search (tool, idle)
- Notion (tool, idle)
- GitHub (tool, idle)
- HubSpot (tool, idle)
- Database (tool, idle)
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Card
The lead's card: status, what it does, its latest calls with spinners and times, its cost and calls in the last minute.
- →Researcher · Gather what shipped
- →Slack · Update the channel600ms
- →Writer · Draft the announcement1.8s
- →Analyst · Size the audience1.5s
- Orchestrator (agent, working): Waiting on four agents. Calls in the last minute: Researcher 2, Coder 1, Analyst 1, Writer 1, Slack 1. Cost $0.09.
- Writer (agent, working): Drafting the announcement. Calls in the last minute: Notion 2, Slack 1. Cost $0.04.
- Researcher (agent, working): Collecting what shipped. Calls in the last minute: Web search 3, Notion 2. Cost $0.07.
- Coder (agent, working): Patching the release script. Calls in the last minute: GitHub 2, Stripe 1. Cost $0.04.
- Analyst (agent, working): Sizing the audience. Calls in the last minute: Database 3, HubSpot 2. Cost $0.06.
- Slack (tool, idle)
- You (user, idle)
- Web search (tool, idle)
- Notion (tool, idle)
- Stripe (tool, idle)
- GitHub (tool, idle)
- HubSpot (tool, idle)
- Database (tool, idle)
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Needs you
Settled with the Writer waiting (amber, "Writer needs you") and the Coder failed (red, "Coder failed"); two agents done.
- →You · Post the draft?
- →Notion · Save the draft800ms
- →Slack · Post a preview700ms
- →Notion · Save the draft800ms
- Orchestrator (agent, working): Waiting on four agents. Calls in the last minute: Researcher 2, Coder 3, Analyst 2, Writer 2, Slack 2. Cost $0.14.
- Writer (agent, needs you): Can I post the draft to #release-room?. Calls in the last minute: Notion 4, Slack 3, You 1. Cost $0.10.
- Researcher (agent, done): Handed over 9 changes. Calls in the last minute: Web search 3, Notion 3. Cost $0.08.
- Coder (agent, failed): The sandbox check timed out. Calls in the last minute: GitHub 5. Cost $0.07.
- Analyst (agent, done): 1,180 teams to reach. Calls in the last minute: Database 5, HubSpot 3. Cost $0.10.
- Slack (tool, idle)
- You (user, idle)
- Web search (tool, idle)
- Notion (tool, idle)
- GitHub (tool, idle)
- HubSpot (tool, idle)
- Database (tool, idle)
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Narrow
Narrow: taller than wide, smaller nodes, short labels, no model line; the card docks to the bottom.
- Orchestrator (agent, working): Waiting on four agents. Calls in the last minute: Researcher 2, Coder 3, Analyst 2, Writer 2, Slack 2. Cost $0.14.
- Writer (agent, needs you): Can I post the draft to #release-room?. Calls in the last minute: Notion 4, Slack 3, You 1. Cost $0.10.
- Researcher (agent, done): Handed over 9 changes. Calls in the last minute: Web search 3, Notion 3. Cost $0.08.
- Coder (agent, failed): The sandbox check timed out. Calls in the last minute: GitHub 5. Cost $0.07.
- Analyst (agent, done): 1,180 teams to reach. Calls in the last minute: Database 5, HubSpot 3. Cost $0.10.
- Slack (tool, idle)
- You (user, idle)
- Web search (tool, idle)
- Notion (tool, idle)
- GitHub (tool, idle)
- HubSpot (tool, idle)
- Database (tool, idle)
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Classic
Classic style: blue links that grow thicker with traffic, the bar on a grey band, the "Busier link" legend.
- Orchestrator (agent, working): Waiting on four agents. Calls in the last minute: Researcher 2, Coder 1, Analyst 1, Writer 1, Slack 1. Cost $0.09.
- Writer (agent, working): Drafting the announcement. Calls in the last minute: Notion 2, Slack 1. Cost $0.04.
- Researcher (agent, working): Collecting what shipped. Calls in the last minute: Web search 3, Notion 2. Cost $0.07.
- Coder (agent, working): Patching the release script. Calls in the last minute: GitHub 2, Stripe 1. Cost $0.04.
- Analyst (agent, working): Sizing the audience. Calls in the last minute: Database 3, HubSpot 2. Cost $0.06.
- Slack (tool, idle)
- You (user, idle)
- Web search (tool, idle)
- Notion (tool, idle)
- Stripe (tool, idle)
- GitHub (tool, idle)
- HubSpot (tool, idle)
- Database (tool, idle)
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
ToolNetwork
| Prop | Type | Default | Description |
|---|---|---|---|
scene | Option<GraphScene> | Default::default() | Your own graph (the demo's when `None`). |
title | String | "Agent graph" | Heading of the bar. |
at | Option<u64> | Default::default() | Freeze the demo at this many ms into a pass (a settled state). |
open | String | Default::default() | The node whose card is open at the start (id). |
heat_window | u64 | 20_000 | How far back (ms) calls count towards calls per minute and a link's heat (Classic). |
height | f32 | Default::default() | Fixed height of the wide graph in px (0 = 0.6 × its 756 px design width). |
nowrequired | ClockMs | — | The clock. |
style | String | Default::default() | `clean`, `classic`, or empty to follow `data-cstyle`. |
on_select | EventHandler<String> | — | A node's card opened (its id) – empty when it closes. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Between the "needs you" / "failed" chips and the nodes; a focused node lights up its neighbourhood |
| EnterorSpace | Opens or closes the focused node's card |
| Esc | Closes the card and returns focus to its node |
Accessibility
- Every node is a button named with its name, kind, status, what it does and its calls in the last minute; aria-expanded says whether its card is open.
- The card is a dialog; its close button takes focus, Esc closes it.
- A visually hidden list gives the same picture as text: every node, its status, whom it called how often and its cost.
- The chips sit in a polite live region; status is never colour alone – a badge and a line under the name.
Responsive behaviour
- The layout is computed for a wide and a narrow box with x as a share of the width, so it fits its container.
- Below 520 px the graph turns taller than wide, nodes shrink, labels use short names and the card docks to the bottom.
- Labels and the outer orbit stay inside the panel – nothing is cut off and nothing scrolls.
Edge cases (spec)
The layout is computed for a wide (756 × 454) and a narrow (360 × 432) box, x as a share of the width, so it fits the container. Below 520 px the narrow one shows: taller than wide, nodes at 80 %, short labels, no model line, the card docked to the bottom of the graph, "calls/min" dropped from the bar. Nothing scrolls or is cut off down to 320 px.
Notes for AI
- Import
ToolNetworkfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
ToolNetworkElinoxyn_gpui. - Props to set first:
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.