AgentStatus
Compact phase pill that shows what an agent is currently doing. Pair with a streaming loop: set phase to 'thinking' when a stream starts, 'tool' when a call begins, 'done' on completion. Includes a subtle pulse for live phases and a spinning cog while a tool runs.
Source
src/components/ai/agent-status.tsxAll phases
Five phases — idle, thinking, tool, done, error — each with its own icon and tone.
Idle
ThinkingPlanning next step…
Running toolsearch_web
Complete2.3s
Errorrate limited
With detail only
The detail slot is optional and rendered in a mono tabular-nums tone — ideal for elapsed time or tool names.
Thinking
Running toolfetch_invoices