Skip to content

AgentStatusIcon

Stable

A small icon that shows what an assistant is doing right now, with a different shape for each state.

Also known as status icon, run status

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

All six states

Each state has its own shape. The icon has a name for screen readers, so it works alone in a crowded row.

When to use it

A tiny picture of an assistant's state that still reads in a crowded row. Each state has its own shape so it works without color, and only "needs you" is amber, because only then must a person act.

Made of: Icon · Visible text (optional)

Use it for

  • Beside a task or run name, to show its state at a glance.
  • In a compact header or row where there is no room for words.
  • With showLabel on, when there is room to write the state as well.

Not for

Do and avoid

Needs inputCompletedFailed
Do. Each state has its own shape and a word beside it.
Avoid. With words only on hover, people have to guess each state.

Do

  • Put the icon next to the task name so they are read together.
  • Show the text where there is room, such as a page header.
  • Use "needs you" only when a person must act.

Avoid

  • Don't use it for anything except what an assistant is doing.
  • Don't change its color. The color is part of the meaning.
  • Don't put the words only in a hover tip.

On a phone

  • It is a small icon that keeps its size on a phone, 16px by default.
  • With showLabel the words sit beside the icon in 12px text, so the status is not shown by the icon alone.
  • It has no tap action, so wrap it in a button if it must open something.

Seen in products

  • Claude Code agent view shows a state icon per row, animated while working.
  • Claude Code agent view lists the states Working, Needs input (yellow), Idle, Completed (green), Failed (red) and Stopped (grey), and shows process status by icon shape.
  • Claude Code agent view notes that status should use icon shape and text, not color alone.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started