Skip to content
Browse docs and components

Agent Thinking

agent-thinking

The line above a chat composer while an agent works: a loader, the current activity under a sweep of light, an elapsed timer and a Stop button. Each new activity becomes a timed step you can unfold, and it finishes as “Worked for 14.2s”.

Responsive

Install

$npxshadcnadd@forme/agent-thinking

Adds the component, its registry dependencies, and the token stylesheet you import once.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

AgentThinking

The line above a chat composer while an agent works: what it is doing, for how long, and — one click away — everything it has done so far.

PropTypeDefaultDescription
activity*string—What the agent is doing right now: "Reading billing.ts", "Searching the docs". Every change is kept as a step in the trail.
donebooleanfalseTrue once the agent has finished. The timer stops and the row becomes a summary.
variant'ring' | 'dots' | 'bars' | 'wave' | 'orbit' | 'braille' | 'infinity' | 'sparkle'"wave"The indicator beside the activity.
onStop() => void—Shows a Stop button while the agent works.
classNamestring—