Skip to content

Agent Activity

Premium

The audit trail of one agent run: every action on a rail of icons, one line each, ending in what it produced.

AI Agent UIAI coding agentsAgent observabilityAutomation dashboards

Examples

Live tool activity

Completed activity

Starting work

Add to your projectPremium component

One command adds this component to your project.

1

Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.

npx shadcn@latest add @aicanvas/••••••••••••
2

For dark mode, add the dark class to your <html> element:

Optional
<html class="dark">

Install with AI Canvas MCP

With AI Canvas MCP, your AI knows every component we ship. Ask for one inside Claude Code, Codex, or Cursor and it installs the component you pick. Works with any AI Canvas account, free or premium.

Props

Every prop this component accepts. Any other prop is forwarded to the underlying element.

Action

PropTypeDefaultDescription
idreqstring-Stable action identifier that must be unique within its list.
kindreqActionKind-Selects the tool icon and action treatment.
labelreqstring-Present-tense action text used while queued or running.
doneLabelreqstring-Past-tense action text used after the action settles.
targetstring-File, query, command or URL shown after the action label; left out, no target is shown.
outcomestring-Result summary shown at the row end; left out, no result summary is shown.
tone'neutral'|'success'|'failed'-Colors a settled action that did not fail; left out, the neutral treatment is used.
diff{added: number, removed: number}-Added and removed counts shown instead of outcome; left out, outcome is used when present.
durationMsnumber-Action duration shown after it settles; left out, no duration is shown.
statusreqActionStatus-Sets whether the action is queued, running, done, failed or stopped.
inputRecord<string, string>-Tool input fields shown in the expandable details; left out, no input section is shown.
outputstring[]-Tool output lines previewed in the expandable details; left out, no output section is shown.
outputTotalnumber-Total output line count used when output is a preview; left out, the supplied output length is used.
childrenAction[]-Nested actions shown beneath this action; left out, the action is rendered as a leaf.
parallelGroupstring-Groups adjacent actions with the same value on a shared parallel rail; left out, the action is shown sequentially.

ToolLedger

PropTypeDefaultDescription
actionsAction[]-Supplies the tool action tree; left out, host mode has no actions, while passing it turns the demo off.
statusRunStatus-Sets the overall run state; left out, it is inferred from the actions, while passing it turns the demo off.
elapsedMsnumber-Shows the run duration in milliseconds; left out, no host duration is shown, while passing it turns the demo off.
labelstring-Adds text beside the ledger heading; left out, only the default heading is shown in host mode, while passing it turns the demo off.
summarystring-Shows a result row after a completed run; left out, no result row is shown in host mode, while passing it turns the demo off.
defaultCollapsedbooleanfalseSets whether the action list starts collapsed.
onActionToggle(id: string, expanded: boolean) => void-Reports action detail expansion changes while expansion remains local; left out, toggles are not reported.
onStop() => void-Handles stopping and makes the stop control available during a host run; left out, host runs have no stop control.
classNamestring-Adds classes to the outermost root; left out, only the built-in classes are used.
tuningPartial<Tuning>-Overrides ledger measurements, timing and motion values; left out, every value in TUNING is used.

About Agent Activity

Tool Ledger is a timeline of the tool calls an agent makes: the name, the arguments it passed, how long each took and its status, with the result one click away. Every row carries a thin duration bar against the slowest call, running calls grow live, concurrent calls share a bracket, and a failed call shows its error line with a Retry control. Arguments render as a compact mono line that expands to pretty printed args and the result with Copy. Arrow keys move between rows, Enter expands, and a sticky footer totals calls, time and failures.

Built with

MotionTailwind CSS

Frequently asked questions

Is Agent Activity free to use?
Agent Activity is a Premium AI Canvas component. Premium unlocks the full source code, the full remix prompt, and one-command installs for every Premium component, block, and template.
How do I install Agent Activity?
Premium unlocks one-command installs: run the shadcn CLI with your AI Canvas token, or connect the AI Canvas MCP server and ask your AI editor to install it for you. Premium also unlocks the full remix prompt in the Remix panel.
What is Agent Activity built with?
Agent Activity is built with React and TypeScript, using Motion and Tailwind CSS. It ships with both light and dark styling.
Where would I use Agent Activity?
Common uses include AI coding agents, Agent observability, and Automation dashboards. Like every AI Canvas component, it is self-contained and drops into any React project.
Can I remix Agent Activity with AI?
Yes. Open "Remix with AI" on this page to read the setup and the constants Agent Activity is built from. The engine, the markup and the notes on how it works are part of Premium. For the exact component, install it with the one-command CLI.

Featured in collections

More like this