Skip to Content
UI Kit
Components (172)

Agent Loop

Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.

Open preview
Loading Agent Loop…

Usage

import { AgentLoop } from "ui-kit/components/agent-loop";

Props

PropTypeDefaultDescription
steps*LoopStep[]——
loopsLoopBack[][]—
artifactsLoopArtifact[][]—
titlestring"Agent loop"—
subtitlestring—Next to the title – the repo, the branch
logoReactNode—Before the subtitle – e.g. the GitHub logo for a repo
iterationnumber—By default 1 + every time the run went back
onSelect( item: | { step: LoopStep; } | { loop: LoopBack; } | { artifact: LoopArtifact; } | nul...—A step, a loop or an artifact opened – null when its card closes
childrenReactNode—Anything else under the artifacts – open issues, actions
formatTime(ms: number) => stringtookFormats a time – 12s, 2m 05s by default
classNamestring——

On this page