Fleet
Autonomous PM layer for Claude Code — a cross-repo work ledger plus a headless dispatcher that advances Ship features between human decision points.
You write specs and review PRs. Fleet runs everything in between — plan, plan-verify, build, verify, PR creation — unattended, one bounded stage at a time. Questions and failures park asynchronously in the ledger and surface via notifications and a batch standup instead of blocking the loop.
How it works: Fleet keeps a durable JSON ledger (~/.fleet/backlog.json) of every non-done Ship feature across your opted-in repos. Each fleet:dispatch iteration picks the highest-priority ready item and shells out to a fresh headless claude -p "/ship:{stage} {slug}" session in that repo to advance it exactly one Ship stage. Disk state (.planning/ frontmatter) is the trusted success signal — a plan-verify that passes flows straight into build on the next dispatch, a verify that passes produces a pull request, and a stage that fails twice blocks the item and moves on.
Requirements
- Claude Code with the Ship plugin installed (Fleet drives Ship's stages; it does not reimplement them)
- Node.js 18+ (no npm dependencies — Node built-ins only)
gh CLI authenticated against your repos (PR creation)
- Windows for toast notifications (via BurntToast); the webhook notifier works anywhere
Install
/plugin marketplace add dilhanz/fleet
/plugin install fleet@dilhanz-fleet
Skills are auto-namespaced as fleet:skill-name.
Quickstart
- Configure repos. Run any Fleet skill once (e.g.
fleet:sync) to create the workspace, then edit ~/.fleet/config.json and add the absolute paths of the repos Fleet may manage to repos. Fleet never touches a repo not listed there.
- Populate the backlog. Run
fleet:sync — one ledger item per non-done Ship feature per configured repo.
- Add new work. Run
fleet:intake {repo} {spec} with a written spec (inline text or a file path). A complete spec becomes a brainstormed CONTEXT.md in the target repo plus a ready ledger item; a fuzzy one parks as needs_human: brainstorm for the next standup.
- Dispatch. Run
fleet:dispatch to advance one item one stage, or /loop fleet:dispatch to keep iterating while the session stays open.
- Review PRs. When a feature's verification passes, Fleet pushes the feature branch and opens a PR with the VERIFY.md summary. Fleet never merges — PR review is the human gate.
- Standup. Run
fleet:standup for a batch report: blocked items with diagnostics, specs awaiting brainstorm, in-progress stages, and PRs created since the last standup.
Commands
fleet:sync Refresh backlog.json from the configured repo list
fleet:intake Turn a written spec into a target-repo CONTEXT.md + ready ledger item
fleet:dispatch Advance the highest-priority ready item exactly one Ship stage
fleet:run Loop dispatch unattended with safety stops until the backlog is dry
fleet:standup Batch human review: blocked / awaiting brainstorm / in progress / new PRs
fleet:status Read-only snapshot of the ledger: counts by status, per-item state, recent activity
fleet:dashboard Read-only local web dashboard over the ledger, auto-refreshing at 127.0.0.1
fleet:run safety-stop flags:
--max-stages {n} — hard cap on stages this run (default 10); blocked stages count too
--until {HH:MM} — wall-clock cutoff (24h local); never interrupts a stage in flight
--max-tokens {n} — token budget for this run; overrides the maxTokensPerRun config key. Like --until, it refuses to start a new stage once cumulative tokens reach the cap and never interrupts a stage already running — so the cap can be overshot by at most one stage. The run stops with stopReason: "tokens".
The end-of-run JSON summary carries a cumulative tokens field alongside the existing counters, and each per-stage log line appends the running total. The budget unit is tokens, not dollars: on a subscription the real constraint is quota, and a per-model price table would drift on every pricing or model change.
Configuration
Fleet's workspace lives at ~/.fleet/ (override with the FLEET_HOME environment variable) and holds config.json, backlog.json, and logs/. It is personal state — never part of this repo.
All keys in ~/.fleet/config.json: