orch8
Tiered fan-out for parallel autonomous builds. One goal → N independent units → N Herdr panes, each in its own git worktree, on a driver model matched to that unit's difficulty, each running your ship command end-to-end to its own PR.
[!IMPORTANT]
orch8 has a hard dependency on Herdr. orch8 does not spawn agents itself — it orchestrates through Herdr's CLI (herdr pane split, herdr agent start, herdr agent prompt). Without Herdr installed and running, orch8 is inert.
It also needs a worker pipeline — a decompose command and a ship command your worker agents understand. The defaults target compound-engineering on Claude Code (/ce-plan and /lfg), and both are configurable.
Architecture
See docs/architecture.html for the full diagram — orchestrator pane, decompose step, worktree fan-out, and the two per-pane levers. Open it in a browser; it is a standalone page with no build step.
Install
Claude Code (default target)
/plugin marketplace add kevinold/orch8
/plugin install orch8
Any other host: clone the repo and point your agent at skills/orch8/. The skill is a single SKILL.md plus one bash script — nothing host-specific outside the frontmatter.
Quickstart
From a pane inside Herdr, in the repo you want to build in:
-
Decompose. Run your decompose command (default /ce-plan) on the goal. Take the units that are genuinely independent — each shippable without the others — and write one tab-separated line per unit:
auth-device-flow hard Add the OAuth device authorisation flow
rate-limiter grind Add a token-bucket limiter to the public API
footer-copy trivial Fix the footer copy and the trailing comma
Columns are <id>, <tier>, <prompt>. Blank lines and # comments are skipped.
-
Preview. Dry-run is the default — nothing is created, nothing is launched:
bash skills/orch8/orch8.sh units.tsv
orch8: repo=/work/app base=main kind=claude worktrees=/work/orch8-worktrees mode=DRY-RUN
orch8: decompose=/ce-plan ship=/lfg
[auth-device-flow] tier=hard model=opus -> /work/orch8-worktrees/auth-device-flow (orch8/auth-device-flow)
git worktree add -b orch8/auth-device-flow /work/orch8-worktrees/auth-device-flow main
cp .../config.tiers/hard.local.yaml .../.compound-engineering/config.local.yaml
herdr pane split --current --direction right --cwd ... --no-focus # -> pane_id
herdr agent start auth-device-flow --kind claude --pane <pane_id> -- --model opus
herdr agent prompt auth-device-flow "/lfg Add the OAuth device authorisation flow"
-
Fire. Only --go mutates anything:
bash skills/orch8/orch8.sh units.tsv --go
-
Track. herdr agent list · herdr agent wait <name> --until done · herdr agent read <name> --source recent-unwrapped. Each pane opens its own PR.
The two per-pane levers
These are different things and conflating them is the most common orch8 mistake.
| Driver model | Planning elevation |
|---|
| What it is | Which model drives the worker pane | How hard the pipeline plans inside that pane |
| How it's set | A launch flag: herdr agent start … -- --model X | A file: config.tiers/<tier>.local.yaml copied to <worktree>/.compound-engineering/config.local.yaml |
| Where it comes from | The tiers map in orch8.config | skills/orch8/config.tiers/ |
| Why per-worktree works | — | The pipeline resolves config from git rev-parse --show-toplevel, which inside a worktree is that worktree's root, so each pane reads its own tier |
Tier → driver model defaults: hard → opus, grind → sonnet, trivial → haiku. A tier with no entry in the map is used verbatim as the model name, so the tier names are a convention, not a closed set.
Safety
Dry-run is the default and --go is the only way to mutate anything. In dry-run orch8 creates no worktrees, splits no panes, and starts no agents — it prints exactly what it would do.
--go additionally requires herdr, jq, and $HERDR_PANE_ID — it refuses to run outside a Herdr pane.
- Panes are split with
--no-focus, so your pane keeps focus.
- Pane IDs are parsed out of Herdr's JSON (
.result.pane.pane_id), never guessed; a unit whose split returns no ID is skipped rather than launched blind.
- orch8 never closes a workspace, tab, pane, or worktree it did not create.
--go starts autonomous agents that open pull requests. Read the dry-run first.
Configuration
skills/orch8/orch8.config — every key optional, defaults shown: