Skip to content
Back

Relay trailPro

A task passed from agent to agent like a relay – at every handoff what went along to the next one, what got lost on the way, and a light running down the line as the card drops in.

oxyn add relay-trail
ResearcherOpus 4.1$1.18Idle

Gathers the sources, checks the facts and picks the angle.

WriterGPT-5$0.54Idle

Shapes the brief into a first draft in the house voice.

Ready for a task
ReviewerGemini 2.5 Pro$0.27Idle

Tests each claim against its source before release.

Ready for a task
ResearcherWriter4
WriterReviewer4
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

  • A task passed from agent to agent like a relay: at every handoff, what went along to the next agent and what got lost on the way.
  • People can push a task on to a later agent and watch it travel down the relay.

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

Relay trail 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 relay-trail

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

Default

The Researcher picks up the next task, hands it to the Writer and on to the Reviewer – a light runs along the lines, the card drops into its column and the costs tick up.

ResearcherOpus 4.1$1.18Idle

Gathers the sources, checks the facts and picks the angle.

WriterGPT-5$0.54Idle

Shapes the brief into a first draft in the house voice.

Ready for a task
ReviewerGemini 2.5 Pro$0.27Idle

Tests each claim against its source before release.

Ready for a task
ResearcherWriter4
WriterReviewer4
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

Handing on

Frozen just after a handoff: the new card on top of the column, "With Writer" and the Writer drafting.

ResearcherOpus 4.1$1.41Idle

Gathers the sources, checks the facts and picks the angle.

WriterGPT-5$0.60Working

Shapes the brief into a first draft in the house voice.

ReviewerGemini 2.5 Pro$0.27Idle

Tests each claim against its source before release.

Ready for a task
ResearcherWriter5
WriterReviewer4
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

Card open

A handoff card open in place: everything that went along, and the lost item struck through.

ResearcherOpus 4.1$1.41Idle

Gathers the sources, checks the facts and picks the angle.

WriterGPT-5$0.71Idle

Shapes the brief into a first draft in the house voice.

Ready for a task
ReviewerGemini 2.5 Pro$0.36Idle

Tests each claim against its source before release.

Ready for a task
ResearcherWriter5
    • winback-brief.md
    • 9 sources
    • Open with the fix
WriterReviewer5
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

Lost item

The lost item open: why it got lost, and Add back.

ResearcherOpus 4.1$1.41Idle

Gathers the sources, checks the facts and picks the angle.

WriterGPT-5$0.71Idle

Shapes the brief into a first draft in the house voice.

Ready for a task
ReviewerGemini 2.5 Pro$0.36Idle

Tests each claim against its source before release.

Ready for a task
ResearcherWriter5
    • winback-brief.md
    • 9 sources
    • Open with the fix
    • Cut to fit the Writer's 32k context budget before the handoff.
WriterReviewer5
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

Stacked

Below 620 px the relay stacks into one column: an agent, its handoff, the next agent.

ResearcherOpus 4.1$1.41Idle

Gathers the sources, checks the facts and picks the angle.

WriterGPT-5$0.71Idle

Shapes the brief into a first draft in the house voice.

Ready for a task
ReviewerGemini 2.5 Pro$0.36Idle

Tests each claim against its source before release.

Ready for a task
ResearcherWriter5
WriterReviewer5
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

Classic

Classic style: visible borders, crisper corners and the column header in a filled band.

ResearcherOpus 4.1$1.41Idle

Gathers the sources, checks the facts and picks the angle.

WriterGPT-5$0.71Idle

Shapes the brief into a first draft in the house voice.

Ready for a task
ReviewerGemini 2.5 Pro$0.36Idle

Tests each claim against its source before release.

Ready for a task
ResearcherWriter5
WriterReviewer5
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

RelayTrail

PropTypeDefaultDescription
sceneOption<HandoffScene>Default::default()Your own relay (the demo's when `None`).
atOption<u64>Default::default()Freeze the demo at this many ms into a pass (a settled state).
openStringDefault::default()A handoff card open at the start (its id).
open_itemStringDefault::default()A lost item open at the start (its id, inside the open card).
nowrequiredClockMs—The clock.
styleStringDefault::default()`clean`, `classic`, or empty to follow `data-cstyle`.
on_assignEventHandler<(String, String)>—A card was dropped on an agent: (task title, agent id).
on_restoreEventHandler<(String, String)>—"Add back" on a lost item: (handoff id, item id).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabThrough the waiting tasks, the agents (while a task is picked up) and the handed-over items
EnterorSpaceOpens a card or an agent's task; on a lost item: shows why, and Add back
EscDrops a picked-up card, then closes what is open

Accessibility

  • Tasks can be given to an agent without dragging: double-click a card, then click an agent to its right.
  • Each column and each handoff's items are labelled lists; cards and lost items are buttons with aria-expanded.
  • Status is never colour alone: a spinner, a dot or a triangle beside the words.

Responsive behaviour

  • Below about 760 px the status shows as an icon only.
  • Below 620 px the relay stacks into one column – an agent, its handoff, the next agent.
  • Cards keep their size; the columns fade out at the bottom instead of scrolling.
Edge cases (spec)

Below about 760 px the status pill shows as an icon only; below 620 px the relay stacks into one column – an agent, its handoff column (with a blue rail), the next agent. Cards keep their size; columns fade out instead of scrolling.

Notes for AI

  • Import RelayTrail from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: RelayTrailEl in oxyn_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.

Guides

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