Decide how much an agent may do on its own, per tool, and answer its requests with the exact command, the risk and how long your answer holds.
On this page
Examples
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- AutonomyDial · value / defaultValue / onValueChange
"ask"|"risky"|"auto"- Default
"risky" - Ask every time · Ask for risky · Auto, with what the level means right under the dial (and a little gauge).
- AutonomyDial · tools / onToolChange
{ id, label, icon?, risk?, autonomy?, description? }[] / (id, autonomy) => void- Per-tool overrides: Default (follow the dial), Always ask, Auto; each row says whether it "Asks first" or "Runs freely". At Ask for risky, low-risk tools run freely; medium and high ask. The header counts how many ask.
- AutonomyDial · copy
Partial<Record<level, { label?, explain? }>>- Your own wording per level.
- PermissionRequest · agent / tool
{ name, model?, icon? } / { name, icon? }- "Coder wants to use Shell", with the model logo and the tool's icon.
- PermissionRequest · command / cwd / reason
string / string / ReactNode- The exact command as is (monospace, wraps, scrolls past ~8 lines), where it runs, and why.
- PermissionRequest · risk / riskNote
"low"|"medium"|"high" / ReactNode- A risk badge and what makes it risky.
- PermissionRequest · scopes / defaultScope
("once" | "session" | "always")[]- Default
all three / first - How long to allow, explained in words; Always is flagged.
- PermissionRequest · onDecide / decision
(decision, scope) => void / { decision, scope }- Allow / Deny. Pass decision to show a receipt ("Allowed for this session", "Denied") instead of the buttons.
- PermissionRequest · hotkeys / autoFocus
"card"|"window"|false / boolean- Default
"card" / false - Enter allows, Esc denies, 1–3 pick the scope, shown as Kbd hints. "window" listens page-wide (one prompt at a time).
| Prop | Type | Default | Description |
|---|---|---|---|
| AutonomyDial · value / defaultValue / onValueChange | "ask" | "risky" | "auto" | "risky" | Ask every time · Ask for risky · Auto, with what the level means right under the dial (and a little gauge). |
| AutonomyDial · tools / onToolChange | { id, label, icon?, risk?, autonomy?, description? }[] / (id, autonomy) => void | - | Per-tool overrides: Default (follow the dial), Always ask, Auto; each row says whether it "Asks first" or "Runs freely". At Ask for risky, low-risk tools run freely; medium and high ask. The header counts how many ask. |
| AutonomyDial · copy | Partial<Record<level, { label?, explain? }>> | - | Your own wording per level. |
| PermissionRequest · agent / tool | { name, model?, icon? } / { name, icon? } | - | "Coder wants to use Shell", with the model logo and the tool's icon. |
| PermissionRequest · command / cwd / reason | string / string / ReactNode | - | The exact command as is (monospace, wraps, scrolls past ~8 lines), where it runs, and why. |
| PermissionRequest · risk / riskNote | "low" | "medium" | "high" / ReactNode | - | A risk badge and what makes it risky. |
| PermissionRequest · scopes / defaultScope | ("once" | "session" | "always")[] | all three / first | How long to allow, explained in words; Always is flagged. |
| PermissionRequest · onDecide / decision | (decision, scope) => void / { decision, scope } | - | Allow / Deny. Pass decision to show a receipt ("Allowed for this session", "Denied") instead of the buttons. |
| PermissionRequest · hotkeys / autoFocus | "card" | "window" | false / boolean | "card" / false | Enter allows, Esc denies, 1–3 pick the scope, shown as Kbd hints. "window" listens page-wide (one prompt at a time). |
When to use
When to use
- Letting users set how much an agent may do alone, per tool, from always ask to fully automatic.
- Answering an agent's permission request with the exact command, its risk and how long the answer holds.
- An agent that stops mid run to ask the user a question, and carries on with the answer.
When not to use
- A queue of pending decisions across many runs: use Approval Prompt.
- A simple on/off setting with no risk levels: use Switch.
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 Autonomy & Permissions to my app and wire it to my own data.
- I need letting users set how much an agent may do alone, per tool, from always ask to fully automatic. Set that up with the Knowns UI Autonomy & Permissions.
- Which Autonomy & Permissions props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "autonomy" }) and search_docs({ query: "autonomy & permissions" }). Pro props, full examples and source come back once your license key is in the MCP config.