Run a fleet of Claude Code agents in parallel, from one terminal. Each agent gets its
own git worktree — cut, branched, dependency-linked and booted in one keystroke — and you
get one screen that shows what every one of them is doing.
A ghost fleet is a fleet of autonomous, unmanned vessels under one command — agents
working with nobody in the seat, and one control plane steering them.
Why another one of these
Orchestrating agents is easy to demo and hard to trust. The parts that took real
debugging — and that most wrappers get wrong:
| problem |
what ghostfleet does |
| "is it working?" — the transcript's mtime says idle mid-generation, and busy when a background write lands |
reads the live pane, the same signal you read |
| a worker needs you, you handle it, the card stays red forever |
a need-you older than the session's own activity is treated as spent |
every project has a session called master, so their statuses collide |
status is scoped by the fleet's socket, not by name |
| a dispatched prompt silently lands in the input box without submitting |
dispatch waits for the paste, submits, then verifies a turn actually started |
| one account: 5 agents drain the budget 5× faster and all stall together |
a non-Claude governor meters usage and parks workers at the ceiling, resuming on reset (it can't be the lead — the lead stalls too) |
| one laptop: 5 agents running tests can fill the process table and wedge the machine |
the same governor watches the kernel's own memory-pressure level and the process table, and parks workers before the OOM killer does |
| you already run agents by hand in a dozen panes |
fleet-adopt finds those conversations and rebuilds them as one fleet |
A worktree you can actually work in
git worktree add gives you a directory. An agent needs more than that before it can do
anything, and the gap is where the fiddly parts live — so fleet-spawn closes it:
|
why it matters |
node_modules symlinked from the main checkout |
the worker can run lint, typecheck and tests on its first turn instead of waiting out an install |
| a dev-stack slot allocated |
two workers don't both try to bind port 3000 and one of them silently lose |
| the task recorded in a manifest |
fleet-worktrees shows what each tree is for, which is how a lead rebuilds its map after a restart instead of guessing |
| reuse before create |
it refuses to cut a new tree while a free one is sitting there, and lists them — so the disk doesn't fill with abandoned checkouts |
| a session started in it, on the agent you picked |
a worktree with nobody in it isn't a worker |
The branch is cut from your local ref, not the remote tip, so a worker never misses
work you committed but haven't pushed. And fleet-spawn refuses to run from inside a
worktree: a session already in one is a leaf, and spawning there would put a second tree
beside the one you're standing in rather than starting a worker.
Recycling an existing tree onto fresh work is one command — fleet-spawn <name> --reuse <worktree> --branch <new> --from <base> cleans it and checks out the new branch — which is
the usual case once a fleet has been running for a while. What gets recycled is the
folder, never the session: a worker that finished a task has that task all through its
context, so it is retired with fleet-stop --reclaim and the next task starts a new
conversation. fleet-send refuses to hand a finished, shipped worker a new brief, and says
to spawn instead.
Documentation
The README is the pitch, the install and the shape of the thing. Everything you look up
while using it lives in docs/, one file per question, because three reference sections
had grown to 78% of this page and a README is not where you go to check a keystroke.
|
|
| docs/SHORTCUTS.md |
Every key, and what answers it. Start at §0 — the handful that covers almost everything — then the exhaustive sections: inside a session, the Projects screen, the grid, the stack, the fleet-* commands, and the behaviors that are not guessable from the UI |
| docs/ORCHESTRATION.md |
A lead session driving workers. Dispatching briefs to siblings, watching them, unblocking them, reusing worktrees before making more, and metering cost with the governor |
| docs/OPERATIONS.md |
The special cases. Adopting Claude sessions you started by hand, the phone client, notifications, work-vs-personal profiles, staying awake, where a worktree goes, the two ways to register a project, which fleet a worker lands on, and updating Claude Code under a live fleet |
| docs/mobile.md · web/README.md |
The phone client — the design argument, and the client itself |
| docs/MEMORY.md |
The fleet's memory, fleet-know. What every project is, where it stands and why, recorded as sessions, spawns, merges and ledger items happen — one page per project, across every profile and paired machine, so a lead answers from it instead of reading files. The three layers, the include/private/exclude switch, and the queries |
| docs/TELEGRAM.md |
A Telegram chat connected to a lead. fleet-telegram: setting up the bot, keeping the token in your keychain, what a photo or a voice note arrives as, and the tool allowlist a Telegram turn runs under, and why |
| docs/jarvis.md |
Jarvis, one session above every fleet — experimental, off by default; fleet-experimental enable jarvis turns it on. ghostfleet jarvis, the digest it reads instead of polling, the confirm-list the tools enforce, conversation mode on the phone (transcribed on the Mac), and its fresh start once the conversation grows long |
| docs/automations.md |
Automations — experimental, off by default; fleet-experimental enable automations turns it on. A trigger (a schedule, or a session changing state) and steps the fleet runs on its own, built on the phone by taps or in a sentence; start and stop are approved with the passkey when saved and again on "run now", and a missed schedule is never run late |
| docs/stack-view.md |
Why the stack is nested attaches and not join-pane, and what was measured to find out |
| docs/multi-agent-sessions.md |
Running codex, opencode, agy and cursor beside claude — the measured capability matrix (hooks, MCP, skill, resume) and what picking a non-default agent costs |
| docs/attachments.md |
Sending a photo from the phone: what was measured per agent, why the bytes are converted on the Mac rather than the phone, and the two recommendations the build overturned |
| docs/agent-council.md |
Would a second agent checking the first one's work reduce iteration? Measured against 3,494 real turns and this repo's own history: misread intent is the smallest correction category, three quarters of the rest are found by a human looking at a screen, and a browser-based verifier would have passed the bug it was built for |
| docs/ROADMAP.md · docs/IDEAS.md |
What is next, and what is only an idea |
| CHANGELOG.md |
What changed between releases, and whether it is a reason to upgrade |
| CLAUDE.md |
For working on ghostfleet: how to deploy a change, what the tests cover, and the failure modes that have bitten more than once |
Prerequisites