# Permission Modes

What `safe`, `auto` and a trusted skill each approve, and which path tiers ask in every mode.

| Mode | Behavior |
|---|---|
| `safe` | Each non-ReadOnly tool call requires user confirmation |
| `auto` | Automatically approves calls in qualifying working directories, with some calls subject to risk review; otherwise uses `safe` rules |
| Trusted skill | Since v1.3.22, a run that executes a skill marked `trust`: every read and write passes and its paths are granted — paths outside `$HOME`, sensitive paths, irreversible commands and `sandbox: false` included — with no decision-model call; only `sudo` still asks for the password. Paths on `denied_path` stay refused |

The working directory must be a permitted subdirectory of `$HOME`, not `$HOME` itself; since v1.5.0 a directory inside the read-only `~/.config/agenvoy` does not qualify either. Since v1.3.21, even with turn-wide approval, certain operations involving paths outside the work directory or sensitive locations, and commands flagged as potentially irreversible, are reviewed by the decision model. If it is unavailable or cannot confidently classify the call as safe, confirmation is still required. Sandbox and password requirements remain in force.

Path tiers apply in every mode: a sensitive path inside `$HOME` needs a plain confirmation (no password); a path outside `$HOME`, an argv starting with `sudo`, and `sandbox: false` need the system password. Password prompts drop "Yes, don't ask again" and "Yes, allow this turn"; plain confirmations keep them. Before v1.3.7 a path outside `$HOME` under `auto` was rejected without a prompt; it now asks for the password. Since v1.3.10 `read_files` and `find_files` read a path outside `$HOME` without a prompt when it is on the readable list (system and package locations such as `/usr`, `/etc`, `/opt`, plus `readable_path` in `config.json`).

`rm` in an argv moves its targets to the trash: inside the working directory it runs under `auto`, elsewhere in `$HOME` it asks, outside `$HOME` it needs the password; `rm` inside `sh -c` is refused. `network: true` on `run_command` / `background_command` confirms under `safe` and runs under `auto`.
