One queue of everything agents are waiting on a person for. A list on the left, the open item on the right, keys for the common answers, bulk actions, and an undo before anything is sent. Controlled: you pass the items and answer onResolve.
On this page
- Human in the loop
- Approvals queue
- Agent questions
- Diff review
- Failed runs
Examples
Your own kind
On a phone
With an agent run
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- items
InboxItem[]- Everything waiting. An item has id, kind, agent, title, createdAt and optionally summary, urgency, unread and task. Remove an item once its resolve went through.
- onResolve
(item, { action, answer? }) => Promise|void- The person answered. action is approve, deny or done (the words change per kind: Retry and Skip for a failed run, Accept and Request changes for a diff). Called after the undo window; a rejection puts the item back.
- onRead
(item) => void- The item was opened. Its unread dot clears on screen at once.
- renderItem
(item, { resolve }) => ReactNode- Draws the detail of a custom item. resolve answers it like the built in buttons.
- defaultGroupBy
"none"|"agent"|"kind"- Default
"none" - The first grouping. The person can change it, and filter by agent, kind and urgency.
- undoMs
number- Default
5000 - How long a resolve waits for Undo (or Z). 0 calls onResolve at once and shows no undo. Leaving the page sends what is waiting.
- now
number- Fixes the clock, for tests and screenshots. Without it the ages tick every 30 seconds.
- empty
ReactNode- Replaces the nothing-waiting state.
- Item kinds
approval|question|diff|failure|custom- approval: detail. question: prompt, choices?, allowText?. diff: path with before and after, or patch. failure: tool, error, input?. custom: actions?, data?.
- inboxFromApprovals / decisionOf
(approvals, actors) => items / (resolution) => decision- The adapter side: run approvals as items, and an answer back as approved or denied.
| Prop | Type | Default | Description |
|---|---|---|---|
| items | InboxItem[] | - | Everything waiting. An item has id, kind, agent, title, createdAt and optionally summary, urgency, unread and task. Remove an item once its resolve went through. |
| onResolve | (item, { action, answer? }) => Promise | void | - | The person answered. action is approve, deny or done (the words change per kind: Retry and Skip for a failed run, Accept and Request changes for a diff). Called after the undo window; a rejection puts the item back. |
| onRead | (item) => void | - | The item was opened. Its unread dot clears on screen at once. |
| renderItem | (item, { resolve }) => ReactNode | - | Draws the detail of a custom item. resolve answers it like the built in buttons. |
| defaultGroupBy | "none" | "agent" | "kind" | "none" | The first grouping. The person can change it, and filter by agent, kind and urgency. |
| undoMs | number | 5000 | How long a resolve waits for Undo (or Z). 0 calls onResolve at once and shows no undo. Leaving the page sends what is waiting. |
| now | number | - | Fixes the clock, for tests and screenshots. Without it the ages tick every 30 seconds. |
| empty | ReactNode | - | Replaces the nothing-waiting state. |
| Item kinds | approval | question | diff | failure | custom | - | approval: detail. question: prompt, choices?, allowText?. diff: path with before and after, or patch. failure: tool, error, input?. custom: actions?, data?. |
| inboxFromApprovals / decisionOf | (approvals, actors) => items / (resolution) => decision | - | The adapter side: run approvals as items, and an answer back as approved or denied. |
Keyboard
JandK(or the arrow keys) move through the list,Enteropens the item: it focuses the detail, or opens the sheet on a phone.Aapproves,Ddenies,Emarks done. With rows selected withXthey act on the selection; a question needs its answer, soAtakes you to the answer box instead.Zundoes the last resolve while the bar is showing,Escclears the selection.- Keys are ignored while you type in an input, a textarea or a select, and with ⌘, Ctrl or Alt held.
Accessibility
- The list is a multi select listbox that keeps focus and names the open row with
aria-activedescendant. Each row reads as "Approval from Release agent: title, urgent, unread, 2m ago, 1 of 8". - One polite live region says what changed: the row you moved to, a new request, "Approved: title. Press Z to undo", "Undone", and a failure as an alert line in the block.
- Urgency is a word in the row's label and in the detail header, never only a red dot. The unread dot is also in the label.
- Every shortcut has a button, and the buttons show their key on devices with a keyboard.
What it handles
- 01Puts everything agents wait on a person for in one list: approvals, questions, diffs to review, failed runs, and any kind you draw yourself.
- 02Shows the open item beside the list on a wide block and in a bottom sheet on a narrow one, built from Approval Prompt, Inline Diff and Tool Call Card instead of redrawn.
- 03Takes the keyboard: J and K move, Enter opens, A approves, D denies, E marks done, X selects and Z undoes. Typing in an answer box is never hijacked.
- 04Acts on the selection with a bulk bar, and leaves out what needs more input: a question is skipped, never approved without an answer.
- 05Lets a resolved item leave at once, waits the undo window before it calls onResolve, and brings the item back with a message when the call fails.
- 06Says what changed to a screen reader through one polite live region: the open row, new arrivals, resolved, undone and failed.
States
- First render
- Nothing. The list paints as it is
- none
- An item arrives
- Its row rises in at the top. Only items that were not there on first render and not there before a filter was set play it
- 180ms, ease out
- An item is resolved
- Its row folds shut and the next one becomes the open item
- 120ms, ease out
- Undo bar
- Fades in with the resolve and out after the undo window or on Undo
- 120ms, ease out
- A resolve fails
- The row comes back where it was, with an error line
- none
- Open another item
- The detail swaps at once
- none
- Reduced motion
- Rows appear and go at once
- 0ms
| State | What moves | Timing |
|---|---|---|
| First render | Nothing. The list paints as it is | none |
| An item arrives | Its row rises in at the top. Only items that were not there on first render and not there before a filter was set play it | 180ms, ease out |
| An item is resolved | Its row folds shut and the next one becomes the open item | 120ms, ease out |
| Undo bar | Fades in with the resolve and out after the undo window or on Undo | 120ms, ease out |
| A resolve fails | The row comes back where it was, with an error line | none |
| Open another item | The detail swaps at once | none |
| Reduced motion | Rows appear and go at once | 0ms |
Works with
When to use
When to use
- One place for everything agents are waiting on a person for: approvals, questions, diffs to review and failed runs.
- A review queue where the person works through items from the keyboard, in bulk, with an undo.
When not to use
- Glancing at what is running right now: use Activity Stack.
- One request to approve inside a chat or a run: use Approval Prompt.
- Every agent with its detail and history: use Agent Fleet.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Agent Inbox to my app and wire it to my own data.
- I need one place for everything agents are waiting on a person for: approvals, questions, diffs to review and failed runs. Set that up with the Knowns UI Agent Inbox.
- Which Agent Inbox props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "agent-inbox" }) and search_docs({ query: "agent inbox" }). Pro props, full examples and source come back once your license key is in the MCP config.