Purbayan Pramanik

Agent Activity

AI chats

About

A collapsible timeline that shows an AI agent's run step by step, with streaming labels, source chips, expandable details, and inline images.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Agent Activity to your project and fits it to your theme.

Code

How Agent Activity is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import AgentActivity, {
  type AgentActivityEntry,
} from "@/components/ui/agent-activity";

const entries: AgentActivityEntry[] = [
  {
    id: "reasoning",
    label: "Reasoned about the request",
    status: "complete",
    icon: "reasoning",
  },
  {
    id: "search",
    label: "Searched the web",
    status: "complete",
    icon: "search",
    sources: ["wikipedia.org", "docs.example.com", "news.example.com"],
  },
  {
    id: "tool",
    label: "Ran a command",
    status: "complete",
    icon: "tool",
    description: "npm install shadcn-ui",
    details: {
      summary: "View output",
      items: ["+ shadcn-ui@0.9.5", "added 3 packages in 1.2s"],
    },
  },
  {
    id: "image",
    label: "Generated a preview",
    status: "complete",
    icon: "image",
    image: {
      src: "https://cdn.21st.dev/assets/stock/photo/1015.jpg",
      alt: "Generated preview artifact",
      caption: "Preview render",
    },
  },
];

export default function AgentActivityDemo() {
  return <AgentActivity title="Thinking" entries={entries} defaultOpen />;
}

Dependencies

More by Purbayan Pramanik

View all
  • Notification Stack

    Notification Stack

    44
  • Proximity Accordion

    Proximity Accordion

    8
  • Plan Checklist

    Plan Checklist

  • Snap Panels

    Snap Panels

  • Checkbox Group

    Checkbox Group

  • Conversation

    Conversation

More in AI chats

View all
  • Agent Chat

    Agent Chat

    21
  • AI Suggestions

    AI Suggestions

    27
  • AI Actions

    AI Actions

    372
  • Interactive LLM Token & Context Window Visualizer

    Interactive LLM Token & Context Window Visualizer

    30
  • Aquarium Prompt

    Aquarium Prompt

    223
  • Message Parts

    Message Parts

    11
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    37
  • AI Chat Composer

    AI Chat Composer

    22