Loading component…
Loading component…
A multi-agent run as a macOS Finder window – every agent a folder, every tool call a document, with Quick Look for what was sent and what came back.
To reuse this local React demo, copy all files from the Code tab into the same folder, then import AgentFinder from ./agent-finder.
import { AgentFinder, type FinderAgent } from "@/components/ui/agent-finder";
const agents: FinderAgent[] = [
{
id: "planner", name: "Planner", status: "running", progress: 0.6,
model: "Claude Opus 5.5", logo: <ClaudeLogo />, task: "Ship v2.4", tokens: 48210, cost: 1.42, updated: "Now",
children: [
{
id: "researcher", name: "Researcher", status: "done", model: "Claude Sonnet 5.5", logo: <ClaudeLogo />,
files: [
{
id: "search", name: "search_code.json", logo: <GitHubLogo />, tool: "github.search_code",
size: "18 KB", duration: "1.2 s", updated: "Today, 09:04",
request: '{ "q": "round( path:billing/" }', response: '{ "total_count": 14 }',
},
],
},
],
},
];
export function Run() {
return <AgentFinder title="Launch v2.4" subtitle="Started today, 08:52" agents={agents} />;
}| Name | Type | Default | Description |
|---|---|---|---|
| agents | FinderAgent[] | The top folder's contents – { id, name, status?, model?, logo?, task?, tokens?, cost?, updated?, progress?, children?, files? } | |
| status | "running" \| "waiting" \| "failed" \| "done" \| "idle" | The agent's Finder tag – blue, orange, red, green; idle has none | |
| progress | number | 0–1 – the bar under a running agent's folder; without it the bar shimmers | |
| children / files | FinderAgent[] / FinderFile[] | The folder's contents – subagents first, then documents, like Finder sorting folders on top | |
| FinderFile | object | { id, name, type?, logo?, tool?, detail?, size?, duration?, updated?, failed?, request?, response? } – type defaults to the name's extension | |
| title / subtitle | string | The top folder's name, and a line under it – when the run started, how long it took | |
| defaultView | "icons" \| "list" | Icons by default | |
| onOpen / onOpenFile | (agent) => void / (file, agent) => void | An agent's folder or a document opened – with a double-click, Enter or the menu | |
| onSelect | (agent \| null, file?) => void | The selection changed – an agent, or a document and the agent it belongs to | |
| onAction | (action, agent, file?) => void | Something picked in the right-click menu – open, info, quick-look, pause, start, restart, duplicate, copy-id, retry, copy-request, copy-response, remove | |
| onArrange | (positions, folder \| null) => void | Icons moved in a folder – where every icon in it now sits, { x, y } in pixels | |
| className | string | An extra class on the root |
Fills its container's width; the preview shows from 800px – narrower, Get Info opens it as a sheet
The list drops the model column first, then the tokens, so names keep their room
On a phone the icons sit three to a row; touch long-press opens the menu
Icons put somewhere stay there; when the window gets narrower they move in so none falls off the edge
Long names wrap to two lines under an icon and end in … in the list; big token counts shorten to 2.4B there and show in full in the preview
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"