Approvals and permissions
An AI coding agent is only as safe as what it may do without asking. Dial has five approval modes, from read-only to fully automatic, plus grants you can scope to one session or one project. A few things always need you, whatever the mode.
The five modes
| Mode | Without asking, Dial may… |
|---|---|
readonly | only read. Edits and commands that change things are refused, not just prompted. |
ask | read. It asks before every edit, shell command and operator tool. |
write | edit files in the project and run non-destructive commands. It asks before anything destructive, privileged or outside the project. |
auto (Full auto) | run every ordinary tool call. |
yolo | also run tool calls it recovers from the model's plain text, so an example the model wrote can become an action. |
An interactive first run saves write. Plan mode, deny rules and the sandbox still apply in every mode.
Switch modes
Shift-Tabcycles ask → write → read-only during a session./approvalopens the list; Full auto and YOLO are chosen only there, on purpose.Shift-Tabfrom either returns to ask.- At launch:
dial --approval readonly, or-yfor Full auto. - In config,
approval = "write"sets the default (see configuration).
Allow once, for the session, or for the project
When Dial asks, you can choose Allow once, Always allow this session or Always allow this project. The prompt shows exactly what the grant covers. A project grant asks you to confirm, and survives restarting Dial.
A shell grant covers a plain command prefix, such as cargo test, not the whole shell, and can never cover a destructive form of that command. /permissions lists your grants and rules, and removes them.
Folders outside the project
Dial works inside the folder you started it in. When it needs a file elsewhere, it pauses and asks with a popup naming the folder: Yes adds exactly that folder to the session, No refuses the call. There is no "always allow" for folders, and auto modes still ask.
dial --add-dir ../sharedor/add-dir ../sharedadds a folder up front./dirslists the folders in the session, and/remove-dirdrops one.- Granted folders are saved with the session and come back when you resume it.
Approvals in scripts and CI
A non-interactive run can't ask, so anything that needs consent is refused. Name the tools you allow rather than allowing everything:
dial -p --allow read,edit "fix the lint errors"Read-only mode and deny rules still win over --allow. If a required approval was refused, the run exits with status 3. More in scripting and CI.
What always needs you
- Access to a folder outside the project.
- Watching an application's logs or a background job.
- Plan approval in plan mode.
- Remote commands over SSH and MCP tools that aren't declared read-only.
Approval modes decide what to ask; they don't confine commands. For that, turn on the sandbox, and remember every turn can be undone. The full rules are in dial's tool documentation and directory access.