Permissions

yolo is the default. ask and auto are explicit opt-ins on the native loop.

Modes

ModeNative behavior
askPrompt on unresolved sensitive tools
autoRules and session grants first; remaining sensitive calls may use a cheap heuristic or the active model; still-unresolved prompts (TUI) or fails (CI)
yoloSkip tny permission checks and the command sandbox for this process. Does not rewrite saved settings

Default: yolo for every provider. ask and auto are explicit opt-ins. tny owns the native tool loop and permission boundary for every HTTP profile.

What needs approval

Never: list_files, glob_files, grep_files, read_file, file_info inside the workspace.

Always, unless a rule or grant allows it: writes, deletes, renames, run_command, open_file, install_skill, vision, any path outside the workspace, MCP tools/call.

Prompt choices: Yes / Yes and don't ask again (session grant) / No. Keys: y / a / n.

Persistent rules

Only in ~/.tny/settings.json. Project .tny.json cannot grant authority. Last match wins. Workspace rules beat user-global. Wildcards are glob-style.

{
  "permission": {
    "*": "ask",
    "bash": { "git *": "allow", "git push *": "deny" },
    "edit": { "docs/*": "allow", "*": "deny" }
  }
}

Sandbox

ModeTerminal-child behavior
osmacOS Seatbelt or Linux bubblewrap: reads allowed; writes limited to workspace, extra dirs, temp, and required devices
noneNo tny OS wrapper
autoos when the platform wrapper is executable, otherwise none

yolo forces effective none. Only local native-loop terminal children are wrapped, including background commands; tny itself and built-in file tools, and --ssh commands stay outside. Network remains open for package managers, provider CLIs, tests, and local development servers. A denied write names the path and points to workspace extra dirs; widening is a separate user decision, not an automatic retry. doctor reports the effective mode. wasm treats auto as none and rejects explicit os cleanly.