/fleet:fleetfrom fleet
Keep the per-user Claude Code setup the same on every machine the user works from (the laptop and the remote T3 EC2) with `fleet` — Claude Code version, skill repos and links, plugins, `~/.claude/CLAUDE.md` and `~/.claude/settings*.json` — respecting what is each machine's own. TRIGGER when asked to "sync the fleet", sync or compare Claude Code setups across machines, carry a CLAUDE.md/settings/skill/plugin change over to the EC2 (or back), or rotate a secret in `~/.claude/settings.json` across the machines (`fleet set`), or when a remote T3 thread behaves as if it lacks a skill, plugin or instruction the laptop has.
Ships in fleet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
fleet)fleet # report drift, change nothing; exit 1 if anything is out of sync
fleet --apply # fix it, then report what's left for a human
fleet set KEY # give one ~/.claude/settings.json key (e.g. env.MY_TOKEN) a new value everywhere
Run it on the laptop: the machine it runs on is the source of truth, and the hosts in
~/.config/fleet/config.toml follow it. Run the check first and read the
diff it prints: --apply overwrites the hosts' shared parts, so an edit made only on the EC2 would
be lost. Carry that edit to the laptop first.
What --apply does:
| What | How |
|---|---|
| Claude Code | claude install <newest version any machine runs> on the ones behind |
| Skill repos | fast-forwards each clone ~/.claude/skills links into to its default branch, on every machine; clones and links what a host lacks. Leaves a clone on another branch, ahead or dirty alone, and reports it |
| Plugins | installs, enables and claude plugin updates this machine's enabled user-scope plugins on the hosts. Disabled and project-scope ones are skipped |
~/.claude/CLAUDE.md | copies everything above the line <!-- fleet: everything below is this machine's own and is not synced -->. Below it, on every machine including this one, it writes a generated ### This machine section (hostname, OS, the fleet, how it's reached, that its memory is its own) between its own begin/end markers; the hand-written text after that is left alone |
~/.claude/settings*.json | copies every key except machine_settings (e.g. env.DISPLAY, hooks.Stop). Prints key names only: values carry secrets |
Report only: missing helpers (commands the hooks and statusline call), and T3 Code. T3 Code
already keeps itself in line: on every connect the app pins the remote's server to the app's own
version. A mismatch means the environment needs reconnecting in T3 Code.
Each overwritten file keeps a .bak-<timestamp> copy next to it. Plugin updates take effect from
the next Claude Code session.
To rotate a secret, get it with T3's request_secret using delivery: "file", then run
fleet set <key> < "$file", and never ask for it in chat. It validates the value where it can
(env.AWS_BEARER_TOKEN_BEDROCK against the gateway), writes it on every machine along with its
mirrors from the fleet config (e.g. Codex's copy of the gateway key in ~/.codex/config.toml), and
reports ok or FAILED per machine by hash, never the value.
Something machine-specific showing up as drift is not a reason to sync it: add it to
machine_settings / machine_skills in the config, or move CLAUDE.md text below the marker.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub vladsavelyev/skills --plugin fleet