Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

herd

A tiny multi-agent coordinator for herdr. One Claude Code agent (the head) receives your tasks, delegates each one to a worker agent — Claude, Codex, Gemini, or any other herdr-supported kind — in its own herdr tab, tracks their lifecycle, and collects their reports.

Three files, no daemon:

  • herd-up — opens a head tab running Claude Code with the herd coordinator skill loaded as its system prompt.
  • herd-spawn — spawns a worker in a new tab, hands it a task, and sets the report protocol. The head calls this; you can too.
  • skills/herd/SKILL.md — the coordinator playbook: how to spawn, watch, unblock, and follow up with workers. Installed as a regular Claude Code skill, so any Claude Code session can also act as head via /herd.

How it works

you ──task──▶ head (claude, tab "head")
                │  herd-spawn <name> <cwd> "<task>"
                ├──▶ worker tab "fix-auth"   (claude)
                ├──▶ worker tab "review-auth" (codex)
                │      … each writes its report to /tmp/herd/<name>.md
                └── watches:  herdr agent wait <name> --until done|idle|blocked

Workers write a final report to /tmp/herd/<name>.md; the head treats the report file — not agent lifecycle state — as the real completion signal, summarizes results back to you, and shepherds blocked workers (routine prompts it answers itself via send-keys; anything risky it escalates to you).

Requirements

  • herdr ≥ 0.7.5 (uses its agent automation CLI)
  • Claude Code (the head agent; also the default worker kind)
  • jq
  • Optional: any other agent CLIs you want as workers (codex, gemini, cursor, droid, amp, grok, …)

Install

git clone https://github.com/vladzima/herd
cd herd
./install.sh

Scripts go to ~/.local/bin (override with HERD_BIN_DIR), the skill to ~/.claude/skills/herd.

Use

Inside herdr, from the project you want to work on:

herd-up            # or: herd-up /path/to/project

Then either type tasks into the head tab, or send them from anywhere:

herdr agent prompt head "Fix the flaky auth test, then have a codex worker review the diff"

Spawn workers directly if you want to bypass the head:

herd-spawn fix-auth ~/proj "Fix the flaky auth test in tests/auth_test.py"
herd-spawn -k codex -a '-m gpt-5.6-terra --sandbox workspace-write' review-auth ~/proj "Review the auth diff"

-k picks the agent kind (default claude), -a replaces the default agent args (for claude that default is --permission-mode acceptEdits — re-include a permission flag if you still want one). Reports land in /tmp/herd/<name>.md.

You can also make any existing Claude Code session the head: just invoke the /herd skill.

Uninstall

rm ~/.local/bin/herd-up ~/.local/bin/herd-spawn
rm -r ~/.claude/skills/herd

License

MIT

About

Multi-agent coordinator for herdr: a head Claude Code agent that delegates tasks to worker agents (claude, codex, gemini, ...) in their own tabs

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages