Load plannerPro
When agent runs happen across a day, drawn as the token load against an API's per-minute limit: drag a run's bar to move it, spread the runs out to lower the peak, and get the nearest start that keeps a run under the limit.
oxyn add load-plannerRate limit
4 runs · 25M tokens · 120k / minThe 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
- Plan when agent runs start so the day's token load stays under an API's per-minute limit, and see at a glance where it would not.
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
Load planner 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 load-plannerUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Close
Two afternoon runs crowd each other: the peak sits just under the limit and the pill turns amber.
Rate limit
4 runs · 25M tokens · 120k / minCode Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Spread
After Spread out: the movable runs glide apart, the peak drops and the pill turns green; Undo puts them back.
Rate limit
4 runs · 25M tokens · 120k / minCode Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Over
One run moved onto another: the part over the limit is hatched red, the pill names the stretch and the footer offers the nearest start that fits.
Rate limit
4 runs · 25M tokens · 120k / minCode Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Selected
The run causing the overrun picked: its row tints, its time turns red, remove and edit appear and Move to fixes it.
Rate limit
4 runs · 25M tokens · 120k / minCode Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Edit
The edit window: name, start, peak, how long it climbs and how fast it fades.
Rate limit
4 runs · 25M tokens · 120k / minCode Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Narrow
Under 520 px the name column narrows and every other axis label drops out.
Rate limit
4 runs · 25M tokens · 120k / minCode Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Classic
Classic style: solid thin bars, square pills, a lighter area.
Rate limit
4 runs · 25M tokens · 120k / minCode Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
LoadPlanner
| Prop | Type | Default | Description |
|---|---|---|---|
runs | Option<Vec<RlRun>> | Default::default() | The runs (the demo's when `None`). |
limit | f64 | RL_LIMIT | Limit, thousand tokens per minute. |
buffer | f64 | 0.8 | Safety line as a share of the limit (0.8 draws it at 96k of 120k). |
base | f64 | RL_BASE | Background load, thousand tokens per minute. |
now | Option<u32> | Default::default() | Chart minute of "now" (0 = 06:00); the demo's 10:30 when `None`. |
selected | Option<String> | Default::default() | A run selected from the start (id). |
editing | Option<String> | Default::default() | The edit dialog open from the start for this run (id). |
title | String | "Rate limit" | Heading. |
style | String | Default::default() | `clean`, `classic`, or empty to follow `data-cstyle`. |
on_runs_change | EventHandler<Vec<RlRun>> | — | The runs changed (moved, spread, added, edited or removed). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Moves through the runs, their bars and buttons |
| Arrow keys | Move a focused bar 5 minutes (Shift: 30) |
| EnterorSpace | Selects a run or presses a button |
| Escape | Closes the edit window, then clears the selection |
Accessibility
- Each bar is a slider whose value text is its start time; a run already under way is a disabled slider.
- The pill (under, close to or over the limit) is a status region; the chart is aria-hidden and the footer says the same in words.
- Over the limit is named in text with its times, never by the red hatching alone.
Responsive behaviour
- Rows keep 28 px; bars share the width after the name and time columns.
- Under 520 px the name column narrows, the axis keeps every other label and the now label drops out.
Edge cases (spec)
Rows keep 28 px. Under 520 px the name column narrows to 96 px, glyphs and the now label hide, the axis keeps every other tick and the footer wraps.
Notes for AI
- Import
LoadPlannerfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
LoadPlannerElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.