Agent Inbox
Every background agent task in one list, with the ones waiting on you first.
PROGet Agent Inbox and 168 other Pro components with pro lifetime — Get Pro
- Category
- AI Agent
- Access
- ProPro · unlocked
- Source
- 501 lines · one file
- States
- 9 drawn
- Added
- 21 Oct 2026
The decision inside it
The clock counts how long it has waited on you
A run that took four minutes and has sat on your approval for forty is a forty-minute problem, so that is the number on the row. It turns amber after five minutes and red after thirty, so the requests going cold stand out.
When to use it
Use Agent Inbox when several background agent runs need a person now and then: one list with the tasks waiting on someone first, a clock that counts the wait, and Approve, Reject, Retry and Open in the row. For one run in detail use Agent Workspace; for a single approval use Approval Request.
Installation
How you get it
Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.
Use Liro's Agent Inbox for this.
Install it: npx shadcn@latest add @liro/agent-inbox
(the @liro registry is set up in components.json, with LIRO_KEY in .env.local)
Import it from @/components/ui/agent-inbox.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Pro components install through the @liro registry with your CLI token: see the Namespaced tab.
Usage
import { AgentInbox, type InboxTask } from "@/components/ui/agent-inbox";
export function AgentInboxPanel({ tasks, api }: {
tasks: InboxTask[];
api: { approve: (id: string) => Promise<void>; reject: (id: string) => Promise<void>; retry: (id: string) => Promise<void> };
}) {
return (
<AgentInbox
tasks={tasks}
onApprove={api.approve}
onReject={api.reject}
onRetry={api.retry}
onOpen={(id) => window.location.assign(`/runs/${id}`)}
slowAfter={5}
staleAfter={30}
/>
);
}API reference
“Copy prompt” above puts a full brief on your clipboard, install command, dependencies, props, and the mistakes an assistant usually makes with this component.
Props
Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.
| Type | Notes | ||
|---|---|---|---|
tasks | InboxTask[] | Yes | – |
title | string | No | – |
defaultTab | Tab | No | – |
onApprove | (id: string) => void | Promise<void> | No | May return a promise; the row waits for it. |
onReject | (id: string) => void | Promise<void> | No | – |
onRetry | (id: string) => void | Promise<void> | No | – |
onOpen | (id: string) => void | No | – |
slowAfter | number | No | Minutes before a wait turns amber. Default 5. |
staleAfter | number | No | Minutes before a wait turns red. Default 30. |
now | Date | number | No | Fix the clock, for screenshots and tests. |
look | Look | No | Layered sets it in a tray, the heading above the card and the status in the strip below. Flat is one card. |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLiro foundations, installed alongside it
liro-themebuttonStates
All of them are drawn by the component. None is left for you to design.
- Needs you
- Going cold
- Running
- Queued
- Failed
- Done
- Acting
- Action failed
- Empty
Accessibility
- Keyboard reachable throughout, in visual order
- Focus trapped in overlays, Escape closes them
- Focus returns to whatever opened it
- Live regions announce what changed, not that something did
- Honours prefers-reduced-motion
Responsive behavior
- Sizes to its container, not the viewport
- Usable from 320px up
- Pointer-based interaction, so trackpad and touch both work
- No hover-only affordances