Watch a coding agent work through a task, steer it, then approve the result.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { AgentPlan, AgentRun, type AgentRunStatus, type AgentStep } from "@/components/ui/notchset/blocks/agent-run";
// Fill these from your agent's step.started / step.output / step.finished events.
const steps: AgentStep[] = [
{ id: "plan", kind: "plan", label: "Planning the fix", pastLabel: "Planned the fix", startedAt: 0, finishedAt: 2200, body: <AgentPlan lines={["Find the retry", "Add an idempotency key"]} /> },
{ id: "edit", kind: "edit", label: "Editing 2 files", startedAt: 2200, estimate: 2000 },
{ id: "review", kind: "review", label: "Ready for review" },
];
export function RunView() {
const [status, setStatus] = React.useState<AgentRunStatus>("working");
return (
<AgentRun
author={{ name: "Maya Kerr", initials: "MK" }}
repo="ACME/RELAY · MAIN"
request="Make send_email idempotent and keep the tests green."
steps={steps}
status={status}
elapsed={3100}
tokens={4200}
cost={0.03}
onPause={() => setStatus("paused")}
onResume={() => setStatus("working")}
onSteer={(text) => console.log("send to the agent:", text)}
/>
);
}author / repo / request–
{ name, initials } / string / ReactNodeWho asked, where, and what.
steps–
{ id, kind, label, pastLabel?, rulerLabel?, startedAt?, finishedAt?, estimate?, body? }[]Every planned step. A step without startedAt sits on the ruler only; times are ms since the run began.
status–
"working" | "paused" | "review" | "opening" | "pr" | "discarded"The run's state; review, opening, pr and discarded mean it has finished.
elapsed / tokens / cost–
numberMs since the run began, tokens used, dollars spent. Update them as often as you like; the clock rolls once a second.
follow / defaultFollow / onFollowChangetrue
booleanFollowing opens the running step and closes the rest; off hands the steps to the user.
onPause / onResume / onRestart–
() => voidThe status bar's controls.
steers / onSteer–
{ id, afterStep, text, at }[] / (text) => voidMessages sent while it runs, shown after the step that was running. Marked applied once the next step starts.
review–
{ summary, stats, hint?, prMessage?, discardMessage? }The review step's summary and gate.
onOpenPullRequest / onDiscard–
() => voidSet status to opening, then pr (or discarded) as your API answers.
formatCost$0.00
(usd: number) => stringHow cost reads.
AgentRundata-slot="agent-run"
The block: header, status bar, ruler, steps, steer box.
AgentPlandata-slot="—"
Numbered plan lines.
AgentSearchdata-slot="—"
A search command and its matches per file.
AgentReaddata-slot="—"
A file excerpt with a flagged line.
AgentDiffdata-slot="—"
A diff card per changed file.
AgentTestsdata-slot="—"
Named tests passing one by one, with a rolling count.
components/ui/notchset/blocks/agent-run.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
pnpm dlx shadcn@latest add @beautiful-ui-pro/agent-runNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Give your coding assistant the Markdown guide instead of screenshots.
https://beautiful-ui.dev/api/mcp (setup)v1.0.0 · 2026-10-03
First release
Pro is in early access.