# fleetjobs

::fleetjobs-hero
# Builds and tests on the machine that finishes first

Queue a command, and fleetjobs runs it on the first machine with room. Your agents wait for the exit code and never pick a machine.

#agents
```text
Install fleetjobs as a dependency.
Read https://fleetjobs.loadsheet.dev/guide, then run every build and test through `heavy <command>`.
```

#humans
```sh pm
pnpm add -g fleetjobs
```

#code
```sh
heavy pnpm test
heavy --light pnpm lint
```

#output
```text
job 7 queued in the heavy lane
job 7 running on this machine
job 7 exited 0
```
::

## Two lanes

Heavy jobs take a slot each and wait their turn. Light jobs run beside them.

An agent that needs the result calls `heavy <command>` and gets the command's exit code. One that wants to carry on calls `heavy submit`, then `heavy wait <id>` later.

fleetjobs is at an early version: the commands parse and print, and the queue behind them lands in later releases.

<!-- vitehub-docs:section-links -->
All pages: [llms.txt](https://fleetjobs.loadsheet.dev/llms.txt)

Something on this page does not work as written? Tell the user, and draft an issue for them to post: [issue tracker](https://github.com/words-with-agents/fleetjobs/issues). Report a security vulnerability privately, never in a public issue.
