Skip to content
Uxelith
Prov1.0.0AI & Agents

Agent Run Monitor

A live view of AI agents working together: each agent's steps on one timeline, cost against a budget, tokens, every step's input and output, failures, and an approval card when a step needs a person.

Installs with Uxelith ProHow
Licence
Pro
Packages
2
Updated
11 Nov 2026
Live

Installation

Usage

example.tsx
"use client"

import { AgentRunMonitor, type RunStep } from "@/components/agent-run-monitor"

const steps: RunStep[] = [
  { id: "1", agent: "plan", name: "Plan the work", kind: "model", status: "done", start: 0, end: 6, tokens: 3400, cost: 0.04 },
  { id: "2", agent: "code", name: "Write change", kind: "model", status: "running", start: 6, tokens: 5200, cost: 0.08 },
  { id: "3", agent: "code", name: "Run the migration", kind: "approval", status: "waiting", start: 14, input: "ALTER TABLE plans ADD COLUMN billing text" },
]

export function RunView() {
  return (
    <AgentRunMonitor
      title="Ship yearly billing"
      agents={[
        { id: "plan", name: "Planner", detail: "large model" },
        { id: "code", name: "Coder", detail: "repo tools" },
      ]}
      steps={steps}
      elapsed={16}
      status="waiting"
      budget={1.5}
      onApprove={(step) => console.log("approved", step.id)}
      onDeny={(step) => console.log("denied", step.id)}
    />
  )
}

Props

PropTypeDefaultDescription
agentsRunAgent[]—One lane each: id, name, an optional detail (model, tools) and colour.
stepsRunStep[]—id, agent, name, kind ("model", "tool" or "approval"), status (queued, running, waiting, done, failed, denied, skipped), start and end in seconds, and optional tokens, cost, tool, model, input and output.
elapsed / statusnumber / RunStatus—Seconds since the run started, and running, paused, waiting, done, failed or stopped. You keep the clock, so the server and the browser agree.
title / subtitlestring—The run's name and a line under it.
budget / currencynumber / string— / "USD"The spending limit: the bar warns at half and turns red past 80%.
plannedStepsnumbersteps.lengthHow many steps the plan expects, for the Steps count.
onApprove / onDeny(step) => void—Answers a step waiting for a person. renderApproval adds content to the card.
onPause / onResume / onStop() => void—Show Pause, Resume and Stop run while the run is live.
localestring"en-US"Formats money and numbers.

Accessibility

  • Each agent's lane is a labelled group; every step is a button named with its status, start and duration, and opens its details.
  • A step waiting for approval raises an alert dialog with focus on Approve.
  • Failures, approvals and the end of the run are announced once each through a polite live region.
  • The budget bar is a meter with its value in words; the stats are a description list.
  • Under prefers-reduced-motion running steps don't sweep and the status doesn't pulse.

Changelog

  1. v1.0.0Latest

    First release.

More in AI & Agents

All 9 in AI & Agents
  • AI & AgentsPro

    Approval Card

    The moment an AI agent asks before acting: what it wants to do, why, and exactly what will happen. Approve is held for a beat so it's never an accident; Deny is one press. Then it folds into a one-line record.

  • AI & AgentsPro

    Artifact Canvas

    The workspace beside an AI chat: what the model writes opens next to the conversation, streams in line by line, keeps every version and shows what changed down to the word. Preview, read, ask about code, download.

  • AI & AgentsPro

    Diff Review

    Review an AI agent's code changes: accept or reject each one, see exactly which words changed, comment on a line and ask the agent to revise, then apply only what you accepted. Unified or side by side.