add herdr dispatch skill: hand a task to a new Claude tab #23
Loading…
Reference in a new issue
No description provided.
Delete branch "herdr-dispatch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Add a
dispatchskill to theherdr-cliplugin: mid-conversation, hand a taskoff to a fresh Claude running in its own tab and git worktree, then return
immediately.
Flow
Constraints / Definition of done). The dispatched agent cannot ask questions,
so ambiguity must be resolved before dispatch.
git worktree add .worktrees/<branch> -b <branch> <base>.herdr tab create --label "<title>" --no-focus+herdr pane run <pane> "claude".Tab titles are capped at 12 characters and named noun-first
(
dispatch skill, notadd-dispatch-skill-t).Two bugs found by actually running the procedure
The first draft of this skill was wrong in two ways. Both were caught by
executing it against a live herdr server, not by reading the CLI help.
herdr agent startsplits the caller's tab — it does not create one, evenwith no
--split/--tab. It returned atab_idequal to the calling tab andhalved the pane. Fixed by using
tab create+pane run "claude", at the costof the agent name (target by pane id instead).
agent_status: idledoes not mean Claude accepts input. herdr flips thepane to
idlewhile the startup banner is still painting; a brief sent then issilently dropped — no error, empty input box, pane looks healthy. Fixed by
send →
pane readthe text back → only then Enter.agent sendis idempotentwhile the box is empty; Enter is not.
Both corrections also landed in the parent
herdr-clireference skill, whichcarried the same wrong
agent startadvice.Separately, the first draft asserted a footgun — that newlines in
agent sendsubmit early. Tested against a live pane: false, they land as a multiline
input. Footgun removed rather than shipped.
Verification
Ran the corrected procedure end-to-end against a live herdr server: new tab
labelled
demo hi,claudelaunched in it, brief landed on the firstread-back attempt, agent replied, tab closed. Not a unit test — the actual
commands the skill tells you to run.
🤖 Generated with Claude Code