Skip to content
Back

Loop pipelinePro

An agent working in rounds: a marker runs Work, Check and Improve round a loop, each round leaves a scored chip, and the loop exits to Done at the target or stops at the round limit with the best score and One more round.

oxyn add loop-pipeline

Make the checkout page load under 1 s

Loops until Lighthouse score ≥ 85% · up to 5 rounds

Best0%
Round 1 of up to 5 · Work
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

  • Show an agent that works in rounds (work, check, improve) until a check passes, with every round and its score kept in view.

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

Loop pipeline 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 loop-pipeline

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

Passes

Exits on round 4 at 88%.

Make the checkout page load under 1 s

Loops until Lighthouse score ≥ 85% · up to 5 rounds

Best0%
Round 1 of up to 5 · Work
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

Runs out

Target out of reach: stops after 3 rounds and offers one more.

Make the checkout page load under 1 s

Loops until Lighthouse score ≥ 95% · up to 3 rounds

Best0%
Round 1 of up to 3 · Work
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

First try

Passes on the first round.

Make the checkout page load under 1 s

Loops until Lighthouse score ≥ 60% · up to 5 rounds

Best0%
Round 1 of up to 5 · Work
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

LoopPipeline

PropTypeDefaultDescription
nowrequiredClockMs—Host clock.
targetu3285Target score (percent).
max_roundsusize5Most rounds.
show_historybooltrueRound chips with scores.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
SpacePause or resume
EscapeStop the loop
← → · HomeorEndMove between round chips

Accessibility

  • The status line always names the round, the station and the score; the ring is decorative.
  • Round chips are a list of buttons that speak their score.
  • Pause holds the clock so nothing moves.
From the spec

The status line names the round, station and score; the ring is decorative; round chips are buttons in a list; Space pauses, Escape stops, arrows move between chips. Every action returns the line the polite live region announces. The focus outline shows only for keyboard focus.

Motion & interaction

A marker travels round a dashed loop; the active station outlines; the round number rolls; each finished check drops a chip with its score (green at or above target). On success the loop turns solid green.

Timing

Everything on screen is derived from the host clock now (no timers in the component), so playback, tests and the GPUI view agree.

TransitionDurationEasing
Station700 ms (STATION_MS)linear
Round2100 ms—
Chip in180 msease-out

Reduced motion: CSS motion is cut to a frame; decorative bands and rings are hidden or still; state and text changes stay.

Responsive behaviour

  • The loop and the score panel stack under 520 px.
Edge cases (spec)

The ring and the score panel sit side by side and stack under 520 px. The final round ends at Check (no Improve after the last score). Checked at 1440, 768 and 390 px in light and dark with no text overlap. Chrome is monochrome grey; colour is semantic only (success, warning, danger, info) plus the official coloured brand marks.

Notes for AI

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