This repo is mirrored from GitLab. Issues, merge requests, and contributions should go there.
Claude Worktree Manager with cmux.dev integration.
Manages git worktree lifecycles for parallel Claude Code sessions. Each agent gets its own worktree — no conflicts, one command each. When cmux.dev is available, each worktree gets its own workspace with sidebar status and notifications.
curl -fsSL https://gitlab.com/nighthawk-oss/fleet/-/raw/main/install.sh | shThis installs fleet to ~/.local/bin/fleet and adds eval "$(fleet init-shell)" to your shell RC file. Make sure ~/.local/bin is in your PATH.
cd your-repo
fleet new auth-feature -p "Add OAuth2 login"Without cmux.dev, this cd's into the worktree and launches Claude inline. With cmux.dev, each branch gets its own workspace tab — launch several in parallel and switch between them:
Each workspace has sidebar status showing the branch name and current state:
List active worktrees and clean up when done:
fleet new <branch> [-p <prompt>] [--team] — New worktree + workspace, launch Claude
fleet start <branch> [-p <prompt>] — Resume Claude in existing workspace
fleet cd [branch] — cd into worktree (no args = repo root)
fleet ls [--status] — List worktrees (+ sidebar status)
fleet merge [branch] [--squash] — Merge worktree branch into primary checkout
fleet rm [branch | --all] [-f] — Remove worktree + workspace + branch
fleet init [--replace] — Generate .fleet/setup hook using Claude
fleet config [set <key> <value> [--global]] — View/set layout config
fleet focus <branch> — Switch to a branch's cmux.dev workspace
fleet team <branch> — Spawn agent team in split panes
fleet status [branch] — Show sidebar state for a workspace
fleet update / fleet version
With cmux.dev, --team spawns explorer, architect, and reviewer agents in split panes:
fleet new big-refactor --teamGenerate a project-specific setup hook that runs after worktree creation:
fleet initThis creates .fleet/setup — a bash script that symlinks secrets, installs deps, and runs codegen. Commit it to your repo.
Spin up multiple features at once — each gets its own worktree and Claude session:
fleet new auth-feature -p "Add OAuth2 login with Google provider"
fleet new fix-navbar -p "Fix responsive navbar overflow on mobile"
fleet new api-refactor -p "Refactor REST endpoints to use versioned routes"List what's running, then switch between them:
fleet ls
fleet focus auth-featureWhen a feature is ready, merge it back:
fleet merge auth-feature # fast-forward/merge into main checkout
fleet merge fix-navbar --squash # squash all commits into one
fleet rm auth-feature # clean up worktree + branchPick up where you left off — Claude resumes with --continue:
fleet start auth-feature
fleet start auth-feature -p "Now add the logout endpoint"fleet new my-feature -p "Build the thing" # create worktree, launch Claude
fleet ls # check progress
fleet cd my-feature # jump into the worktree
fleet merge my-feature # merge into main
fleet rm my-feature # clean upLaunch a full agent team — explorer, architect, and reviewer — in split panes:
fleet new big-refactor --team
# or add agents to an existing workspace:
fleet team big-refactorGenerate a setup hook so new worktrees auto-configure themselves:
fleet init # Claude analyzes your repo and generates .fleet/setup
git add .fleet/setup && git commit -m "add fleet setup hook"After this, every fleet new will automatically symlink secrets, install deps, and run codegen.
fleet config set layout nested # .worktrees/<branch> (default)
fleet config set layout outer-nested # ../<repo>.worktrees/<branch>
fleet config set layout sibling # ../<repo>-<branch>brew install bats-core # or: apk add bats
bats test/





