Slider
Pick a value or range along a track.
How far an agent may go without asking: four readable stops on a kit SegmentedControl, with the current stop explained below.
How far an agent may go without asking. Not Slider. Not Switch.
Pick a stop with the arrow keys or a click. It saves on change; the panel explains the stop.
Ask on high riskdefault
Acts on reads and small edits. Asks before deploys, deletes, spend, or anything outside the repo.
AutonomyDial sets how much an agent does before asking. It saves on change, so the view keeps its one primary Button for something else. Built on SegmentedControl.
import { AutonomyDial } from "agentic-ds-kit";From contracts/autonomydial.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| label | string | No | Autonomy | — |
| value | string | No | risk | — |
| onValueChange | function | No | — | (id) => void |
| options | array | No | — | { id, label, description, icon? }[] from more oversight to more autonomy. Default ask · risk · tell · run (exported as AUTONOMY_STOPS). |
| defaultValue | string | No | risk | Marks that stop "default". |
| appliesTo | string | No | — | e.g. "Research agent · acme/ledger". |
| disabled | boolean | No | false | — |
| disabledReason | string | No | — | e.g. "Set by workspace policy" with a lock. |
| saving | boolean | No | false | The selected stop's icon spins; the panel shows Saving… |
| savedAt | string | No | — | When the current stop was saved, e.g. "14:01". The panel note reads "Saved 14:01" with a check. |
| size | sm | md | No | md | — |
Pick a value or range along a track.
Immediate on/off setting.
The agent asks before it acts: risk, what will happen in words, an exact preview of the command or diff, and Approve (⌘/Ctrl+Enter) / Deny (Escape) with an optional auto-deny countdown.
Choose one of a few visible options in a joined track. role=radiogroup, sm or md, icons optional.