Agent runPro
One card that follows a coding agent through a task: steps stream in with the live one shimmering, the agent stops on a proposed change for you to approve or send back with a note, then the result with Open pull request.
oxyn add agent-runAdd rate limiting to the public API
- Read src/api/router.rs3s
- Searched for “middleware”2s
- Planned a token bucket per API key9s
- Waiting for your reviewNeeds you
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
- One card that follows a coding agent through a task: the model and task in the header, steps streaming in as a dense trail with the live one shimmering, a stop on a proposed change (file + diff) to Approve & write or Request changes with a note, then the result line with Open pull request.
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 run 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 agent-runUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Review
Stops on a diff for review.
Add rate limiting to the public API
- Read src/api/router.rs3s
- Searched for “middleware”2s
- Planned a token bucket per API key9s
- Waiting for your reviewNeeds you
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Running
Steps streaming.
Add rate limiting to the public API
- Read src/api/router.rs3s
- Searched for “middleware”2s
- Planned a token bucket per API key9s
- Implement the limiterWriting limit.rs6s
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Done
Result with Open pull request.
Add rate limiting to the public API
- Read src/api/router.rs3s
- Searched for “middleware”2s
- Planned a token bucket per API key9s
- Implemented the limiter21s
- Ran 14 tests8s
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
AgentRun
| Prop | Type | Default | Description |
|---|---|---|---|
taskrequired | String | — | Task (title). |
modelrequired | String | — | Model name. |
stepsrequired | Vec<TrailStep> | — | Steps so far. |
change | Option<(String, Vec<String>)> | Default::default() | Proposed change `(file, diff lines)` waiting for review. |
result | Option<String> | Default::default() | Result line once done ("12 tests passed"). |
nowrequired | ClockMs | — | Shared clock. |
on_approve | EventHandler<()> | — | Approve the change. |
on_reject | EventHandler<String> | — | Send it back with a note. |
on_pr | EventHandler<()> | — | Open a pull request. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Request changes, Approve & write, Open pull request |
Accessibility
- The change is a labelled region; Request changes opens a note field.
From the spec
- The change is a labelled region.
Motion & interaction
Timing
- Reduced motion: no entrance rise, no shimmer (static muted text), rings and bars jump to their value.
Responsive behaviour
- Diff lines scroll inside their frame.
Edge cases (spec)
- Diff scrolls in its frame.
Notes for AI
- Import
AgentRunfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
AgentRunElinoxyn_gpui. - Props to set first:
task,model,steps,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.