LLM Fleets
A fleet is a named set of providers.llm entries of one model class, such as three Claude plans that all run Opus. A seat job or a helper set to fleet:<key> runs each new piece of work on whichever member has room, so seats spread across sign-ins instead of each waiting at its own entry’s limit. The decision is ADR-0180.
providers: llm: claude-max: { model: opus, effort: high } claude-team: { model: opus, effort: medium, state_dir: /var/lib/crewlet/llm-harness/team } claude-api: { model: opus, auth: { mode: api-key } } llm_fleets: claude-opus: name: Claude Opus strategy: balanced # or sequential members: [claude-max, claude-team, claude-api] # the sequential orderroles: - name: Engineer llm: fleet:claude-opus # every job of the seat llm_review: fleet:default-fleet # or one jobassistant: { model: fleet:claude-opus }advisor: { model: claude-max } # pinned to one entry, as beforeThe fleet
Section titled “The fleet”| Field | Meaning |
|---|---|
| key | Its address and reference, fleet:<key>: lowercase letters, digits and -, starting and ending with a letter or a digit, at most 63 characters. It never changes. |
name | Required, 1 to 60 characters, unique across fleets ignoring case. A rename changes this only. |
strategy | balanced (absent) or sequential, below. |
members | providers.llm keys, each once, of one model class on one harness. Their effort and sign-in may differ. An entry may be in several fleets. Empty is valid. |
threshold_points | Balanced only: 1 to 50, absent 5. |
The class is read from the entry’s model: Claude Opus, Claude Sonnet, Claude Haiku, GPT-5 Codex, else the model id itself. The first member sets it, and a member of another class or harness is refused (“Runs Claude Sonnet; this fleet runs Claude Opus.”): any member must be able to take any of the fleet’s seats’ work.
The reference
Section titled “The reference”fleet:<key> is accepted wherever one entry key is: llm in its single form, each value of the llm mapping, each llm_<phase>, assistant.model and advisor.model. It is refused inside a list (“A fleet stands alone: choose the fleet or a list of models”): a fleet replaces a hand-ordered fallback list. A key that names no fleet is refused at the field. A seat set to an entry key, or a list of them, is pinned: it runs exactly as before and waits at its model’s limit.
A helper on a fleet holds every member to the helper rule, and the engine builds a helper’s run of each.
default-fleet
Section titled “default-fleet”Every company has default-fleet, {name: default-fleet, strategy: balanced, members: []}, synthesised by the engine: every read and validation sees it, while GET /config serves it only once a write changed it, so a document that never touched it reads back as written. It is never deleted (409 not_removable) and never renamed. New seats and helpers are written fleet:default-fleet unless pinned. A seat job whose fields name no model runs on default-fleet once it has a member; until then it runs on the default entry, then the first entry, as before.
A fleet with no members
Section titled “A fleet with no members”Valid, default-fleet included, and a seat job or helper may be set to one. It cannot run: its inbox is held as a parked seat’s is, with no probe, its status reads No members yet, and the first member to join releases it. Validation warns once per seat or helper on each such fleet (“default-fleet has no members yet: Engineer waits until one joins”) and refuses nothing.
Strategies
Section titled “Strategies”A member takes new work while every limit reading of its sign-in is under its warning level and it is not sitting out. A plan is a member signed in with auth.mode: subscription; its share is the higher of its session and weekly usage, in whole points. Keys, cloud accounts and gateways report no usage, so their share is 0.
A reading heard over half an hour ago counts as none: the member ranks as the lowest known share, takes work once and reports. Each node keeps its sign-ins’ newest readings across a restart. While no member is under its warning level, the members near their limit take new work by the same rule rather than hold their seats; a signed-out member takes none. A member whose max_concurrent slots are all taken is skipped while another has one free.
- Sequential fills the first member with room, in
membersorder, then the next. - Balanced gives new work to the plan with the lowest share, ties to the one that served least recently. A seat job stays on the member that served its last turn while that member is within
threshold_pointsof the lowest, so a follow-up keeps its cache. Keys, cloud accounts and gateways take work only when no plan has room.
Balancing never moves a running turn; a limit or a refused sign-in does. When no member has room the fleet’s seats wait as a parked chain does, with one probe at the earliest reset among the members.
Changing fleets
Section titled “Changing fleets”Fleets are written through /config/llm-fleets/{key} or any whole-document write. Creating a fleet moves no seat. Removing one repoints every seat job and helper on it in the same write (DELETE /config/llm-fleets/{id}), and removing an entry a fleet lists answers the fleet too: the repoint drops it from the members or replaces it.
What a turn records
Section titled “What a turn records”The balancer is asked at the start of each piece of work: a phase, an executor launch, a worker, a helper’s turn. A call that meets a limit is retried on the next pick, the failed member excluded, and the turn continues from its record there.
- Each phase record (
agent_phase_completedand its invocations),executor_launchedand Ask Crewlet’sassistant_turn_completedcarry the decision besideprovider_key:fleet,strategy,share_at_pickandfleet_reason(lowest_share,within_threshold,next_in_order,overfloworlimit_handover).agent_turn_completedcarriesprovider_key. llm_fleet_movedreports work going to a member other than its home,llm_fleet_fulla fleet with no member to take work, andllm_fleet_rooma member with room again (event system).GET /llm/fleetsanswers every fleet’s members as the balancer reads them, the work in flight on each, and what each helper and seat job runs on now or would take next.
Part of Crewlet. Generated from crewlet/crewlet main at 3f5565e.