Security
Security model
What Relief does, and what it never does.
Relief runs an agent that can edit files and run commands, on your machine, with your keys. So the design question is what it can do without you looking. This page is the short answer. The pages after it are the detail.
Does and never does
| It does | It never does |
|---|---|
| Ask before every edit and command, with a diff, unless you set a looser mode. | Run git push. It is a deny rule, and it is also caught inside chains and disguises. |
| Work only inside the project folder, following symlinks to their real location. | Read or send .env, key files and similar. Secret files are refused by name. |
| Mask keys, tokens and private key blocks before text reaches a model, a log or the screen. | Print a secret you configured, even if a model asks for it. |
| Take settings and instruction files from a repository only after you trust the folder, and pin what you approved. | Let a repository change where your keys or code go. Those settings are yours only. |
| Hand command output and file content to the model labelled as data written by someone else. | Treat text inside a repository as an instruction. |
| Verify updates by Ed25519 signature and SHA-256 before installing, with install scripts off. | Install a downgrade, or an update over plain HTTP. |
| Stop at a spending cap, and tell you what a run cost. | Spend on a model you did not configure. |
| Use hooks and MCP that Claude Code documents. | Read, store or forward your Claude login, or reroute Claude Code's traffic. |
The honest limits
- Code the agent writes and then runs. In
automode, a new file the agent creates and then runs with a routine command, such asnpm test, runs with your permissions and nobody looked at it. Only an operating system sandbox would close that, and Relief does not have one yet. See Permissions. - Rules are text. Deny rules catch many disguises, but a program that builds a command at runtime cannot be seen through. That is why nothing complex is ever pre approved.
- The model is not a security boundary. A second opinion review is advice, and a hostile diff can fool it.
- Prompt text reaches your provider. Whatever the agent reads and sends, after masking, goes to the provider you configured. Use Ollama or
privacy.localOnlyPathsfor work that must stay on your machine. - You. Every guard ends in a question to a person. Approving without reading defeats it.
- Tested on Windows. macOS and Linux are untested by hand.
Every claim has a test
Each protection above has a test that fails if it is removed, and was also checked by breaking it on purpose and confirming a test noticed. If you find a gap, tell us on the feedback page.
The pages
- Trusted folders: who may change what, and how a folder becomes trusted.
- Secrets and redaction: what is masked and how to scan a folder.
- Your Claude account: what the baton never touches.
- Verify a release: check the signature yourself.