UNOUNOCODE

SAFETY

The safety model

A coding agent runs commands a model chose, on your machine. Uno puts five layers between the model and your machine, and is plain about what each one does not stop.

IN ONE LINETrust gate, rules, mode, sandbox, then undo and the spending cap behind them. Deny always wins.
TRUST RULES MODE SANDBOX RUN git push edit api.ts cargo test deny: bash(git push) asks you… y
Every tool call passes the same gates in the same order. The first "no" ends it.

The layers

LayerStopsPage
Trust gateA cloned repo's own settings, hooks and MCP servers from taking effect until you say soTrust
RulesCalls you have forbidden (deny), or want asked about (ask)Permissions
ModeEdits and risky commands without your say-soPermissions
SandboxShell commands writing outside the project, reading secrets, reaching Docker or an SSH agent through their socketsSandbox
UndoA bad file change from being permanentSessions and undo
Spending capA runaway loop from running up a billSpending cap

Always true, in every mode

  • .env files and key files are never read by Uno's file tools.
  • Changes under .git/, .uno/ and .claude/ ask, because they steer the tools themselves. With -p they are refused, plan mode refuses them, and only bypass mode lets them through.
  • The model cannot run uno trust for itself, even in bypass mode.
  • A deny rule holds even in bypass mode.
  • Your API keys never reach hooks, MCP servers or the model.
  • Web pages, MCP results and recalled sessions are marked to the model as data, not instructions.

What it does not stop

READ THIS ONCE

A command you allow runs unconfined. --allow "bash(docker compose)" lets that command run outside the sandbox, on your machine, with nothing confining it. Keep rules narrow.

The model can be talked into things. A malicious README or web page can try to steer it. The gates limit what it can do, not what it wants to do; read what you approve.

Shell changes are not undoable. Only changes made with Uno's file tools are snapshotted.

MCP servers and hooks run outside the sandbox. They are programs you chose to run; trust them as you would any program.

Linux and Windows are less tested. The macOS sandbox has run for real; Linux needs bubblewrap; Windows has no sandbox yet.

DESIGN DECISION · F, D26, D47

Several thin layers, each easy to reason about, rather than one clever classifier. The order is fixed (trust, then rules, then mode, then sandbox), so you can always predict the outcome. The sandbox has the network by default so installs need no unconfined command; your keys stay unreadable to it, and "sandbox": {"network": false} closes the network where the code itself must not leave.