SAFETY
Permissions and modes
The mode sets how much Uno does without asking. Rules carve exceptions: things that always run, always ask (except in bypass mode), or never run.
deny beats ask beats allow; whatever no rule covers, the mode decides.Try the modes
--mode, or in the chat with /mode (a list) or Shift+Tab, even while Uno is working. The chat starts in default; -p starts in accept-edits.Answering a question
| Key | Means |
|---|---|
| y | Yes, this once |
| a | Yes for the rest of the session: on an edit, every file change in the project; on a command, every command that starts the same way; on a web fetch, that site |
| n | No. The model is told, and finds another way or asks you |
For MCP calls there are more: a this tool, s every tool on this server, m every MCP tool, for the session.
Try the rules
{
"permissions": {
"allow": ["bash(cargo test)",
"bash(npm run lint)",
"web_fetch(docs.rs)"],
"ask": ["bash(git commit)"],
"deny": ["bash(git push)",
"bash(rm -rf)",
"web_fetch(*.internal)"]
}
}
Writing rules
toolcovers every call of a tool:web_fetch,bash,edit.bash(cargo test)covers commands that start with those words. Pipes and&&are split, and each command must be covered.web_fetch(*.github.com)covers the subdomains of github.com; addweb_fetch(github.com)for the site itself.mcp__github__create_issue,mcp__githubormcpcover one MCP tool, a server, or all of them.- Claude Code's
WebFetch(domain:docs.rs)spelling works too.
Rules live in permissions in ~/.config/uno/settings.json, or in a trusted project's .uno/settings.json. For one run, use --allow:
uno -p "fix the lint errors" --allow "bash(npm run lint)"
Files outside the project
The file tools (read, write, edit, grep, glob) work inside the project folder. In bypass mode only they also work anywhere else, so a run in a throwaway container can change /etc/nginx/nginx.conf or read /tmp/out.log without falling back to cat. Bypass already lets commands run outside the sandbox without a question, so this gives the model nothing new; it gets diffs and undo instead of heredocs.
- In default, accept-edits and plan mode, a path outside the project is refused by the tool, whatever you answer. Nothing is ever written outside the project in those modes.
.envfiles, keys (id_rsa,*.pem,*.key) and MCP sign-ins are refused in every mode, inside the project or out.- Credential folders and files (
~/.ssh,~/.aws,~/.gnupg,~/.kube,~/.docker,~/.config/gh,~/.config/gcloud,~/.git-credentials,~/.npmrcand more) and Uno's own settings and data folders are refused in every mode, bypass included, even when Uno runs in your home folder. Links and..are followed before the check, andgrepandglobnever walk into them. - Deny rules hold outside the project:
"deny": ["edit(/etc/**)"]stops a write to/etceven in bypass mode, however the path is spelt or linked. To keep file changes in the project in bypass mode, denyedit(/**): it matches only paths outside it. Adenyofbashas a whole does the same. - Changes outside the project are kept for
uno undolike any other.
Use cases
Look but don't touch
Exploring a codebase you don't own, or planning a big change first.
uno --mode planTrust the edits, watch the commands
You will review with git diff anyway.
uno --mode accept-editsNever push
One rule, in every mode, even bypass.
"deny": ["bash(git push)"]A throwaway container
Nothing to protect inside it. Deny rules still hold.
uno --dangerously-skip-permissionsa covers the whole group (all edits, or one command prefix) because answering once per file was tiring enough that people stopped reading the questions. Plan mode is a permission mode, denied at the moment of the call, rather than a different set of tools, so switching to it does not throw away the prompt cache.