Agent Run, animated React component
A live view of an AI agent working through a task, where each step shows what it is doing and folds into a ticked line when it moves on. A clock runs in the corner, Stop is always there, and the run ends on a short report with the change to review.
- Pro
- AI Components
- Spring
Ticks quietly after every other step, chimes softly when the run finishes and switches off with a click when you press Stop; autoplay makes the tick and finish sounds once the visitor has used the page. Sound is off on this site until you switch it on.
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
- checkout.ts
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| task | string | "Fix the failing checkout test" | The task the agent was given, shown at the top. |
| steps | AgentRunStep[] | AGENT_RUN_STEPS | The steps of the run: { label, ms, body(t) }. body gets the ms elapsed inside the step so it can reveal lines or files as it goes. |
| report | AgentRunReport | AGENT_RUN_REPORT | The report card shown at the end: { title, body, files, added, removed }. |
| onReview | () => void | undefined | Called when Review change is pressed. |
| width | number | 520 | Width of the card in px. It never grows past its container. |
| autoplay | boolean | false | Runs the whole task again 4.5 seconds after it finishes until someone touches the card. Only runs while the card is on screen and never under reduced motion. |
| className | string | "" | Extra classes for the card. |
| enableSound | boolean | true | Plays interface sounds on interaction. They follow the sound switch (setSoundsEnabled, on by default) and stay silent on hover. Autoplay makes the same sounds once the visitor has used the page. Pass false to silence this component. |
Agent Run questions
Does it make sound, and how do I turn it off?
Ticks quietly after every other step, chimes softly when the run finishes and switches off with a click when you press Stop; autoplay makes the tick and finish sounds once the visitor has used the page. Sounds are synthesised with the Web Audio API, so there are no audio files, and they only play after a click or key press. Pass `enableSound={false}` to silence this component, or call `setSoundsEnabled(false)` from `@/lib/ui-sounds` to switch every sound off at once. The CLI installs `@/lib/ui-sounds` with the component.