Theme
Motion

Open-source React components

Agent Activity Kit

Small, carefully animated components for showing what an AI agent is doing: streaming answers, tool calls, multi-step plans, approvals, undo and recovery. Built to make automation feel trustworthy, accessible from the first commit, and themed entirely with design tokens.

npm i agent-activity-kit motionGitHubnpm
Live demo
Clean up the duplicate customer records from last week's import, and tell me what you changed.

01

Streaming response

The same stream, rendered two ways. The left shows chunks as they arrive. The right paces them into a calm, readable reveal.

  • Smoothing adapts its speed to the backlog, so it never lags far behind.
  • Words fade and un-blur in, without sliding. Nothing moves under your eyes.
  • Screen readers hear “Responding…” once and “Response complete” at the end, not every chunk.

Raw chunks

Smoothed

02

Thinking indicator

Shows that work is happening, and what kind, without the anxiety of a spinner. It settles into a quiet summary when it finishes.

  • A breathing orb and a light sweep give a sense of life at low contrast.
  • Status lines move like a ticker: the old line exits up as the new one enters from below.
  • Elapsed time is visible but hidden from screen readers, so it doesn't chatter every second.
Thought for 0s

03

Tool-call card

Each tool call is one row: present tense while it runs, past tense with a result when it's done. Details are one click away.

  • The label swaps with a short blur-and-slide, so the tense change reads as progress.
  • The status icon draws its check or cross instead of popping in.
  • Height animates to auto on expand, and result rows stagger in.
Searching the web…
Searching the web…
Reading Q3-forecast.xlsx…
Reading Q3-forecast.xlsx…

04

Step timeline

A multi-step plan with queued, running, done and failed states. The rail fills as work completes, and failures stop the line with a reason.

  • The connector fills top-down with an ease-in-out, like progress flowing to the next step.
  • The running step has a soft radiating ring. It's the only thing on the page that loops.
  • Screen readers hear one sentence per change: “Step 2 of 5, Gather sources: done”.
  1. Draft the outline, queued
  2. Gather sources, queued
  3. Write each section, queued
  4. Send to reviewers, queued
  5. Publish, queued

05

Approve or undo

Before anything destructive, the agent asks. After it acts, an undo window gives a second chance. Trust comes from both.

  • The card collapses into a one-line receipt, and focus moves to it so keyboard users aren't stranded.
  • The undo timer pauses on hover, on focus and when the tab is hidden.
  • Escape dismisses the toast. Nothing steals focus when it appears.

Delete 3 duplicate records?

The originals stay. You can undo this for a few seconds afterward.

  • Dana WhitfieldD.Whitfield@northwind.co
  • Marcus Oyelaranmarcus@oyelaran.studio
  • Priya Ramanpriya.raman@fieldnote.io
Approval needed: Delete 3 duplicate records?

06

Error and retry

The unhappy path most demos skip. A clear reason, one obvious action, and a satisfying recovery. Retry twice to see it recover.

  • A small horizontal nudge marks each failure. It's skipped entirely with reduced motion.
  • The retry button keeps its place and focus while it works, so nothing jumps.
  • Recovery fades the card's color from red to green and the icon spins into a check.

Couldn't reach Google Calendar

The request timed out after 30 seconds. Your draft invite is saved.

Attempt 1 of 3
Couldn't reach Google Calendar. The request timed out after 30 seconds. Your draft invite is saved.

Motion principles

Smooth the network, not the content

Streams are bursty, but reading shouldn't be. Pace the reveal, and keep the words themselves still.

Motion explains a change of state

Every animation answers “what just happened?”: a step finished, a call failed, a choice was recorded. Nothing moves just to decorate.

Reversible beats confirmable

Ask before destructive actions, then offer undo anyway. A second chance builds more trust than a scarier dialog.

Calm by default, honest under stress

Only the active step loops. Errors get a reason and one clear action. With reduced motion, state still reads through color and opacity.