Skip to content
GitHub (opens in a new tab)

AutonomyDial

How far an agent may go without asking: four readable stops on a kit SegmentedControl, with the current stop explained below.

stableOrganismcontracts/autonomydial.json

Preview

AutonomyDial

How far an agent may go without asking. Not Slider. Not Switch.

Master

Pick a stop with the arrow keys or a click. It saves on change; the panel explains the stop.

Autonomy

Applies to: Research agent · acme/ledger

Ask on high riskdefault

Acts on reads and small edits. Asks before deploys, deletes, spend, or anything outside the repo.

Usage

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.

Do's

  • set an agent's autonomy level in settings or before a run
  • show a policy-locked autonomy level and why
  • save a new level with a visible saving state

Don'ts

  • a numeric value on a range — Slider
  • on/off for one permission — Switch
  • approving one action — ApprovalCard
<AutonomyDial
  value={level}
  onValueChange={setLevel}
  appliesTo="Research agent · acme/ledger"
  saving={saving}
  savedAt={savedAt}
/>

When to use

  • set an agent's autonomy level in settings or before a run
  • show a policy-locked autonomy level and why
  • save a new level with a visible saving state

When not to use

  • a numeric value on a range — Slider
  • on/off for one permission — Switch
  • approving one action — ApprovalCard

What an agent reads

import { AutonomyDial } from "agentic-ds-kit";
must
  • section aria-labelledby the h3 label
  • the stops are a kit SegmentedControl (role=radiogroup, arrow keys) described by the panel
  • the panel is aria-live polite
  • end labels are aria-hidden
  • no primary Button; the control saves on change
  • motion is opacity and transform, off under prefers-reduced-motion
defaults
  • label Autonomy
  • value risk
  • defaultValue risk
  • disabled false
  • saving false
  • size md
stops if
  • Do not invent a local AutonomyDial, AutonomySlider, or TrustLevel picker
  • Do not use a Slider for autonomy stops
  • Do not add a Save primary Button
  • Do not use raw hex

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.

Props

NameTypeRequiredDefaultNotes
labelstringNoAutonomy—
valuestringNorisk—
onValueChangefunctionNo—(id) => void
optionsarrayNo—{ id, label, description, icon? }[] from more oversight to more autonomy. Default ask · risk · tell · run (exported as AUTONOMY_STOPS).
defaultValuestringNoriskMarks that stop "default".
appliesTostringNo—e.g. "Research agent · acme/ledger".
disabledbooleanNofalse—
disabledReasonstringNo—e.g. "Set by workspace policy" with a lock.
savingbooleanNofalseThe selected stop's icon spins; the panel shows Saving…
savedAtstringNo—When the current stop was saved, e.g. "14:01". The panel note reads "Saved 14:01" with a check.
sizesm | mdNomd—
  • Component
    →

    Slider

    Pick a value or range along a track.

  • Component
    →

    Switch

    Immediate on/off setting.

  • Component
    →

    ApprovalCard

    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.

  • Component
    →

    SegmentedControl

    Choose one of a few visible options in a joined track. role=radiogroup, sm or md, icons optional.