herdr-dispatch
A Claude Code plugin that turns one Claude session into an orchestrator for a fleet of coding
agents.
You describe the work. Claude splits it into lanes, gives each lane its own git worktree and its
own agent — codex, grok, opencode or antigravity (agy) — running inside a herdr
workspace, then supervises every lane on a timer until its work is verified, its branch is pushed
and its pull request is open.
The division of labour is deliberate:
- Claude plans. It reads the repo, writes each lane's implementation plan and acceptance
criteria, and asks you to confirm them before anything is created.
- The agent executes. Each lane gets that plan verbatim as a brief and works through it.
- Claude publishes. Lanes are briefed never to push, merge, or open a PR. That one operation
which reaches a shared remote stays behind Claude's own verification of the acceptance criteria.
- Claude answers. A lane that is stuck asks for help instead of guessing (see
Asking for help), and Claude answers from the plan it wrote.
Requirements
| What | Why |
|---|
| herdr | Creates the worktrees, workspaces and panes each lane lives in. brew install herdr — developed against 0.9.0 |
| A herdr pane | The skills refuse to run outside one — there would be nothing to dispatch into |
| A git repository | Every lane is a linked worktree branched off a base ref. Run from the main checkout, not a linked worktree |
| At least one agent CLI | codex, grok, opencode, or agy (Antigravity CLI) — whichever dispatcher you invoke, resolvable from the pane's own login shell |
python3, jq | Used to probe each lane's on-disk state |
gh, authenticated | Optional. Without it lanes are pushed but the gh pr create command is printed for you to run |
origin remote | Optional. Without it lanes stay local and are reported as such |
Nothing is installed for you. If an agent CLI or gh is missing, the run says so up front and
degrades — it never installs, authenticates, or creates a missing branch on your behalf.
Installation
As a plugin — the recommended path in Claude Code:
/plugin marketplace add bestony/herdr-dispatch
/plugin install herdr-dispatch@herdr-dispatch
If the install summary says Run /reload-plugins to activate., run that.
Via skills.sh
The same four skills are also published to the skills.sh registry, for installs
that are not plugin-managed — or for handing them to another agent that reads SKILL.md:
npx skills add bestony/herdr-dispatch --list # what is in the repo
npx skills add bestony/herdr-dispatch # install into ./.claude/skills/
npx skills add bestony/herdr-dispatch -g # install into ~/.claude/skills/
npx skills add bestony/herdr-dispatch -s dispatch-codex -a claude-code -y
Each installed skill directory is self-contained, so /dispatch-<agent> works from .claude/skills/
with no plugin installed. Prefer the plugin when you are on Claude Code: npx skills update replaces
the skill directories wholesale, and only the plugin carries a version and the marketplace entry.
Local development install
git clone https://github.com/bestony/herdr-dispatch.git
claude --plugin-dir ./herdr-dispatch
Run /reload-plugins to pick up edits without restarting.
Quick start
Start Claude Code inside a herdr pane, in the main checkout of the repo you want the work done
in, then:
/dispatch-codex Add an owner filter to the repos list; fix the websocket reconnect timeout
What happens next:
- Claude fetches
origin, picks a base ref, and checks whether it will be able to push and open PRs
at the end — so you learn about a missing gh login now, not after ten lanes have run.
- It groups your tasks into lanes, and for each lane writes an implementation plan grounded in the
actual code plus acceptance criteria built from the repo's real check commands.
- It shows you the lane table plus each lane's plan and acceptance criteria, and asks once whether
to dispatch. Nothing is created before you answer.
- On confirmation: one worktree + workspace + agent per lane, each primed with its own brief.
- A supervision loop runs every 5 minutes. It probes each lane from disk, nudges the stopped ones,
compacts the hot ones, resolves parked dialogs, and re-runs the acceptance criteria itself on any
lane claiming to be done.
- Each lane that passes gets pushed on its own branch and opened as a pull request.
The plan, the questions and the final report are in Chinese; the briefs, commits and PR bodies are
in English.
The four dispatchers
Same procedure, same flags, different agent underneath. Pick by which CLI you have and how
autonomous you want the lanes to be.