Skip to content

Agent Activities

Six capsules for agents that run while a person does something else: run progress with Approve and Chat, an ETA with a mini graph, a budget as thin ticks, a budget-left ring, a voice agent and a handoff. Each is the Live Activity shell with the right pieces inside.

On this page
Used for
  • Agent run progress
  • Approval waiting
  • Time and token budget
  • Voice agent on a call
  • Handoff to another agent

Examples

Stage

ETA with a graph

Minutes

Budget as ticks

Used

Budget left as a ring

Left

Voice

Mode

Handoff

Pills and cards

Tones

Installation

Installation is part of Pro

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

Props

agent
string
The agent's name: labels the avatar and is the default title. Every capsule also takes the live-activity props: tone ("auto", "inverse" or "surface"), accent, expanded, defaultExpanded, subtitle, className.
RunProgressActivity
stage, step?, approval?, onApprove?, onChat?, finished?, quietWhenDone?
Plan, Tools, Answer with a sliding marker. With approval the dot is blocked and Approve shows. quietWhenDone writes a finished run's Done small instead of big.
EtaActivity
etaMinutes, graph?
Minutes left as a rolling number. graph is GraphNode[] (id, state, after) drawn left to right.
BudgetTicksActivity
used, budget, unit?, softLimit?
Ticks fill to used / budget; amber under 25% left, red under 10%.
BudgetRingActivity
left, total, unit?
A ring of what is left, drawn with stroke-dashoffset.
VoiceActivity
mode, levels, tokensPerSecond?
levels are 0 to 1, newest last. Push a new array as audio arrives; nothing loops on its own.
HandoffActivity
from, to, endsAt, totalMs, onHandoff?, onCancel?, onDone?
Countdown with draining ticks. onDone fires once at zero.
MiniGraph / Waveform / BudgetRing
nodes / levels / left, total
The drawn pieces on their own.

What it handles

  1. 01Shows a run moving through Plan, Tools and Answer, with the step it is on and Approve and Chat when a person is needed.
  2. 02Gives an ETA that rolls when the guess changes, with the run's graph in miniature inside the card.
  3. 03Draws a budget as thin ticks that fill and turn amber, then red, with a soft-limit marker.
  4. 04Draws what is left of a budget as a ring, with the number rolling beside it.
  5. 05Follows a voice agent: a waveform driven by the levels you pass, and tokens per second.
  6. 06Counts down to a handoff between two agents, with a way to hand off now or keep the work.

States

First render
Nothing. Every capsule paints as it is
none
Stage change
The marker slides to the new stage, the step line swaps
280ms, ease in and out
Needs approval
The dot turns to blocked and pulses; Approve appears in the card
180ms fold
ETA or figure changes
The digits roll
280ms
Budget used
Ticks slide; the colour moves to amber, then red
280ms, ease in and out
Ring
The arc grows or shrinks to the new share
280ms, ease in and out
New audio level
The bar changes height. With no new levels nothing moves
120ms, ease out
Graph node
Its dot changes colour; only the running node pulses
120ms
Reduced motion
Every change lands at once
0ms

Works with

When to use

When to use

  • A run in the corner of your app: its stage, its ETA or its budget, with Approve when it needs a person.
  • A voice agent on a call, or a handoff counting down to another agent.

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 Activities to my app and wire it to my own data.
  • I need a run in the corner of your app: its stage, its ETA or its budget, with Approve when it needs a person. Set that up with the Knowns UI Agent Activities.
  • Which Agent Activities props do I need for a minimal setup? Show me a short example.

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

Need help?

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