Skip to content
Browse docs and components

Agent Log

agent-log

What an agent did, as a tree that draws itself: each step opens its own height, the guide strokes out to it, and nested results branch beneath. Pure CSS, so it is a server component.

Responsive

Install

$npxshadcnadd@forme/agent-log

Adds the component, its registry dependencies, and the token stylesheet you import once.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

AgentLog

What an agent did, as a tree that draws itself down the page.

PropTypeDefaultDescription
labelstring—Names the list for screen readers: "Research", "Steps".

Also takes every prop of <ol> attributes.

AgentLogItem

PropTypeDefaultDescription
title*ReactNode—
detailReactNode—A second line under the title: a path, a query, an excerpt.
metaReactNode—Right-aligned and quiet: "0.8s", "5 results".
iconReactNode—An icon before the title.
status'done' | 'running' | 'error'"done"done reads quietly, running carries a sweep of light, error is in the destructive text.
childrenReactNode—A nested AgentLog, for the results of this step.

Also takes every prop of <li> attributes.

The other parts

  • AgentLogWorkingTakes <div> attributes