The calls only a person can make for an agent team, one card at a time: who asks and why, the proof, and answers in the agent's own words. Y, N and S decide while the stack has focus, and the next card rises into place.
On this page
- Morning brief for an agent team
- Approvals an agent cannot make alone
- Keeping or retiring a new agent
- Install and spend requests
- Posts that need a human yes
Examples
On a phone
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- decisions
Decision[]- The queue, first on top. A decision has id, agent (name, hue), title, yes and no, and optionally tag, from (agent and note), message, proof and later.
- onDecide
(decision, choice) => void- A click or a key on the top card. choice is yes, no or later. Update decisions: applyDecision(queue, id, choice) removes it on yes and no and moves it to the back on later.
- total
number- Default
decisions.length - How many decisions the session started with, so the counter reads 2 of 4 while the queue shrinks.
- title
ReactNode|false- Default
"Waiting on you" - The heading over the stack. false hides the header row with the key legend.
- legend
boolean- Default
true - The Y, N, S legend in the header (from 28rem wide; narrower it says how many are left).
- noLater
boolean- Default
false - Hides Later and the S key, for decisions that cannot wait.
- empty
ReactNode- Default
a dashed line - Shown when the queue is empty.
- label
string- Default
"Decisions" - The stack's accessible name.
- DecisionFigure
component- For a proof: label, value, aside (a second number) and note (a dot and a line).
- DecisionChecklist
component- For a proof: lines that are allowed (check) or not (dash), with an optional heading.
| Prop | Type | Default | Description |
|---|---|---|---|
| decisions | Decision[] | - | The queue, first on top. A decision has id, agent (name, hue), title, yes and no, and optionally tag, from (agent and note), message, proof and later. |
| onDecide | (decision, choice) => void | - | A click or a key on the top card. choice is yes, no or later. Update decisions: applyDecision(queue, id, choice) removes it on yes and no and moves it to the back on later. |
| total | number | decisions.length | How many decisions the session started with, so the counter reads 2 of 4 while the queue shrinks. |
| title | ReactNode | false | "Waiting on you" | The heading over the stack. false hides the header row with the key legend. |
| legend | boolean | true | The Y, N, S legend in the header (from 28rem wide; narrower it says how many are left). |
| noLater | boolean | false | Hides Later and the S key, for decisions that cannot wait. |
| empty | ReactNode | a dashed line | Shown when the queue is empty. |
| label | string | "Decisions" | The stack's accessible name. |
| DecisionFigure | component | - | For a proof: label, value, aside (a second number) and note (a dot and a line). |
| DecisionChecklist | component | - | For a proof: lines that are allowed (check) or not (dash), with an optional heading. |
Accessibility
- The stack is a focusable group named with its position and keys ("Decisions. 1 of 4. Y for yes, N for no, S for later."). Y, N and S work only while focus is inside it; nothing is bound on the page.
- Every answer is a real button with aria-keyshortcuts; the keycaps inside are hidden from screen readers so the name is the words.
- After a decision focus stays on the stack, and a polite live region says the new top card ("Decision 2 of 4: Install a scan reader?").
- Allowed and not allowed lines in a checklist say so in text, not by the icon alone.
- On a touch screen the answers are 44px tall.
What it handles
- 01Shows one decision at a time with the rest peeking underneath, and a counter that stays true while the queue shrinks (2 of 4).
- 02Says who asks, which agent made it or asks for it, why, and the proof: a figure, a chart, the permissions a tool wants, or the draft itself.
- 03Answers in the agent's own words (Keep me, Retire me, Allow install) plus Later, which moves the card to the back of the queue.
- 04Takes Y, N and S only while the stack has focus, ignores modifiers and typing in a field, and keeps focus on the stack after each decision.
- 05Announces the new top card to screen readers and says when nothing is left.
- 06Leaves the queue to you: onDecide reports the decision and the choice, and applyDecision gives the next queue.
States
- First render
- The top card is there as it is
- none
- Decide
- The old card fades out while the next one rises into place
- 120ms out, 180ms in, ease out
- Later
- Same crossfade; the card goes to the back
- 120ms out, 180ms in
- Last decision
- A dashed line says nothing waits on you
- none
- Reduced motion
- The next card is there at once
- 0ms
| State | What moves | Timing |
|---|---|---|
| First render | The top card is there as it is | none |
| Decide | The old card fades out while the next one rises into place | 120ms out, 180ms in, ease out |
| Later | Same crossfade; the card goes to the back | 120ms out, 180ms in |
| Last decision | A dashed line says nothing waits on you | none |
| Reduced motion | The next card is there at once | 0ms |
Works with
- Capability LadderThe gaps behind the install and post requests.
- Bot RosterThe team the decisions come from; its faces are the same.
- Approval PromptFor a run's tool calls waiting on Approve or Deny, listed together.
- Swipe DeckFor judging a stack of outputs by throwing cards; this stack is for calls with their own answers.
- Agent Team BriefThe whole morning page built around it.
When to use
When to use
- The calls an agent team cannot make alone, one at a time with the proof: keep a new agent, allow an install, raise a cap, post a draft.
- A keyboard-first queue where a person answers Y, N or S and the next card comes up.
When not to use
- A run's tool calls waiting on Approve or Deny: use Approval Prompt.
- Everything agents wait on, in bulk, with filters: use Agent Inbox.
- Judging outputs by throwing cards left or right: use Swipe Deck.
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 Decision Stack to my app and wire it to my own data.
- I need the calls an agent team cannot make alone, one at a time with the proof: keep a new agent, allow an install, raise a cap, post a draft. Set that up with the Knowns UI Decision Stack.
- Which Decision Stack props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "decision-stack" }) and search_docs({ query: "decision stack" }). Pro props, full examples and source come back once your license key is in the MCP config.