affectUI › Screens › App screens
Agent / Releases
A new agent version rolling out step by step, side by side with the one it replaces, with gates that hold it back and the prompt diff of every release.
Part of affectUI Pro. Install: npx shadcn@latest add https://www.affectui.com/r/agent-releases.json · Import from @/components/ui/agent-releases
When to use
- Shipping a change to an agent – a new prompt, model or tool – to a share of its runs first, and widening it while the numbers hold
- Comparing the new version with the live one on success, feedback, latency and cost, and rolling back when a gate fails
When not to use
- Every run of the agents on a timeline – use Agent / Executions
- Scoring versions offline against a test set – use Evals
Usage
import { AgentReleasesScreen } from "@/components/ui/agent-releases";
export default function Page() {
return (
<AgentReleasesScreen
agent={{ id: "support", name: "Support agent", color: "#0190fe" }}
releases={releases} // newest first: [{ id, version, summary, author, at, status, share?, changes?, diff?, steps?, reason? }]
metrics={metrics} // [{ id, label, unit, stable, canary, better, gate? }]
runs={{ stable: 18_400, canary: 960 }}
nextStepAt={rollout.nextStepAt}
onPromote={(release, share) => api.setShare(release.id, share)}
onPause={(release, paused) => api.pause(release.id, paused)}
onRollback={(release) => api.rollback(release.id)}
/>
);
}Props
| Name | Type | Default | Description |
|---|---|---|---|
title | string | "Releases" | The page's title in the bar |
agent | ArlAgent | The agent – id, name and the color of its mark | |
releases | ArlRelease[] | Every release, newest first – version, summary, author, when (epoch ms), status (canary, paused, live, rolled-back, retired), the share of runs while it rolls out, its changes, the prompt as a diff, its rollout steps and why it was rolled back. Left out, a sample whose rollout plays from 5 % to everyone | |
metrics | ArlMetric[] | The live version and the new one side by side – label, unit (%, s, $), both values, which way is better and the gate | |
runs | { stable, canary } | Runs on each version since the rollout started | |
stages | number[] | [0.05, 0.25, 0.5, 1] | The steps of a rollout, as shares of the runs |
nextStepAt | number | When the next step comes, epoch ms – shown as a countdown | |
now | number | Where now stands, epoch ms – defaults to the clock | |
defaultOpen | string | null | "r15" | The release open in the work area when the screen starts |
onPromote | (release, share) => void | Promote to the next step, or Finish at the last one | |
onPause | (release, paused) => void | Pause or resume the rollout | |
onRollback | (release) => void | Roll back – the live version serves everyone again | |
onNewRelease | () => void | New release in the bar | |
loading | boolean | Gray rollout, rows and panel | |
empty | boolean | No releases yet |
Keyboard
- ↑ / ↓: From release to release – the list is one stop in the tab order
- Home / End: To the newest or the oldest release
- Enter: Open the release on the right – again on the open release folds it away
Accessibility
- The bar is named with the share of runs on the new version
- Each release row reads its version, summary, status, author and age
- Removed and added prompt lines are announced as such, not only colored
- A metric past its gate is announced politely; rings show for the keyboard only
Responsive
- The release opens in the App Shell's work area – resizable, and it folds away
- Narrower screens drop the gate and author columns; on phones the rollout buttons get their own row and each release shows its status and age beside the summary
- Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"
Requirements
- React 19
- @hugeicons/react
- @hugeicons/core-free-icons
- App Shell (installed with it)
Related
- Agent / Executions – Every run of a team of agents as one waterfall on a shared timeline, with a side panel to approve, retry or follow each run
- Agent / Guardrails – The rules a team of agents has to keep, with every catch landing live in a one-minute lane and the ones that need you approved right from the side panel
- Evals – Prompt evaluation dashboard: pass rate by version, reviewable prompt changes and test cases you can re-run
- Agent / Run Detail – One agent run, step by step – thinking, tool calls, sub-agents and failures as bars on one time axis, with time, cost and tokens on top and what went in and out of each step