Agent inbox

ProBlock

Everything your agents wait on in one queue: approvals, questions and failed runs, with bulk approve and reject, a kind filter and keyboard control.

Pro opens Thu 10 Dec
npx shadcn@latest add @pixilui-pro/agent-inbox

Preview

Approve three and they fold out of the queue one after another.
Queue

When to use

Use it when

  • Several agents or runs can stop and wait for a person, and that person needs one place to clear them.
  • An operations view where approvals arrive in batches and are approved ten at a time.
  • A home for agent questions that would otherwise sit in chat threads.

Use something else when

  • A single approval inside a run: use approval-card where the run is shown.
  • A notification feed with nothing to decide: use a plain list.
  • Human review of model outputs at scale (labelling): that needs a review queue with its own grading UI.

Installation

agent-inbox.tsx527 linesPro
Pro opens Thu 10 Dec

Join the waitlist and we'll email you when PixilUI launches. The preview, props and docs stay open until then.

Pro installs with the same CLI as the free items. One command adds agent-inbox.tsx, data.ts, agent-inbox-detail.tsx and agent-inbox-row.tsx and the free button.tsx, the free input.tsx and the free approval-card.tsx it uses; your license key goes in once, as in Installation.

Terminal
npx shadcn@latest add @pixilui-pro/agent-inbox

Adds agent-inbox.tsx, data.ts, agent-inbox-detail.tsx and agent-inbox-row.tsx with button.tsx, input.tsx and approval-card.tsx, and installs clsx and tailwind-merge. The CLI reads PIXILUI_TOKEN from .env.local; if this computer has not logged in yet, run npx pixilui@latest login once.

Usage

example.tsx
import { AgentInbox } from "@/components/pixilui/agent-inbox/agent-inbox";

<AgentInbox
  requests={requests}
  onFilterChange={onFilterChange}
  onApprove={onApprove}
/>

Fills its container. The list and the open request sit side by side when there is room (about 600px) and stack below it, list first.

API reference

PropTypeDefault
requestsRequiredAgentInboxRequest[]–The queue, newest first. Settled requests leave the list; remove them from this array whenever you like.
filterAgentInboxFilter–Controlled kind filter.
defaultFilterAgentInboxFilter"all"Starting filter when uncontrolled.
onFilterChange(filter: AgentInboxFilter) => void–Runs when the filter changes.
onApprove(ids: string[]) => void | Promise<void>–Approves one request (from its card) or many (bulk). Return a promise to show pending; throw to keep them waiting.
onReject(ids: string[], note: string) => void | Promise<void>–Rejects one request with the note from its card, or many with an empty note.
onAnswer(id: string, answer: string) => void | Promise<void>–Sends the person's answer to a question.

Also takes every native <section> attribute except title, and a ref.

Keyboard

TabMoves through the bulk actions, the filter, the list (one stop) and the open request.
↓ ↑Moves the cursor in the list; the open request follows it.
⇧ ↓Extends the selection while moving, for bulk actions.
SpaceTicks or unticks the request under the cursor.
Ctrl ATicks every request in the current filter, or clears them all (Cmd on a Mac).
EscClears the selection.
EnterMoves focus into the open request; on an approval, Enter again approves it.
Home EndJumps to the first or last request.

Accessibility

  • The list is a multi-select listbox with aria-activedescendant, so focus stays on it while the cursor moves; ticked requests are aria-selected.
  • The filter is a group of toggle buttons with aria-pressed and live counts.
  • Bulk actions, approvals and answers use aria-busy while pending, never disabled, so focus stays put.
  • Every settled request leaves a receipt with a status role; bulk results are announced the same way.
  • The open request is a labeled region you can reach with Enter from the list.

Motion

  • A settled request fades out of the list in 120ms, then its height closes on smooth, so the rows below slide up once it is gone.
  • The filter's pill is one object that slides to the chosen kind on the snappy spring.
  • Ticks draw their check; the bulk bar and its receipt fade through each other, and the receipt's check draws itself.
  • The open request's approval folds into its receipt, as approval-card does.
  • Reduced motion: rows go at once, the pill jumps, nothing draws.

Questions

  • Yes, the agent inbox (Pro). It puts approvals, questions and failed runs from every agent in one queue, with a filter by kind, bulk approve and reject, answers to questions, retry for failed runs, and keyboard control. Approved requests fold out of the queue one after another.

Compare

Updated · ChangelogReport an issue

PixilUI Pro opens Thu 10 Dec. The first 20 licenses are $99.