Sync
Mirror a project folder between the box and your machine, both directions and git history included, with edits landing on the other side in under a second.
On this page13
The model
| Side | Path |
|---|---|
| box | ~/code/<name> |
| your machine | ~/Prized/<name> by default |
prized sync add <name> creates the pair; --local syncs a folder of your own in place, and local_root under [sync] in the config moves the default parent. The parent itself never syncs as a project; a project without --local gets its own folder inside it. The real local copy keeps whole-repo tools fast; to browse the box without copying, use mount.
Sync needs the box's SSH name to be free. If your SSH config already defines that name, starting, resuming or repairing sync is refused: rename the existing SSH alias at the reported file and line, then run prized doctor. prized ssh BOX still reaches the box (SSH name conflicts).
How fast
Under a second, except the first edit in a folder nothing has touched for a while, which can take up to 10 seconds to leave the box; watch_polling_interval in the project's [[sync.project]] entry lowers that, at the cost of a full scan per interval.
Add a project
Nothing exists yet. --create makes ~/code/myproject on the box:
prized sync add myproject --createThe code is on the box. The first sync copies ~/code/myproject down to ~/Prized/myproject (C:\Users\you\Prized\myproject on Windows). For a folder outside ~/code, pass its path (prized sync add ~/work/api names it api); --name picks the name yourself:
prized sync add myprojectThe code is on your machine. Run setup in the folder, or point it there. Auto mode takes a folder holding a .git directory or a manifest (package.json, go.mod, pyproject.toml, and the like) without asking, and asks about any other, so your home folder never goes to the box by accident. Every mode but --clone refuses your home folder, a folder above it, a whole drive (D:\, /mnt/c), or the folder drives mount in (/mnt, /Volumes), which would carry ~/.ssh along. Setup copies the folder once and starts no sync unless you ask: --sync syncs it in place, and a manual run asks (default no). Two more modes are flags:
prized setup ~/src/myproject --sync # sync in place
prized setup ~/src/myproject # copy to ~/code/myproject on the box once, no sync (manual asks first)
prized setup ~/src/myproject --copy # sync a copy under ~/Prized
prized setup ~/src/myproject --clone # git clone on the box, no mirror| Mode | What happens | Right for |
|---|---|---|
--sync | In place: your folder becomes the local side, and the box wins conflicts there. | A project one person edits. |
Copy once (the default, or --copy-once to skip the question) | One upload to ~/code/myproject, .git included, ignored paths and .env files left out; no sync, and a populated destination is never overwritten. Excluded directories stay on your machine, even when folders change during the copy. If setup stops because a folder changed, let those edits finish and run it again; incomplete uploads are not left in the destination. A folder that is itself a symlink (or, on Windows, a junction) is refused: run setup in the folder it points to. | A checkout others or several agents edit, or a one-time import. |
--copy | Copies (never moves) the folder into ~/Prized/myproject and syncs the copy; a hard link inside is refused. | Leaving the original untouched. |
--clone | Clones the folder's origin to ~/code/myproject on the box at your current branch; no sync, work moves by push and pull. | A checkout others edit, worktrees, uncommitted work in flight. |
Public GitHub repos clone even when neither machine is signed in to GitHub, including with --no-gh. Private repos need GitHub access on the box or a token you allow setup to lend (Credentials).
In place by hand is prized sync add --local ~/src/myproject --create, which refuses the same folders. To sync a folder you copied once, run prized setup --sync --merge in it: both sides have content by then. A copy or a clone is not a sync project, so it never appears in prized sync ls.
| Rule for every add | What happens |
|---|---|
| Both sides have content | add refuses until you pass --merge (prized setup --merge passes it through), which accepts the conflict rule below; the local folder is first copied to ~/. |
| No nesting | A folder cannot be added inside, around, or on top of another synced folder, on either side. This includes syncs still running after their project entry was removed, even with --direct or a stopped daemon. A local folder cannot overlap another box's mirror either. |
| Ignored by default | node_modules, .next, dist, build, out, target, .venv, venv, __pycache__, .turbo, coverage, *.log, .DS_Store, ._*, .tox, .nox, .mypy_cache, .pytest_cache, .ruff_cache, .ipynb_checkpoints, .pnpm-store, .parcel-cache, .nuxt, .svelte-kit, .cache, .gradle, .terraform. New configs also ignore Claude Code's own install where a project's folder is a home folder (.local/ and .local/bin/claude); an existing config keeps its list. Adjust per project with --ignore and --unignore. |
.env files | A session prized setup creates ignores .env and .env.* (.env.example still syncs); prized sync add by hand syncs them unless you pass --ignore .env (Bring your environment). |
| Files over 256 MB | A file only one side has is left out of sync and not sent again; it stays where it is, and sync add and prized sync ls name it ("over the 256 MB sync limit, left out of sync"). To sync it later, bring it under the limit, then remove the project and add it again. A file both sides have is sent until it fits under the limit. |
If the existing syncs cannot be checked, the add stops before making either project folder. Run prized doctor and retry once sync answers. An overlap refusal names the existing project or session: choose a separate folder, or stop that sync on its own box before adding the new one.
If the first sync cannot be set up, sync add fails with the reason but keeps the project, shown as error in prized sync ls while the daemon retries. prized daemon restart, or a re-run of prized setup, tries again at once; prized sync rm myproject drops it. Moving the whole folder, .git included, can take a couple of minutes: watch the transfer rate on setup's progress line before assuming it is stuck, trim with --ignore, or use --clone so the box fetches the history from origin.
Low disk on your machine
A project larger than your free disk never finishes its first sync. When free space on any volume sync writes to drops below 2 GB, Prized pauses every synced project and prized sync ls says so:
NAME STATE LAST CHANGE CONFLICTS LOCAL REMOTE
doppel paused - 0 ~/Prized/doppel ~/code/doppel
doppel: paused by prizedd — low disk: 1.5 GB free on ~/Prized/doppel, below min_free_disk_gb = 2Free space, or add extra_ignores for folders that should not travel (render output, datasets, media), then prized sync resume --all. While a volume is below the line, a resume is refused and a newly added project starts paused; prized sync add onto a volume that is itself below it is refused. The threshold is min_free_disk_gb under [sync] in the config (0 turns the guard off), applied on the next reload.
[[sync.project]]
name = 'doppel'
extra_ignores = ['artifacts']Conflicts: the box wins
Sync runs two-way-resolved and the box wins every conflict, since agents there write fast; in a folder synced in place, your own checkout is the side that yields. --prefer mac flips that per project; --mode two-way-safe surfaces conflicts instead of resolving them.
Git over sync
Commits, branches, and the index sync both ways, so a commit made on the box shows up in your local checkout. Commit, rebase, and push from a shell on the box. Reading history, diffs, and blame in ~/Prized is always safe; committing from your machine is safe only while the box side is quiet, or the local commit can be lost.
Each side keeps its own repository settings and hooks: .git/config (remotes, branch tracking, aliases), .git/hooks, and the .git file inside each submodule never sync, in either direction, for every repository in the folder. When prized sync add or prized setup --sync starts a project from your machine, it copies the settings and submodule links to the box once so the box can push; anything the box already has is left alone.
- Added later: a remote, branch setting, or hook stays on the side where you added it.
- Started on the box: your machine gets the history but no remotes; add one with
git remote add origin <url>if you fetch from there. - Synced before this: the settings and hooks each side already has stay as they are; check
.git/configand.git/hookshere if you are unsure where they came from.
Claude Code settings over sync
Each side keeps its own .claude/, the file where Claude Code saves what it may do on one machine without asking (Yes, and don't ask again). Sync leaves that file out, in either direction, so a rule or a hook the box writes into it does not sync to your machine. A .claude that is a link instead of a folder is left out too.
- From your machine to the box:
prized sync addandprized setup --synccopy the folder's file to the box once, where the box has none, andprized teleportsends it with the conversation, replacing the box's. A rule you save here in between reaches the box at the next teleport. The file is not copied when your own ignores leave it, or.claude, out of sync, or when it is a link here (one line says so). - From the box to your machine: never. A rule you save on the box stays on the box, until the next teleport replaces that file.
prized teleport backsays in one line when the box's file differs from yours or exists only there. - Synced before this: the file each side already has stays as it is; look at
.claude/here if you are unsure where a rule or a hook in it came from.settings.local.json
What this does not do. A box can still change what Claude Code does on your machine through the files that do sync:
.claude/settings.jsonand.mcp.jsonstill sync, like the rest of the project. A hook or an allow rule the box writes into.claude/settings.jsonreaches your machine, and the next Claude Code you start in that folder reads it. Nothing warns you when you start Claude Code yourself: review a change to those files the way you review code from the box.prized teleport backcompares those two files and nothing else. It compares them in the conversation's folder and in each folder above it up to the synced one, with what they held when the conversation left your machine. When one changed (in more thanmodel,theme,includeCoAuthoredBy,alwaysThinkingEnabled,spinnerTipsEnabledor$schema), is a link, or was never recorded and holds something, it names the file and prints the resume command instead of starting Claude Code, so you can look first. It does not look at a script a hook calls, at skills, agents, commands orCLAUDE.md, and a hook that was already in the file before the teleport is not a change.- A broad unignore reopens the link. If your project's
unignoreholds*,.*or.claude, a.claudethat is a link syncs again. - A
.claudeyou commit as a link (to a shared folder in the repo) no longer reaches the box through sync, so git on the box shows it as deleted. Keep.claudea real folder in a project you sync.
Offline
Agents, builds, and servers keep running while your laptop is offline; sync and mirrored ports catch up on reconnect. Before editing offline where an agent also writes, pause the project, or the box's versions win on reconnect.
While the box itself is paused, sync waits for it, and prized sync ls says so. It catches up once the box runs: at once when you wake it from this machine (prized ssh, prized up, prized box resume), within a few minutes when you wake it from the dashboard. If the box stays asleep, your desktop says so once a day, on macOS with Resume (Notifications). Sync never wakes it.
Once the box has been asleep, paused for more than 6 hours, or deleted, the daemon pauses the project instead of retrying. It resumes the project by itself within about 2 minutes of a wake from anywhere, at once when you wake the box with prized ssh, prized up or Resume on the desktop notice. prized sync ls shows why:
doppel: paused by prizedd — the box mango is asleep; sync resumes by itself once it wakes (prized box resume mango)If you deleted the box, prized sync rm <project> removes the project; your local files stay.
Behind a proxy, sync uses your Mac's system proxy, or your shell's HTTPS_PROXY once you run prized setup there (Networks that block the tunnel).
When Prized turns sync off
If a box's sync loops, sending the same data over and over, Prized can turn sync off for that box so it stops. Nothing is deleted: your projects pause, the files on both sides stay as they are, and edits made meanwhile wait on each side. The box's page on the dashboard says why, and so do prized sync ls and prized status:
sync turned off by Prized: sync kept re-sending a 310 MB file. Email team@prized.dev to turn it back on.To get it back, email . Once sync is on again, every project picks up where it left off and catches up in both directions.
Everyday commands
| Command | What it does |
|---|---|
prized sync | List projects with state and conflicts (same as prized sync ls); says so when nothing is synced. |
prized sync flush myproject | Force a full sync cycle and wait for it, for example before switching machines. |
prized sync pause myproject | Stop syncing until you resume; --all works too. |
prized sync resume myproject | Resume a paused project. |
prized sync repair myproject | Recover a halted session with a safe re-scan; no deletions propagate. |
Remove a project
prized sync rm myprojectThis stops syncing and leaves the files on both sides. Two flags also move files aside (never rm -rf), naming the exact path in the confirm:
--delete-localmoves the local folder to the Trash after you typedelete-local; for a project synced in place, that is your own checkout.--delete-boxmoves the box folder aside after you typedelete-box; refused while anything else syncs that folder or one inside it.
Several boxes
Aim sync commands at a box connected with prized setup --box mango by adding --box mango (or PRIZED_BOX=mango); two boxes cannot sync a project under one name, so the second prized sync add asks for --name (Boxes).
Under the hood
Sync runs on Mutagen: Prized uses its own pinned copy, never one on your PATH. It is downloaded with your first synced project, not at install, and prized doctor fetches it again if it goes missing while a project syncs.