Live files
Edit a workspace's files together in real time, in the browser, in your own studio and with your own agent, and save checkpoints to go back to.
On the Team plan, a cloud workspace keeps one live copy of the team’s Dex files. Everyone who opens it edits the same files at the same moment: you see who is here, where their cursor is, and each change as it is typed. People in the browser, each member’s own studio and each member’s own agent all work on that one copy.
What is live
Workspace content: files/ (every file’s folder), context/, DESIGN.md and contributors.json, as text files (.tsx, .ts, .css, .md, .json and similar) up to 512 KB each.
Nothing that runs on your machine is live: configuration, package.json, scripts and node_modules stay in git. A teammate can change what your studio shows, never what your computer runs.
In the browser
Open Prototypes in the workspace. The file list and editor show the live files; avatars show who is in the workspace, and their cursors and selections appear in the file you share. Viewers can watch and read but not type.
In your own studio
Link the studio first (see Cloud workspaces), then run:
npx dex cloud live
It mirrors the live files to your disk in both directions, while it runs: teammates’ edits appear in your files and your studio reloads; your saves reach everyone. Your own tools, editor and agents keep working on ordinary files. If you and a teammate change the same lines at once, your change is applied where it still fits; the command names each file it could not fully merge and prints where it kept a copy of your version (in your user cache folder, never in the project).
To start the studio and go live in one command:
npx dex dev --live
Teammates show on your canvas while they work, as agents do (“Sam Okafor is editing”).
Cloud previews
Where the service runs previews (self-hosted with Docker; see Self-hosting), Open preview in Prototypes opens the workspace’s studio running in the cloud on the live files: the canvas, every frame and Play, changing as people type, for anyone in the workspace, with nothing to install.
Each workspace has its own preview address and its own sandbox, started on the first visit and stopped when nobody has looked for a while. Under Publishing → Live preview, an owner points it at the team’s repository (and the studio’s folder in it), so the preview has the design system and components; without one it runs the shadcn starter. Previews show the live files; arranging the canvas still happens in a member’s own studio.
With your own agent
Any MCP client on your own account (Claude Code, Cursor and others) can read and edit the live files directly, with no studio on your machine. Nothing runs on our side on your behalf: your agent, your subscription, your other MCP servers.
-
Create a token under Tokens. The page shows the commands with the token filled in.
-
Add the workspace’s MCP server. For Claude Code:
claude mcp add --transport http dex-<workspace> \ "https://<your service>/api/mcp/<workspace>?agent=Claude%20Code" \ --header "Authorization: Bearer <token>"Other clients take the same URL and header as a Streamable HTTP server.
The agent acts as the member who made the token, with their role, and its thread replies read “Claude Code, agent, via
| Tool | What it does |
|---|---|
list_files |
The live files, optionally under a prefix. |
read_file |
A file as it is now, including teammates’ unsaved typing. |
write_file |
Create or replace a file; only what differs changes, so others’ edits survive. |
edit_file |
Replace one exact passage, which must appear once. |
delete_file |
Delete a file for everyone. |
save_checkpoint, list_checkpoints |
Save and list checkpoints. |
compare_with_checkpoint |
What changed since a checkpoint, or one file then and now. |
restore_checkpoint |
Go back to a checkpoint (the current files are saved first). |
threads |
The team’s comments and requests waiting for an agent (or by status), each with its file and element, as the studio’s MCP server describes them. |
acknowledge, resolve, dismiss, reply, react |
Answer them as in the studio: 👀 when you start, ✅ with what changed, 🚫 with why, a message only to ask, or an emoji. |
History
A checkpoint is a named copy of every live file. Open History in the workspace to:
- Save a checkpoint, before a large change or when a direction is ready.
- Compare the live files with one, file by file, with the changed lines marked.
- Go back to one, for everyone. The current files are saved as a checkpoint first, so nothing is lost.
Editors and owners save and go back; viewers can look. Agents do the same over MCP. Git stays the record of what ships: commit from a studio running dex cloud live when a direction is done.
Limits
- 2,000 live files per workspace, 512 KB per file. The browser, your studio and agents over MCP keep to the same limits: a new file or an edit that would pass one, or that is not a live file, is refused before it reaches the workspace.
- Editing needs an active Team plan or trial. When it ends, the live files stay: everyone can still open them, read-only, until an owner subscribes.