Agent Activity

Streaming Text

index.tsx
Thinking…

Reasoning Steps

index.tsx
Thinking…
Reading the product brief

Tool Calls

index.tsx
Running tools…

Mixed Activity

index.tsx
Thinking…
Reading the launch brief

Agent Trace

index.tsx
Running the agent trace…

API Reference

items
AgentActivityItem[]

Chronological activity entries. Append or update items as events stream.

Default—
contentType?
"step" | "text" | "search" | "tool" | "trace" | "mixed"

Expected activity kind before the first streamed item arrives.

Default—
status?
"working" | "complete"

Current run phase. Active runs always stay expanded.

Defaultworking
duration?
number

Elapsed run time, in seconds. Used by the step-only summary.

Default0
open?
boolean

Controlled expanded state used after the run completes.

Default—
defaultOpen?
boolean

Initial expanded state used after the run completes.

Defaultfalse
onOpenChange?
((open: boolean) => void)

Called when the completed activity disclosure changes state.

Default—
collapseOnComplete?
boolean

Collapse the disclosure when status changes from working to complete.

Defaulttrue
activeLabel?
ReactNode

Optional label shown while the run is active.

Default—
summary?
ReactNode

Optional completed summary. Derived from the item types by default.

Default—
renderWorkingStatus?
((context: { label: ReactNode; duration: number; }) => ReactNode)

Optional renderer for the contents of the active status row.

Default—
renderCompletedStatus?
((context: { summary: ReactNode; duration: number; }) => ReactNode)

Optional renderer for the contents before the built-in disclosure chevron.

Default—
maxHeight?
number

Maximum visible activity height before the stream begins gliding.

Default208
className?
string
Default—
contentClassName?
string
Default—

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/agent-activity

Composition

Render progressive work as message content so it remains attached to the turn that produced it.

Message
└── MessageContent
    └── AgentActivity

Note: Agent Loading States covers the interval before the first structured event. Todo List separates durable planned work from transient events. Tool Result expands one completed execution into inspectable output.

How it works

Agent activity explains how work is progressing without exposing an unfiltered internal transcript. Events should arrive chronologically, remain easy to scan, and reduce to a useful summary when the run finishes.

Also on React Native. Steps, searches and tool calls in one live log.

Updated