A queue where a person grades agent runs: the transcript and its tool calls, good or bad in one key, error labels and the answer the agent should have given. Graded runs export as eval cases, so every bad answer becomes a test.
On this page
- Grading agent runs
- Building an eval set
- Labelling failures
- Prompt change review
- Support QA
Examples
On a phone
Your own labels
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- runs
ReviewRun[]- The runs in queue order. A run has id, title, agent, createdAt and turns (role, text, tools as spans), and optionally model, durationMs and costUsd.
- reviews / defaultReviews
Record<string, RunReview>- Reviews by run id: grade (up or down), labels and ideal. Pass reviews to control them, or defaultReviews to let the block keep them.
- onReviewChange
(runId, review) => void- Every change: a grade, a label, the ideal answer. Save it on your side.
- labels
ReviewLabel[]- Default
Wrong answer, Wrong tool, Missed a step, Made something up, Unsafe, Tone - The error labels for a bad run: id, label and an optional description.
- onExport
(cases) => Promise|void- Adds Export to the header. The cases have Eval Suite's shape (id, title, input, expected, assertion judge, tags). A bad run without an ideal answer is left out. A rejection shows its message.
- title
string- Default
"Review queue" - The heading of the block.
- now
number- Fixes the clock, for tests and screenshots.
- empty
ReactNode- Replaces the nothing-to-review state.
- toEvalCases / reviewProgress
(runs, reviews, labels?) / (ids, reviews)- The same export and count on your side, for a server job or a summary.
| Prop | Type | Default | Description |
|---|---|---|---|
| runs | ReviewRun[] | - | The runs in queue order. A run has id, title, agent, createdAt and turns (role, text, tools as spans), and optionally model, durationMs and costUsd. |
| reviews / defaultReviews | Record<string, RunReview> | - | Reviews by run id: grade (up or down), labels and ideal. Pass reviews to control them, or defaultReviews to let the block keep them. |
| onReviewChange | (runId, review) => void | - | Every change: a grade, a label, the ideal answer. Save it on your side. |
| labels | ReviewLabel[] | Wrong answer, Wrong tool, Missed a step, Made something up, Unsafe, Tone | The error labels for a bad run: id, label and an optional description. |
| onExport | (cases) => Promise | void | - | Adds Export to the header. The cases have Eval Suite's shape (id, title, input, expected, assertion judge, tags). A bad run without an ideal answer is left out. A rejection shows its message. |
| title | string | "Review queue" | The heading of the block. |
| now | number | - | Fixes the clock, for tests and screenshots. |
| empty | ReactNode | - | Replaces the nothing-to-review state. |
| toEvalCases / reviewProgress | (runs, reviews, labels?) / (ids, reviews) | - | The same export and count on your side, for a server job or a summary. |
Keyboard
JandKmove through the runs (the arrow keys too, on the list).1grades good and opens the next ungraded run.2grades bad and stays.Eedits the ideal answer:⌘ EnterorCtrl Entersaves,Esccancels.- Keys are ignored while you type and with ⌘, Ctrl or Alt held. The error labels take the arrow keys and Space.
Accessibility
- The run list is a listbox that keeps focus and names the open run with
aria-activedescendant. Each row reads as "Refund for a double charge, Support agent, graded bad, 1 of 8". - The grade buttons are toggle buttons (
aria-pressed) with their key inaria-keyshortcuts. Good and bad are words, never only a colour or a thumb. - One polite live region says what changed: the run you moved to, "Graded good. 4 of 8 graded. Next: Card declined", and the export result.
What it handles
- 01Shows one run at a time as the person saw it: the question, the agent's answer and every tool call, with the failed ones open.
- 02Takes a grade in one key: 1 for good moves straight on to the next ungraded run, 2 for bad stays so the person can say what went wrong.
- 03Keeps the review bar in one place with nothing that appears or jumps: error labels and the ideal answer are always there, and using either grades the run bad.
- 04Never loses typed work: pressing a grade twice changes nothing, and moving to another run saves the ideal answer that was being written.
- 05Counts the session (graded, good, bad) and says how many bad runs still need an ideal answer before they can be exported.
- 06Exports the graded runs as eval cases in the Eval Suite's shape: a good run's answer, or a bad run's ideal answer, is what a pass looks like.
States
- First render
- Nothing. The first run opens as it is
- none
- Grade good
- The mark appears in the row and the next ungraded run opens
- none, colour 120ms
- Grade bad
- The mark appears and the run stays open
- none, colour 120ms
- Progress
- The bar fills to the new count
- 280ms, ease in out
- Edit the ideal answer
- The text turns into a field with Save and Cancel
- none
- Export fails
- A line under the header says why; the reviews stay
- none
- Reduced motion
- Colours and the bar change at once
- 0ms
| State | What moves | Timing |
|---|---|---|
| First render | Nothing. The first run opens as it is | none |
| Grade good | The mark appears in the row and the next ungraded run opens | none, colour 120ms |
| Grade bad | The mark appears and the run stays open | none, colour 120ms |
| Progress | The bar fills to the new count | 280ms, ease in out |
| Edit the ideal answer | The text turns into a field with Save and Cancel | none |
| Export fails | A line under the header says why; the reviews stay | none |
| Reduced motion | Colours and the bar change at once | 0ms |
Works with
When to use
When to use
- A person grades agent runs one by one from the keyboard: good or bad, what went wrong, and the answer it should have given.
- Turning reviewed runs into eval cases, so every bad answer becomes a regression test.
When not to use
- Scoring many cases automatically against expected answers: use Eval Suite.
- Requests an agent is waiting on a person to approve or answer: use Agent Inbox.
- Following one run step by step as it happens: use Run Trace.
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 Run Review Queue to my app and wire it to my own data.
- I need a person grades agent runs one by one from the keyboard: good or bad, what went wrong, and the answer it should have given. Set that up with the Knowns UI Run Review Queue.
- Which Run Review Queue props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "run-review-queue" }) and search_docs({ query: "run review queue" }). Pro props, full examples and source come back once your license key is in the MCP config.