Agent Overview
One agent's dashboard from the six agent chart cards – what it did, what it costs, how fast it is, what it's doing now and when it runs next.
Part of affectUI Pro. Install: npx shadcn@latest add https://www.affectui.com/r/agent-overview.json · Import from @/components/ui/agent-overview
When to use
- One agent's page in a dashboard: what it did, what it costs, how fast it is, what it's doing now and when it runs next
- An overview where every card links on to its own detail view through its Open button
When not to use
- Many agents side by side – use Mission Control or Agent Monitor
- One run step by step – use Run Inspector
Usage
import { AgentOverview } from "@/components/blocks/agent-overview";
<AgentOverview
title="Research agent"
subtitle="This week"
activity={{ title: "Tool calls", tools, days }}
timeSplit={{ title: "Time this week", slices }}
budget={{ title: "Tokens per run", runs, limit: 250_000, models }}
latency={{ title: "Response time", points, target: 2500 }}
transit={{ title: "Customer migration", from, to, progress, eta }}
window={{ title: "Next run", range, start, end, now, onChange }}
/>Props
| Name | Type | Default | Description |
|---|---|---|---|
title | string | Heading above the cards, e.g. the agent's name – no heading when left out | |
subtitle | string | A quiet line under the heading, e.g. "This week" | |
activity | ToolActivityProps | Tool Activity – the tools it used, day by day | |
timeSplit | AgentTimeSplitProps | Agent Time Split – where its time went | |
budget | TokenBudgetProps | Token Budget – tokens per run against a limit | |
latency | LatencyRangeProps | Latency Range – how fast it answers, hour by hour | |
transit | RunTransitProps | Run Transit – the job it carries right now | |
window | RunWindowProps | Run Window – when it may run | |
className | string | Extra class on the root |
Keyboard
- Tab: Through the cards in reading order – every chart is one stop, then its Open button
- ArrowLeft / ArrowRight: On a chart: steps through its days, hours or runs; on the run window: moves it
- Esc: Lets go of the point
Accessibility
- A section labeled with the title ("Agent overview" without one); every card keeps its own labels, descriptions and keyboard as on its own page
Responsive
- Two cards side by side; under 720px of container width one column – it follows its container, not the window
- Every card has the same height, so the rows line up
- Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"
Requirements
- React 19
- Tool Activity, Agent Time Split, Token Budget, Latency Range, Run Transit and Run Window
Related
- Tool Activity – Which tools an agent used, day by day, as a field of dots – each lights up in its tool's color, the stronger the busier, with today's calls and the total on top
- Agent Time Split – Where an agent's time went – working, tool calls, waiting on you and idle – as a strip of thin ticks under the total, with every part's time and share below
- Token Budget – How many tokens an agent's runs take against a limit – the average per run large, every run as a bar in its model's color, the part above the limit in pink
- Latency Range – How fast an agent answers, hour by hour, like a blood-pressure chart – every hour as a bar from p50 to p95, pink above the target, the latest large and in blue
- Run Transit – An agent carrying a job from one place to another like a flight on its way – where it comes from, where it goes, the time left and a bar its pixel mark rides on
- Run Window – When an agent may run, as a block on a time ruler with its pixel mark and a thin line for now – drag the window or its grips to move it