Skip to content
Back

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-planner

Rate limit

4 runs · 25M tokens · 120k / min
Close to limit · peak 96%
120k96kNow 10:30Peak 115k · 16:35
Running
46k
15:00
82k
16:10
70k
23:00
64k
Busiest minute 16:35 at 115k – 96% of the limit.
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

  • 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.

Terminal
oxyn add load-planner

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

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 / min
Close to limit · peak 96%
120k96kNow 10:30Peak 115k · 16:35
Running
46k
15:00
82k
16:10
70k
23:00
64k
Busiest minute 16:35 at 115k – 96% of the limit.
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

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 / min
Under limit · peak 73%
120k96kNow 10:30Peak 88k · 21:20
Running
46k
20:50
82k
16:10
70k
23:00
64k
Busiest minute 21:20 at 88k – 73% of the limit.
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

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 / min
Over limit · 15:50–16:10
120k96kNow 10:30Peak 137k · 15:55
Running
46k
15:00
82k
15:30
70k
23:00
64k
Market scan takes the day over the limit at 15:50. It fits from 14:30.
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

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 / min
Over limit · 15:50–16:10
120k96kNow 10:30Peak 137k · 15:55
Running
46k
15:00
82k
15:30
70k
23:00
64k
Refresh the docs site takes the day over the limit at 15:50. It fits from 16:00.
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

Edit

The edit window: name, start, peak, how long it climbs and how fast it fades.

Rate limit

4 runs · 25M tokens · 120k / min
Close to limit · peak 96%
120k96kNow 10:30Peak 115k · 16:35
Running
46k
15:00
82k
16:10
70k
23:00
64k
Busiest minute 16:35 at 115k – 96% of the limit.
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

Narrow

Under 520 px the name column narrows and every other axis label drops out.

Rate limit

4 runs · 25M tokens · 120k / min
Close to limit · peak 96%
120k96kNow 10:30Peak 115k · 16:35
Running
46k
15:00
82k
16:10
70k
23:00
64k
Busiest minute 16:35 at 115k – 96% of the limit.
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: solid thin bars, square pills, a lighter area.

Rate limit

4 runs · 25M tokens · 120k / min
Over limit · 15:50–16:10
120k96kNow 10:30Peak 137k · 15:55
Running
46k
15:00
82k
15:30
70k
23:00
64k
Market scan takes the day over the limit at 15:50. It fits from 14:30.
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

LoadPlanner

PropTypeDefaultDescription
runsOption<Vec<RlRun>>Default::default()The runs (the demo's when `None`).
limitf64RL_LIMITLimit, thousand tokens per minute.
bufferf640.8Safety line as a share of the limit (0.8 draws it at 96k of 120k).
basef64RL_BASEBackground load, thousand tokens per minute.
nowOption<u32>Default::default()Chart minute of "now" (0 = 06:00); the demo's 10:30 when `None`.
selectedOption<String>Default::default()A run selected from the start (id).
editingOption<String>Default::default()The edit dialog open from the start for this run (id).
titleString"Rate limit"Heading.
styleStringDefault::default()`clean`, `classic`, or empty to follow `data-cstyle`.
on_runs_changeEventHandler<Vec<RlRun>>—The runs changed (moved, spread, added, edited or removed).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabMoves through the runs, their bars and buttons
Arrow keysMove a focused bar 5 minutes (Shift: 30)
EnterorSpaceSelects a run or presses a button
EscapeCloses 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 LoadPlanner from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: LoadPlannerEl in oxyn_gpui.
  • 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