Skip to content

Agent Health

One card that answers whether an agent is OK and what to do next. A 0-100 gauge with its change since the last period and a countdown to the next milestone, five signals with sparklines, a summary written from them by your model, and a single recommended action.

On this page

Examples

Controlled period

Error states

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

agentrequired
{ name, environment?, owner? }
Who the card is about: the name, an environment badge such as production, and an owner line.
periodsrequired
Record<string, HealthPeriod>
The data by period key, in the order of the switch. 24h, 7d and 30d get their own labels; any other key is shown as it is. A period is { score, previousScore?, signals, milestone?, summary?, action? }. With one period there is no switch.
signals
HealthSignal[]
Defaultper period
Any count. { id, label, description, value, values, kind?, icon?, href? } plus a status: give `status`, or `current` with `thresholds: { good, risk }` and it is worked out (good above risk means higher is better, below means lower is better). Give every period the same number of points per sparkline so the lines can animate.
period / defaultPeriod / onPeriodChange
string / string / (key) => void
Defaultfirst key
Controlled and uncontrolled. Changing the period stops a running summary or action and shows the new period's own summary text and next step.
summarize
(input, signal) => Promise<string> | AsyncIterable<string>
Your model call. The input is plain data: agent, period, score, band, each signal with its status and description, and the milestone. Return the text, or yield chunks to stream it. Honour `signal`: Stop aborts it. While it runs the card shows a thinking state, then the text as it arrives. Without it, only a summary you pass in the period is shown.
model
string
Neutral text under a summary: Written by <model> from the signals above.
onAction / onSecondary
(action, input, signal) => Promise<string | void> / (action) => void
Runs the recommended action. The button shows a pending state; resolve (optionally with the text for the done line) or throw to show the message and Try again. onSecondary is the quieter button, for example open the failing runs.
milestone
{ label, date, startedAt? }
The countdown reads label + in 12 days. With startedAt there is a progress bar for how far along the stretch is.
asOf
Date | string | number
Defaultnow
The moment the countdown counts from. Fix it for tests and demos.
cuts
{ healthy, watch }
Default80, 60
Score at or above healthy is Healthy; at or above watch is Watch; below is Needs attention.
Motion
period switch
The gauge, the score and every sparkline move from the old values to the new in 280 ms. It plays only on a change, with reduced motion the new values appear at once, and a different number of points snaps instead of animating.
a11y
section
The gauge has a text equivalent (score, band and change). Colour is never the only cue: every signal states its status in words, and the change carries its sign. The summary and the action announce their state in a polite live region; errors use an alert.

When to use

When to use

  • A page for one agent or deployment where someone needs to know at a glance if it is fine and what to do about it.
  • A review of an agent after a change, with the signals that moved and one recommended step such as a rollback.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Agent Health to my app and wire it to my own data.
  • I need a page for one agent or deployment where someone needs to know at a glance if it is fine and what to do about it. Set that up with the Knowns UI Agent Health.
  • Which Agent Health props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "agent-health" }) and search_docs({ query: "agent health" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Agent Health, or found something off? We read every message.