Config
The one config.jsonc that describes the Fleet.
The config lives at ~/.config/fleetfizz/config.jsonc (under $XDG_CONFIG_HOME when it is set), the same path on every Machine, and must be a regular file, not a symlink. The copy on the Machine you ship from is the one a Ship reads, and the Ship copies it (and schema.json, for editor validation) to every other Machine.
{
"$schema": "./schema.json",
"version": "0.15.3",
"machines": ["connors-mac-studio", "connors-macbook-pro"],
"repos": {
"cloneRoot": [
{ "machines": ["connors-mac-studio"], "path": "/Volumes/StudioStack SSD/fleetfizz/clones" },
],
"items": {
"t3code": {
"origin": "connorch/t3code",
"ref": "main",
"platforms": ["darwin"],
"install": "pnpm install && pnpm build",
"outputs": ["~/Applications/T3 Code.app"],
},
},
},
"npm": { "items": { "pnpm": "^12" } },
"pnpm": {
"dependsOn": ["npm"],
"items": {
"vercel": "^59.25.4",
"skills": "^1.7.0",
"wrangler": { "range": "^4.136.3", "machines": ["connors-mac-studio"] },
},
},
"brew": {
"items": {
"gh": "*",
"oven-sh/bun/bun": "latest",
"tmux": { "range": "*", "platforms": ["linux"] },
},
},
"cask": { "items": { "ghostty": "latest" } },
"skills": {
"agents": ["claude-code", "codex"],
"items": {
"grilling": "mattpocock/skills",
"find-skills": { "source": "vercel-labs/skills", "agents": ["claude-code"] },
},
},
"files": {
"items": {
"vaut": "~/.config/vaut",
"karabiner": { "path": "~/.config/karabiner", "exclude": ["automatic_backups"] },
"mise": { "path": "~/.config/mise/config.toml", "after": "mise install" },
},
},
}version
The fleetfizz version every Machine runs. A fizz of any other version installs this one before it does anything else. Required.
It is an exact version, never a Range, so one Ship's logic is always one version's. fizz init writes the version that is running. Every command that reads the config compares it first: a fizz of another version, older or newer, installs this one with the package manager that installed it (vp, npm, bun, or pnpm, read from its path), then runs the same command again. A fizz that none of them installed, such as a pnpm link, stops and names the version to install yourself.
Every Ship also keeps fleetfizz:fleetfizz in line on each Machine, last: a fizz of another version is changed with the package manager that installed it there, and a Machine without fizz gets it with the package manager that installed the Starting Machine's, or skips it until it has that package manager. fizz self-update changes version and installs it here; the next Ship installs it everywhere.
machines
The Fleet: each Machine's tailnet name. A tailnet member that is not listed is not part of the Fleet.
repos
Each Tracked Repo is cloned on every targeted Machine and installed from its origin ref.
| Field | Description |
|---|---|
dependsOn | Providers whose Items must succeed on a Machine before this one changes there. |
cloneRoot | Where a Machine keeps its Managed Clones: a path, or a list of { path, platforms?, machines? } where a Machine gets the first that targets it. ~ expands on that Machine. Default: ~/.local/share/fleetfizz/clones. |
items | Tracked Repos, keyed by name, which names the Managed Clone and the repos:<name> Item. Each is { origin, ref, install, ... }, or a list of Variants, of which a Machine gets the first that targets it. |
Each Tracked Repo in items:
| Field | Description |
|---|---|
origin | The GitHub owner/repo. Required. |
ref | A branch, or a full 40-character commit SHA to pin it. Required. |
install | The Install Command, run in a login shell inside the Managed Clone. Required. |
outputs | Paths outside the clone the Install Command produces. If one changes by hand, the repo reinstalls. |
The Install Command runs with FLEETFIZZ_MACHINE, FLEETFIZZ_PLATFORM, and FLEETFIZZ_MACHINES (every Machine in the Fleet, comma-separated) set. A cloneRoot under ~ is created when it is missing; any other path is taken to be a volume, so a Machine where it is missing fails ("clone root not mounted") rather than cloning to the internal drive.
vp, npm, bun, pnpm
vp, npm, bun, pnpm: Globals installed with that package manager's global install. Each needs its package manager on the Machine; a Ship never installs it.
| Field | Description |
|---|---|
dependsOn | Providers whose Items must succeed on a Machine before this one changes there. |
items | Globals the section's package manager installs, keyed by package. Each is a Range, { range, platforms?, machines? } to target it, or a list of Variants, of which a Machine gets the first that targets it. |
{
"version": "0.15.3",
"machines": ["connors-mac-studio"],
"files": { "items": { "vp-config": "~/.config/vite-plus/config.json" } },
"vp": { "items": { "vercel": "^59.25.4" } },
"bun": { "items": { "@anthropic-ai/claude-code": "latest" } },
}Each package manager lists its Globals with its own command (pnpm ls -g --depth=0 --json, bun pm ls -g, and so on) and installs with its own global install. A Global of a package manager that is not on a Machine fails ("pnpm is not installed"), unless another section installs that package manager there in the same Ship: then it waits for the next Ship. Yarn has no section, since Yarn 2 and newer has no global installs.
A Ship installs the newest version in a Global's Range when it is missing or below the Range, and leaves it alone anywhere inside it. latest keeps it at the newest version, and * installs only when missing. The Starting Machine reads published versions from the npm registry, so every Machine gets the same version. A Global not in the config is never uninstalled.
A Global above its Range usually means someone updated it by hand, so the Ship asks before changing anything: bump the Range, skip it on that Machine, or downgrade into the Range.
A Ship never installs a package manager or Node, and never keeps their versions. That stays yours, with what the config already has: a package manager as a Global of another ("npm": { "items": { "pnpm": "^12" } }), a Formula (node@24), or a Shared File for the tool that keeps the version, such as vp's ~/.config/vite-plus/config.json or mise's config.toml with "after": "mise install". After a Node change, a package manager whose Globals live per Node (npm under nvm, fnm, or mise) reports them as missing, and the next Ship installs them again.
brew
Homebrew Formulae. Needs Homebrew on the Machine; a Ship never installs it.
| Field | Description |
|---|---|
dependsOn | Providers whose Items must succeed on a Machine before this one changes there. |
items | Formulae, keyed by name. Each is "*" or "latest", { range, platforms?, machines? } to target it, or a list of Variants, of which a Machine gets the first that targets it. A tapped name (owner/tap/name) taps on install. |
cask
Homebrew Casks, macOS only. Needs Homebrew on the Machine.
| Field | Description |
|---|---|
dependsOn | Providers whose Items must succeed on a Machine before this one changes there. |
items | Casks, keyed by name. Each is "*" or "latest", { range, platforms?, machines? } to target it, or a list of Variants, of which a Machine gets the first that targets it. A tapped name (owner/tap/name) taps on install. |
brew and cask need Homebrew on every Machine they target; a Ship never installs it, and brew:brew fails on a Machine without it. Casks fail on Linux, so in a Fleet with Linux Machines, give cask (and brew, if Linux has no Homebrew) "platforms": ["darwin"]. Homebrew installs only a package's newest version, so a Range there is only "*" (install when missing) or "latest" (run brew update, then upgrade on every Ship). A "latest" package always shows as planned in a dry run; whether there is something newer is known only after brew update, and the Ledger then shows the version it reached.
skills
Agent skills, installed with the skills CLI, which a package manager's section must list as a Global. Kept at their source's ref.
| Field | Description |
|---|---|
dependsOn | Providers whose Items must succeed on a Machine before this one changes there. |
agents | The agents every skill is installed for, as skills CLI ids (claude-code, codex). An Item's own agents replaces this list. Required. |
items | Skills, keyed by name, which names the skills:<name> Item. Each is a source, { source, ref?, agents?, platforms?, machines? }, or a list of Variants, of which a Machine gets the first that targets it. |
Each skill in items:
| Field | Description |
|---|---|
source | Where the skills CLI installs it from: owner/repo on GitHub, or any source skills add takes. Required. |
ref | A branch, tag, or full commit SHA. Default: the repo's default branch. Not with a source that has #ref. |
agents | The agents to install it for, instead of the section's agents. |
The skills CLI installs each skill, so list it as a Global of any package manager ("skills": "^1.7.0" in pnpm.items); a skill on a Machine without it fails. On a Machine that gets the CLI in a Ship, its skills install on the next Ship, once the CLI can show which skill folders are already there. A Ship runs skills add <source> -g -y -s <names> -a <agents> once for each source and set of agents, with telemetry off. The CLI's own lock (~/.agents/.skill-lock.json, or under $XDG_STATE_HOME) records the source and hash of what it installed, and each Machine keeps a record of the agents, so adding one to agents installs every skill for it on the next Ship. A skill installed by hand with the CLI installs again on its first Ship, to record its agents. Skills the config does not list are left alone, and removing one from the config never uninstalls it.
A skill from GitHub (owner/repo) follows its ref, or the default branch, like a Tracked Repo: once per Ship, the Machine you ship from reads the skill folder's hash at the ref from GitHub, and a Machine whose lock has another hash installs it again. The Ledger shows the hash: skills:grilling eedaf25 → f073203. A skill from any other source is installed when missing and never checked. When GitHub cannot be reached, or cannot list a repo in full (past about 100,000 files), installed skills are skipped for that Ship and missing ones still install.
A Ship asks before an install would replace a skill's folder (--answer skill=overwrite or skip; skip is the default) when the folder was edited there, or when the skills CLI did not install it, such as a skill a Tracked Repo puts there. A private source uses the same gh token as private repos. --rebuild skills:<name> installs a skill again even when it is current.
files
Files and directories copied from the Starting Machine to every targeted Machine. A directory is mirrored.
| Field | Description |
|---|---|
dependsOn | Providers whose Items must succeed on a Machine before this one changes there. |
items | Shared Files, keyed by name, which names the files:<name> Item. Each is a path, { path, exclude?, after?, platforms?, machines? }, or a list of Variants, of which a Machine gets the first that targets it. |
Each Shared File in items:
| Field | Description |
|---|---|
path | A file or directory, absolute or under ~, which expands on each Machine. Required. |
exclude | Globs inside a directory that are neither copied nor deleted. One without a / matches a name at any depth. .DS_Store and ._* are always excluded. Every Variant of one Shared File has the same exclude. |
after | A command run after a Ship writes the file there, in its directory, with shell.init and the known bin directories set up (mise install). If it fails, the next Ship runs it again. |
A Ship reads each Shared File on the Machine it runs from and copies it, with its mode bits, to every targeted Machine. A directory is mirrored: what the Starting Machine no longer has is deleted there too, except excluded paths (and .DS_Store and ._*, always). A symlink is copied as a link. A Shared File over 10 MB in total fails.
Each Machine keeps a record of the last copy a Ship wrote there. Before overwriting, a Ship asks (--answer file=overwrite or skip; skip is the default) when the copy there was edited since, when no Ship wrote it, or when it came from a newer Ship that missed the Starting Machine. The Question can also show the diff from that Machine's copy first (with your own git pager, never logged), keep that Machine's copy instead, and an Item the Starting Machine lacks asks which Machine to take it from: the Ship pulls the copy here, encrypted with openssl on the way, then starts over. Contents travel to a Machine on the ssh session's stdin, and back from one only encrypted, so they never appear in a script, the Ledger, or the Ship Log.
after runs on a Machine where the Ship wrote the file, in the file's directory and before its record, so when it fails, the next Ship runs it again on that Machine. It also runs where the copy is already in line but no record shows that its after succeeded. --rebuild files:<name> runs it on a Machine whose copy is already in line.
shell
How a Ship's scripts start on each Machine.
| Field | Description |
|---|---|
init | Shell run before every script a Ship runs on a Machine (source ~/.zshrc): a command, or a list of { command, platforms?, machines? } where a Machine gets the first that targets it. By default no rc file is read; the known bin directories of vp, pnpm, bun, mise, volta, nvm, and fnm are on PATH. |
A Ship runs every script in a login shell, which reads no rc file over ssh: Ubuntu's .bashrc returns early when it is not interactive, and zsh reads .zshrc only when it is. So fleetfizz sources vp's env file when there is one, sets PNPM_HOME to pnpm's default when it is unset, and appends the bin directories of vp, pnpm, bun, mise, volta, and fnm to PATH, so what the login shell already has wins. It sources nvm.sh when nothing before it gave a node. When a Machine needs more, such as nvm's node ahead of a system one, init runs after all of this, so what it picks wins, with stdin closed.
Order
Sections run in a built-in order: brew, cask, files, vp, npm, bun, pnpm, skills, repos, then fleetfizz itself. Homebrew is first, so an after can use a Formula; then the package managers, so they find the Node a Formula or a Shared File set up; then skills and repos, so an Install Command can use any of them. The order sections are written in the config never matters.
dependsOn changes the order, and only dependsOn holds a section back: when an Item of a section it names fails on a Machine, that Machine's changes for this section are skipped ("depends on npm"). cask always depends on brew. A section it names that does not target the Machine holds nothing back. bun installed as a pnpm Global runs before pnpm by default; "bun": { "dependsOn": ["pnpm"] } fixes it.
Targeting
Every section but shell, each Item in its items, and each Variant take two optional fields that narrow where they apply. They combine with AND, so an Item applies where both it and its section do, and an unset field means every one.
| Field | Description |
|---|---|
platforms | darwin, linux, or both. |
machines | Machine names from machines. |
Variants
When one Item needs a different definition on some Machines, write it as a list of Variants: whole entries, each with its own Targeting. A Machine gets the first Variant that targets it, and an Item with no Variant for a Machine is not targeted there. A bare value with no Targeting, last, covers every other Machine.
{
"version": "0.15.3",
"machines": ["connors-mac-studio", "bluefin"],
"pnpm": {
"items": {
"vercel": [{ "platforms": ["linux"], "range": "^60.0.0" }, "^59.25.4"],
},
},
}repos.cloneRoot and shell.init take Variants the same way: a value, or a list of entries with Targeting ({ path, platforms?, machines? }). A Machine with no Variant gets the default, ~/.local/share/fleetfizz/clones or no init.