# Permission modes

Set the mode in the project's `rilo.json`.

```json
{
  "permission_mode": "auto-edit"
}
```

| Mode | Approval behavior |
| --- | --- |
| `ask` | Uses the project's permission rules and asks when approval is required. This is the default. |
| `auto-edit` | Allows edits. Shell commands use the project's permission rules. |
| `full-auto` | Allows edits and shell commands subject to explicit denies. |

Destructive shell commands ask every time in `ask` and `auto-edit`. Explicit denies still apply in all modes. Set `RILO_PERMISSION_MODE` to override the file for a single environment.
