# Several machines

If you run agents on more than one machine, a skill you never use on your laptop may still be used on your server. `--fleet` reads them all before it judges.

## One report for every machine

```sh
npx loadsheet --fleet
```

loadsheet reads this machine, then asks each other machine of your fleet for its Scan over ssh. On each one it runs the version you ran here, such as:

```sh
npx -y loadsheet@0.2.0 --scan --days 30
```

That machine reads its own transcripts and sends back counters, names and skill descriptions as JSON. No transcript text leaves it. loadsheet then prints one Report for all machines, and says on stderr how many it read, such as `Read 3 of 4 machines`.

loadsheet leaves out a machine that fails or does not answer within `--timeout` seconds, 300 by default. The Report lists it under `machines` with the reason. A fleet report adds the `drift` rule: the same skill with different contents on two machines.

## Which machines

loadsheet takes the fleet from the first of these it finds:

1. The hosts you name after `--fleet`, separated by commas: `--fleet box,vps` or `--fleet=box,vps`. Use `--fleet=<host>` for a single host named like a harness or `usage`: `--fleet claude` selects the Claude view of the default fleet, while `--fleet=claude` selects the host `claude`. Each entry is an ssh host, `user@host`, `ssh://user@host:port` or a Tailscale tag such as `tag:servers`. loadsheet refuses an empty entry or one ssh would read as an option, before it connects anywhere.
2. The hosts for the current config profile that [fleetrc](https://www.npmjs.com/package/fleetrc) recorded in `hosts.json` in `$XDG_STATE_HOME/fleetrc` or `~/.local/state/fleetrc`, when using a fleetrc version that writes host records. A one-off `--manifest` pointing somewhere else does not change the record. A profile with no record has no fallback.

Without either, loadsheet warns and reports this machine alone. Run `npx fleetrc sync` to write `hosts.json` for the current profile, or pass `--fleet a,b`. A list with no host also reports this machine alone.

```sh
npx loadsheet --fleet box,tag:servers
```

To run another build of loadsheet on the other machines, such as one not yet on npm, set `LOADSHEET_FLEET_COMMAND`. loadsheet splits it on spaces and runs it in place of `npx -y loadsheet@0.1.0`.

## Keep skills in sync

[fleetrc](https://github.com/words-with-agents/fleetrc) installs the same skills in every agent's skills folder from the sources a manifest lists. `npx fleetrc init <manifest>` points this machine at a manifest. `npx fleetrc sync` fetches the sources and links the skills. Versions that write host records also record the fleet's hosts for `--fleet`. To list every command:

```sh
npx fleetrc --help
```

`loadsheet fleet` used to run fleetrc. It now prints the `npx fleetrc` command to run with the same arguments, and exits 2.

<!-- vitehub-docs:section-links -->
## In this section

- [Install and first run](https://loadsheet.dev/raw/docs/guide.md)
- [Read the report](https://loadsheet.dev/raw/docs/guide/reading.md)
- [Apply fixes with your agent](https://loadsheet.dev/raw/docs/guide/fixes.md)
- [The report as a web page](https://loadsheet.dev/raw/docs/guide/web-page.md)
- [Weigh a skill pack](https://loadsheet.dev/raw/docs/guide/packs.md)
- [Several machines](https://loadsheet.dev/raw/docs/guide/fleet.md) (this page)
- [Privacy](https://loadsheet.dev/raw/docs/guide/privacy.md)
- [Coding agents](https://loadsheet.dev/raw/docs/guide/agents.md)

Next: [Privacy](https://loadsheet.dev/raw/docs/guide/privacy.md)

All pages: [llms.txt](https://loadsheet.dev/llms.txt)
