herdr-spawn: coordinate several coding agents with lanes and a board
herdr-spawn launches coding agents as quiet lanes, each with its own worktree, and a board tells me which one finished. hierarchical-implementation decides who writes the code.
AI-assisted translation, approved by Mateo.

In this post I bring you herdr-spawn and hierarchical-implementation, two tools of mine (MIT) for working with several coding agents at once. Herdr, where they run, is by herdrdev; this post starts where its layout ends.

What is herdr-spawn?
herdr-spawn launches coding agents (claude, codex, opencode or omp) as lanes: each one is a Herdr tab with its own worktree and goal. A coordinator launches them and reads them; a session becomes one by typing /coordinator or by launching its first lane.
A unit lane executes one unit its coordinator reviews. A driver owns a whole result and integrates it.
It launches like this: spawn.sh --tab <worktree> --lane unit --goal '…' claude name brief.md.

What I am building now, in no release yet: an orchestrator mode. The main session hands it one deliverable and stays free to talk to me; it spawns its own lanes, verifies, and escalates to me once, only what needs a person. Three layers at most.

Why I built it
With three agents in three panes, the one who reads them all is me: I become the message bus. I wanted the opposite, and I wrote it in the design (my translation): "only when there is news, and when the coordinator has something to say".
So each lane gets its own worktree and stays quiet until it reports, and I talk to the coordinator, not to each pane. Lanes share a board: lane.sh post publishes a typed fact (artifact-ready, dep-changed, resource-lock or resource-free) and the other lane gets it when idle, without waking the coordinator.

What it looks like
To try it I built a synthetic project, textkit, with three worktrees and one lane in each. demo-words had an open decision (does "well-known" count as one word or two?) and escalated. The board flagged it, I answered and it finished with six tests. The other two finished without escalating.

The third lane, a driver, handed the whole unit to one worker; the gate that logged it comes further down.

How it works
A lane works until its criterion holds, saves a report and declares it: done finishes, escalate asks for a decision and milestone, rarely, flags an important step. I answer with lane.sh reply and watch lane.sh board, which flags goals a Claude lane's transcript does not confirm.

| Piece | What it is for | Why this one | In exchange for |
|---|---|---|---|
| herdr-spawn | Launches lanes | No panes by hand | Needs Herdr |
lane.sh | Notices and a lane board | Less chat, more signal | Each notice costs a turn |
| worktree | One directory per lane | Keeps changes apart | Disk and branches |
| stop hook | Blocks silent stops | Coordinator hears every lane | Lets go after 3 blocks |
heavy.sh | Queues heavy builds and tests | Protects the machine | A lane may wait |
And hierarchical-implementation?
hierarchical-implementation is the other side: it makes the session decide whether it writes the code or hands it to a worker. Before the first edit or first worker, a gate asks for that decision to be recorded (for example delegate, lane or trivial) and keeps a log.
The README is blunt: it is a speed bump, not a barrier, and a model set on getting around it can still write files in ways the hook does not see.

Numbers
A worker has only file and shell tools. In my setup it starts at 29,727 tokens against 89,285 for a general-purpose agent, per the README.
Even so, for changes of 40 lines or fewer, delegating used a median of 3 to 4 times the tokens of doing it directly (sample of 11). An old cap that pushed code and its test into delegation partly explains it. For a small edit, editing directly is better.

Pros and cons
What we gain
- A board instead of reading every pane.
- Each lane works in its own worktree, apart from the others.
- The gate keeps a log of what it sees.
What it costs
- Each lane is one more session, with its own tokens.
doneis the lane's own word: I re-ran the tests myself.- In my run, two lanes waited about 30 minutes for a
heavy.shturn, taken by unrelated jobs, while the board saidworking. - The gate does not see
cp,mv,patchor scripts.
When it is not worth it
With a single task or a small change, opening one agent and editing by hand is cheaper.
How to install it
For Claude Code, herdr-spawn:
claude plugin marketplace add mateo-di/herdr-spawn
claude plugin install herdr-spawn@herdr-spawn
And hierarchical-implementation:
claude plugin marketplace add mateo-di/hierarchical-implementation
claude plugin install hierarchical-implementation@hierarchical-implementation
Done! For hierarchical-implementation, we then merge its README's examples/CLAUDE.md into our instructions, and restart open sessions. For Codex, OpenCode and oh-my-pi, the herdr-spawn README explains installing from a clone, and a Codex coordinator starts with codex --no-daemon. I hope you find it useful! Cheers :)
Links and credits
Credits: Herdr (herdr.dev) by herdrdev.
- herdr-spawn 3.6.0 README and its lane protocol
- hierarchical-implementation 1.0.2 README
- Earlier on mateo.build: the native Herdr app News, the architecture Post and the Herdr Glass Post.
Thanks for reading. The learning continues in the next article.


