/fleet:lane <task, issue or plan> | --from <ID> [branch] [account]from fleet
Open a fleet lane for a task — a worktree and branch, a written brief, and an implementer agent in its own Herdr pane (on the right remuda account when remuda is installed) — then watch it until it is ready for review. Use when the user asks to open, start or dispatch a lane, or to put an agent on a task in parallel.
Ships in fleet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The task comes from the arguments. If there are none, ask the user what the lane should do. With --from <ID> (for example --from F7), the task is a follow-up of the project's PROJECT.md.
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/fleet" conventions. Use its implementer, critic, planning and account rules.--from <ID>: run python3 "${CLAUDE_PLUGIN_ROOT}/scripts/fleet" follow-up list --json and find the ID. Its text (and detail, when present) is the task. When it has a lane, another lane holds it, and one lane holds a follow-up. Ask the user, with two choices: release it first (follow-up release <ID>, when that lane was dropped), or open the lane without --from (a separate task: no take, no link, and cleanup does not close the follow-up). An unknown ID: tell the user and stop.fix-login-redirect) and a branch (the project's naming, else the label). Base: the remote default branch after git fetch, unless the user names one.python3 "${CLAUDE_PLUGIN_ROOT}/scripts/fleet" accounts. In plain mode there is no account.python3 "${CLAUDE_PLUGIN_ROOT}/scripts/fleet" worktree <branch> --base <base> --name <label>
It returns pane_id (a shell pane in a new workspace), cwd (the worktree) and fleet_dir. It records your orch as the lane's owner in .fleet/lane.json (orch in the output), so the lane shows on your board and digest; in a project with several orchs, pass --orch <name> when you run it from a pane that is no orch.
With --from <ID>, link the follow-up to the lane right away:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/fleet" follow-up take <ID> --lane <branch>
Go on only when it prints ok: true. Any refusal (exit code 2, for example held_by when another lane took it since step 1): stop and ask the user. After the take, the board shows the ID on the lane. When fleet cleanup removes the lane, it closes the follow-up as done if the lane's pull request merged, or if the lane is merged and its branch moved since fleet worktree created it (a rebase counts as a move); otherwise, or when reflog expiry hides the branch's creation, it releases it.
Write <cwd>/.fleet/BRIEF.md from the BRIEF template in ${CLAUDE_PLUGIN_ROOT}/skills/fleet/references/templates.md:
--from <ID>: quote the ID and its text under Sources (- Follow-up F7 in PROJECT.md: "<text>").Follow the conventions' ## Planning and research section. Its defaults:
/fleet:research <question>, then finish the brief with a link to the answer.python3 "${CLAUDE_PLUGIN_ROOT}/scripts/fleet" spawn --pane <pane_id> --role impl --name <label> \
--agent <agent> [--model <model>] [--effort <effort>] [--permission-mode <mode>] [--account <account>] --accept-trust \
--prompt "Read .fleet/BRIEF.md and execute it."
ok: true means it started: status working, or a note that the prompt shows as sent. Otherwise read the pane (herdr pane read <pane_id> --source recent-unwrapped --lines 300) and fix what blocks it.
${CLAUDE_PLUGIN_ROOT}/skills/fleet/references/templates.md to <cwd>/.fleet/PLAN.md. Fill in the title; leave the Risk: line open.python3 "${CLAUDE_PLUGIN_ROOT}/scripts/fleet" spawn --pane <pane_id> --role planner --name <label>-plan \
--agent <agent> [--model <model>] [--effort <effort>] [--account <account>] --accept-trust \
--prompt "Read .fleet/BRIEF.md and write the plan in .fleet/PLAN.md. Change no other file. The Risk line is your reading; the paths under ## Files decide, so list every file. End with the line PLAN READY: 1 and stop."
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/fleet" watch <pane_id> --marker "PLAN READY: 1" --file .fleet/PLAN.md.python3 "${CLAUDE_PLUGIN_ROOT}/scripts/fleet" send <pane_id> --text "<changes>. Revise .fleet/PLAN.md, change no other file, and end it with the line PLAN READY: <n+1>."
Risk: none:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/fleet" approve-plan <cwd> --by orch
Any other risk: first ask the user, with the plan's approach and risks in a few lines. Pass --by user only after the user's yes. approve-plan refuses, and changes nothing, when the round is not ready or already approved, the worktree has changes outside .fleet/ or an existing path outside it marked assume-unchanged or skip-worktree (flagged: git status cannot see a change there; an absent skip-worktree path of a sparse checkout does not count), or the lane has commits of its own (a planner changes and commits nothing but PLAN.md, which git does not track), or the risk needs the user. A path under ## Files that matches a high-risk pattern makes the plan high risk whatever its Risk: line says: --by orch then refuses and names the matches (high_risk), so ask the user. --by orch also refuses a plan whose ## Files lists no path: send it back to the planner, or ask the user. --by user is the only override, and it overrides only the risk and the missing files. When the project's patterns in PROJECT.md cannot be read, both refuse: fix the line that the reason names. Read its reason (with paths, flagged or commits), fix the cause, and run it again. When no branch, remote or tag holds the lane's base, or the lane had commits before the plan, pass --base <ref>.python3 "${CLAUDE_PLUGIN_ROOT}/scripts/fleet" retire <pane_id>
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/fleet" spawn --pane <pane_id> --role impl --name <label> \
--agent <agent> [--model <model>] [--effort <effort>] [--permission-mode <mode>] [--account <account>] --accept-trust \
--prompt "Read .fleet/BRIEF.md and .fleet/PLAN.md and execute them."
The implementer's STATUS.md Plan section points to PLAN.md and lists only deviations from it. spawn --role impl (and a spawn without --role) refuses while the newest PLAN READY: <n> round has no PLAN APPROVED: <n> line. Exit code 2 with changed: "nothing" is that refusal, not a failed start: nothing was created, so approve the plan (step 5) and run the same command again. Go on with step 5.The board shows planning, plan ready <n> and plan approved <n> for the lane until the implementer runs.
fleet board finds it, and the event log holds the spawn with its agent, account, model and prompt. A lane opened --from <ID> is already linked: follow-up take marked it, and the board shows the ID. Write a decision from step 1 to the project's PROJECT.md (python3 "${CLAUDE_PLUGIN_ROOT}/scripts/fleet" orch show prints its path); add a follow-up with follow-up add "<text>" --source "<where>". An orchestrator that still keeps the old .fleet/FLEET.md adds the lane there.run_in_background: true:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/fleet" watch <pane_id> --marker "READY FOR REVIEW: round 1"
When the watcher ends:
/fleet:review for this lane.herdr pane send-keys <pane_id> Escape and re-instruct with send. Then watch again.Blocked) and the pane. Answer with python3 "${CLAUDE_PLUGIN_ROOT}/scripts/fleet" send <pane_id> --text "...". Then watch again.event field of the watch result.
agent-exited: the shell pane stays. Read the pane. Start the agent again in it with spawn --pane <pane_id> --role impl ... and a prompt that points at BRIEF.md and STATUS.md.pane-gone: the pane is closed, but the worktree stays, and so does its owner in .fleet/lane.json. Open a new pane in it and start the agent there, with the settings of step 4:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/fleet" spawn --new-workspace --cwd <cwd> --role impl --name <label> \
--agent <agent> [--model <model>] [--effort <effort>] [--permission-mode <mode>] [--account <account>] --accept-trust \
--prompt "Read .fleet/BRIEF.md and .fleet/STATUS.md and continue this lane."
Its pane_id is the lane's new pane: watch that one.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rubycatco/herdr-fleet --plugin fleetOther plugins' skills for the same job
9 skills in this plugin
/accountsShow remuda accounts, cached usage and the account of each agent pane; choose an account for new work by the user's rules; or move this session or a lane to another account. In plain mode (no remuda) it explains that accounts are not switched. Use when the user asks about accounts, usage, limits, or switching accounts./cleanupClean up finished fleet lanes — list every lane with a verdict (ready, waiting or keep), ask which ones to remove, then exit their agents, archive their .fleet/ records, remove their worktrees, delete their merged local branches and run the project's own cleanup. Use when the user asks to clean up lanes, worktrees, panes or workspaces, or after pull requests merge./contextKeep agent context small in a fleet — decide between continuing, /compact with a focus, /clear with a re-brief from .fleet/ files, or a handoff to a new pane, for this session or a lane, and then do it. Use when context passes about 60 %, after a long run, when a lane gets slow or forgets rules, or when the user asks about compact, clear or context.