# Live Run Feed block

> Live agent run feed with Summary, Detailed and Raw monospace log views

Narrates an agent run as it works: steps name the file, command, query or issue they touched, Stop strikes the rest as cancelled, transcript copy and download. Built on ReUI Badge, shadcn Card, Marker, DropdownMenu. For activity log, tool timeline.

- Type: Pro block
- Category: [Agent Activity](https://web.dev.reui.io/blocks/ai-agents/agent-activity.md)
- Page: https://web.dev.reui.io/blocks/ai-agents/agent-activity/agent-activity-2
- MCP: `get_block("agent-activity-2")`
- Built with: Avatar, Badge, Button, Card, Dropdown Menu, Marker, Spinner, Tooltip
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

A watch and stop feed with no approval gates, headed by the requester's avatar and start time, counting files touched and tools called

## Agent notes

- Replace `RUN_META`, whose owner `avatar` is an Unsplash URL, and `STEPS`; each step's `raw` line feeds the Raw view and the exported transcript
- `stopRun` and `rerun` only change local `cutFrom`, `at` and `paused` state and fire a `toast`; `rerun` restarts at `START_AT`, so 2 steps reappear done
- The Open file, Open in console and Open in tracker row actions only fire a `toast`; Download Log saves `buildTranscript` text as `run-log.txt`

## When not to use

- A run that pauses for a person to approve, revise or answer before it goes on: use [Approval Run Console](https://web.dev.reui.io/blocks/ai-agents/agent-activity/agent-activity-1.md) (`get_block("agent-activity-1")`)
- A full page on one run with tool calls and latency per step and editable settings: use [Run Step Trace](https://web.dev.reui.io/blocks/solutions/agents/solution-agents-3.md) (`get_block("solution-agents-3")`)

## Third-party libraries

- Sonner v2: [API reference](https://sonner.emilkowal.ski/toast), [docs](https://sonner.emilkowal.ski/getting-started)

## Install

```bash
npx shadcn@latest add @reui/agent-activity-2
```

## About Agent Activity blocks

### When to use

- A live step feed of one agent run that the person who started it can approve, pause or stop
- The research trail behind an answer: the search query, numbered sources, repo files and confidence
- A record of what a run touched and settled: MCP calls per server, refused scopes and failed items

### When not to use

- Operator pages across many runs: a run queue, an approval inbox or tool access settings: use the [Agents blocks](https://web.dev.reui.io/blocks/solutions/agents.md)
- The conversation around the run: the message thread, the prompt composer and the replies: use the [AI Chat blocks](https://web.dev.reui.io/blocks/ai-agents/ai-chat.md)
- A dated history of what people did, such as activity feeds, milestones or release notes: use the [Timeline blocks](https://web.dev.reui.io/blocks/application/timeline.md)

### Agent notes

- Each page.tsx pads a top aligned `min-h-svh` wrapper around `AgentActivity`, whose root caps at `max-w-xl` or `max-w-2xl`; drop the wrapper in your layout
- Each run is replayed from the block's data file on `setTimeout` timers; drive the same state from your agent's events instead
- Each block calls `toast` from `sonner` but mounts no toaster, so those messages stay hidden until your layout renders one

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
