UNOUNOCODE

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.

IN ONE LINEdeny beats ask beats allow; whatever no rule covers, the mode decides.

Try the modes

READ AND SEARCH
EDITS IN THE PROJECT
SANDBOXED COMMANDS
OUTSIDE THE SANDBOX

Switch with --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

KeyMeans
yYes, this once
aYes 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
nNo. 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)"]
  }
}
Pick a call to see which rule decides it. A simplified model of the real matcher.

Writing rules

  • tool covers 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; add web_fetch(github.com) for the site itself.
  • mcp__github__create_issue, mcp__github or mcp cover 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.
  • .env files, 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, ~/.npmrc and 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, and grep and glob never walk into them.
  • Deny rules hold outside the project: "deny": ["edit(/etc/**)"] stops a write to /etc even in bypass mode, however the path is spelt or linked. To keep file changes in the project in bypass mode, deny edit(/**): it matches only paths outside it. A deny of bash as a whole does the same.
  • Changes outside the project are kept for uno undo like any other.

Use cases

Look but don't touch

Exploring a codebase you don't own, or planning a big change first.

uno --mode plan

Trust the edits, watch the commands

You will review with git diff anyway.

uno --mode accept-edits

Never 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-permissions
DESIGN DECISION · D31, R9

a 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.