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-pipelineMake the checkout page load under 1 s
Loops until Lighthouse score ≥ 85% · up to 5 rounds
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
- 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.
oxyn add loop-pipelineUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
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
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
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
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
First try
Passes on the first round.
Make the checkout page load under 1 s
Loops until Lighthouse score ≥ 60% · up to 5 rounds
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
LoopPipeline
| Prop | Type | Default | Description |
|---|---|---|---|
nowrequired | ClockMs | — | Host clock. |
target | u32 | 85 | Target score (percent). |
max_rounds | usize | 5 | Most rounds. |
show_history | bool | true | Round chips with scores. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Space | Pause or resume |
| Escape | Stop the loop |
| ← → · HomeorEnd | Move 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.
| Transition | Duration | Easing |
|---|---|---|
| Station | 700 ms (STATION_MS) | linear |
| Round | 2100 ms | — |
| Chip in | 180 ms | ease-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
LoopPipelinefromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
XPostViewinoxyn_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.