affectUI › Screens › App screens
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.
Part of affectUI Pro. Install: npx shadcn@latest add https://www.affectui.com/r/agent-executions.json · Import from @/components/ui/agent-executions
When to use
- The executions of a multi-agent system – which agent runs what right now, who hands work to whom and where it is stuck
- Unblocking work: approving a run that waits on a person or retrying a failed one, and watching the runs behind it start
When not to use
- One run step by step on a time axis – use Agent / Run Detail
- Who handed what to whom inside one run – use Agent Run / Handoffs
Usage
import { AgentExecutionsScreen } from "@/components/ui/agent-executions";
export default function Page() {
return (
<AgentExecutionsScreen
title="Support Ops"
agents={agents} // [{ id, name, color, model? }]
runs={runs} // [{ id, title, agent, trigger, start, end?, status, progress, dependsOn?, cost?, tokens?, steps?, error?, ask?, blockedBy?, activity? }]
onApprove={(run) => api.approve(run.id)}
onReject={(run) => api.reject(run.id)}
onRetry={(run) => api.retry(run.id)}
/>
);
}Props
| Name | Type | Default | Description |
|---|---|---|---|
title | string | "Support Ops" | The team of agents in the head |
agents | AexAgent[] | The agents – id, name, color for its mark and bars, model | |
runs | AexRun[] | The runs – title, agent, trigger, start and end (epoch ms), status (done, running, waiting, failed, queued, blocked, canceled), progress 0–1, the runs it depends on (listed as handoffs in the panel), cost, tokens, steps, error, ask and blockedBy. Left out, a sample of five agents that plays on while Live is on | |
now | number | Where the now line stands, epoch ms – defaults to the clock | |
defaultOpen | string | null | "b1" | The run open in the work area when the screen starts |
onApprove / onReject | (run) => void | The decision on a run that waits on you | |
onRetry | (run) => void | Retry a failed run from the work area | |
onRunNow | () => void | Run now in the head | |
loading | boolean | Gray rows, bars and panel | |
empty | boolean | Nothing has run yet – a note in place of the waterfall | |
workspace | string | "Northwind" | The workspace in the sidebar |
onNavigate | (label: string) => void | Called with the label of a sidebar item | |
className | string | Extra class on the root |
Keyboard
- ↑ / ↓: From row to row – the list is one stop in the tab order
- Home / End: To the first or the last run
- Enter: Open the run on the right – again on the open run folds it away
Accessibility
- Each row is named with the run, its agent, status, progress, start and what blocks it
- The bars repeat what the rows say and are hidden from screen readers
- Runs waiting on you are announced politely; rings show for the keyboard only
- Closing the open run keeps the focus on its row
Responsive
- The run opens in the App Shell's work area – resizable, and it folds away
- Narrower screens slim the names column; on phones only Needs you and Failed keep their label beside the bar
- Past 120 runs only the rows in view are rendered, so a thousand runs scroll smoothly
- A run outside the time span keeps its time pinned to that edge; a run whose agent is gone shows with a gray mark
- 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 / 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
- Agent Run / Handoffs – One agent run as swimlanes – a lane per person, agent and tool, every handoff as an arrow and a row, approvals you decide right on the page
- Handoff Swimlanes – Who does what in an agent run, and where work changes hands – a lane per person, agent and tool, handoffs as arrows, approvals as diamonds you can approve in place
- Agent / Schedules – What your agent does again and again – the hours around now on one line, each run a mark that fills while it runs, and every schedule with its rhythm, next run and a pause switch