Security model: what the relay sees, what teammates can do
Is it safe to share a folder and coding agents with teammates through a server? That server (the relay) forwards encrypted data it cannot read, but knows who connects, from where and when. Encryption does not protect you from the people you invite: every member can read the folder and every conversation, and a teammate with agent access acts as you on your computer, with no sandbox. smurg is a prototype, with no outside audit. This page in 繁體中文.
Where things live
On your computer: the files, the agents and terminals, and in ~/.smurg the conversations and the workspace's
key.
What is encrypted
Everything a workspace exchanges (files, conversations, terminal output) is end-to-end encrypted between your computer and each teammate's browser or CLI.
An invite link ends in #k=…&s=…: the fingerprint of the workspace's key, which the teammate's browser checks,
and the secret that lets them join. The relay never sees the secret. Whoever has the link can join until it expires
or is revoked: send it privately (Share).
What the relay knows
- It sees each connection's Google account and IP address, its workspace, and the size and time of every message.
- It stores each workspace's ID and its host's account; for at most 10 minutes,
smurg loginrequests and counters against code guessing. - On the shared relay, smurg's maintainer and Cloudflare can know this (details). Or run your own.
What encryption does not protect
- The web app comes from the relay. A relay that served a tampered app could read what the browser decrypts, and its keys.
- Every member can see and download the files (
.envtoo), reads every conversation and watches every terminal: Viewers too, and members who join later. Do not share a folder that holds secrets (host guide §4). - No agent is sandboxed. The agents are Claude Code today, on your Claude account. A personal subscription is for your own use, not a group's. Agents run in Claude Code's auto mode unless you choose to be asked: Claude Code decides which commands run (simple file commands in the agent's own folder at once, the others after its check), and smurg itself still asks before a few (§5.2); your own allow rules apply (§5.3); what is allowed runs as you, and a teammate's file can hide instructions for the agent. A work item's change reaches your folder without you reading it first, unless you turn automatic merging off; an Editor's hand edit in a work item still waits for you.
- Agent access is your account. A teammate with this role can run any command on your computer, read your home folder and use your Claude account; smurg cannot limit this. Give the role only to people you fully trust (§5.1); make everyone else an Editor (roles).
What was checked
smurg was verified with a scripted stand-in for the model,
not a real Claude account. The encryption (the Noise protocol) is smurg's own implementation, with no outside
audit. Trust model and known limits:
docs/ARCHITECTURE.md, §2 and
§12.
Report a vulnerability privately, never in a public issue: SECURITY.md.