AI agent runs
Shown as Ostrel, a made-up product
A light desk for a team's coding agents: 30 days of agent time with the hours spent waiting on a person in orange, an approval queue you can clear, and every run in one table.
Installation
pnpm dlx shadcn@latest add "https://propui.dev/r/ostrel-agents.json?token=…"Adds the piece to components/propui/02-ostrel-agents/ and installs motion. Needs a free account: sign in and the command includes your token. Fonts load from Prop UI; download the zip to self-host them.
When to use
Reach for it when
- A desk for a team's coding agents: how much they ran, merged and spent, and how long they waited on a person.
- Clearing a queue of approval requests, each with the exact command or change it would make.
- Any tool where automated work pauses for a human yes or no and that waiting time matters.
Something else fits when
- Following one agent's run step by step: Run rewind shows a single run as a thread you can redirect.
- A plain chat with an assistant: use a message thread.
- A team with no approvals or caps: a runs table alone is lighter.
Usage
Fills a full window: give it a container with a definite height.
import Piece from "@/components/propui/02-ostrel-agents/Section";
export default function Page() {
return (
<main className="h-dvh w-full overflow-hidden">
<Piece />
</main>
);
}Replace the DAYS generator, AGENTS, APPROVALS and RUNS in data.ts, and connect decide(), undo() and start() in Section.tsx to your backend. The metrics, deltas, chart, lede and table counts are computed from the data.
Your data
Replace these and everything on screen follows.
DAYS{ date; runs; merged; failed; agentH; waitH; spend }[]- 60 days of history: the period metrics, their changes and the 30-day chart (CHART).
PERIODS{ value; label; span; noun; prev }[]- The Today, 7 days and 30 days switch and the wording of the lede.
AGENTSRecord<AgentId, { name; job }>- Agent names in the queue, the table, 'Agents now' and the New run picker.
APPROVALS{ id; agent; run; task; mins; cost; ask; detail; why; repo; waited; risky? }[]- The 'Waiting on you' queue; each also shows as a waiting row in the runs table.
RUNS{ id; agent; task; status; note; mins; cost; repo }[]- The rest of the runs table.
BUDGET, WORKSPACESnumber, { id; name; plan; mark }[]- The sidebar spend meter and the workspace switcher (both in Section.tsx).
Interactions
- Switch Today, 7 days or 30 days: the metrics, their changes, the lede and the lit days on the chart follow.
- Hover or focus a day's bar to read its agent time and time spent waiting.
- Approve or deny a request: it leaves the queue, the counts and the run's status update, and a toast offers Undo for 5 seconds.
- Filter runs by status, search them, or pick an agent in the sidebar to show only its runs.
- Start a run from New run: pick an agent, describe the task, press Start.
- Collapse the sidebar to icons; switch workspace or open the account menu.
Keyboard
- ⌘KorCtrl+K
- Focus the runs search.
- Tab
- Move between controls; each chart bar is a button, so Tab reads day by day.
- EnterorSpace
- Press the focused button: approve, deny, filter, open a menu.
- Enter
- In the New run form, start the run.
- Esc
- Close the New run form (focus returns to its button), a menu, or the phone sidebar.
Behaviour
Read from the code: roles, motion, breakpoints and what runs.
Accessibility
- Each chart bar is a button with a label giving the date, hours of agent time and hours waiting.
- The period switch, status filter and agent picker are groups of buttons with aria-pressed and a group label.
- The approve or deny toast has role=status; the New run hint is a polite live region and the task field sets aria-invalid when empty.
- New run opens a labelled dialog with focus moved to the task field; the workspace and account menus use role=menu with menuitemradio or menuitem.
- The queue and runs table sit in focusable, labelled scroll areas; the spend bar is a meter with min, max and value.
- The status in the runs table is written out as text, not only a coloured dot.
- Menus close on Esc or a click outside, but have no arrow-key movement between items.
Motion
- The main moment: on load the 30 bars grow up from the baseline one after another, with the orange waiting slice inside each.
- Figures roll to new values on a spring when the period changes or a request is decided.
- The pill under the active period or filter slides between options; decided requests fade and the queue closes the gap.
- The day readout and its dashed guide glide to the hovered bar; lit bars change colour with a small stagger.
- Reduced motion: rolling figures jump, CSS transitions on the bars, readout and guide are switched off, and MotionConfig follows the system setting so transform and layout animations stop.
Responsive
- Above 1100px the piece fills the window (100dvh): sidebar, then a grid with the chart and runs on the left and the queue down a 360px right column.
- At 1500px and below the 'Now' column of the runs table is hidden.
- At 1100px and below the page scrolls, the sidebar becomes a drawer behind a menu button, and the queue, chart and runs stack.
- At 900px and below the four metrics go two by two.
- At 560px and below the find button shrinks to an icon, the legend hides, the day readout sits as a line above the bars, and the Agent and Time columns hide.
Performance
- No animation loop or canvas; one 5-second timer clears the toast.
- 60 days of history are generated once from a fixed seed, so server and client render the same.
- No images: three local font files (Geist Sans in two weights, Geist Mono) and inline SVG.
Notes for AI
Give your coding assistant the Markdown, not a screenshot.
- Keep records in data.ts; the metrics, deltas, chart scale and lede are derived. Don't type figures into Section.tsx.
- A request's run appears in the table through the rows memo in Section.tsx; keep APPROVALS run ids unique and apart from RUNS ids.
- The chart always shows the last 30 days (CHART); a period only changes which are lit.
- Every class starts os- and every selector is scoped under .os; keep colours in the tokens at the top of post.css.
- The root is 100dvh tall above 1100px; inside a page, give it its own fixed-height frame.
/p/ostrel-agents/markdownThe whole library for assistants: llms.txt, or the MCP server in AI tools and MCP.