What it is
coordinator, from the GitHub user petekp, is two Claude Code skills and a set of Python scripts that drive Herdr, the terminal workspace that keeps agent sessions alive outside the app. Its idea is a manager-and-delegates setup: you open one Claude Code session with /coordinator <domain>, where the domain is a repo or a product area, and that session never does the tickets itself.
For each task the coordinator writes a brief that defines done, then starts a delegate, a separate agent session with its own Git worktree and its own Herdr tab. Up to three run at once. A background script, fleet_watch.py, wakes the coordinator when a delegate finishes, asks a question, gets stuck, or when a pull request is merged, fails checks or gets a review. Delegates write REPORT.md when they stop; quiet ones are ended after a day and resumed later with the same session. The coordinator's state is a Markdown backlog, so a restart loses nothing, and fleet-sweep removes finished worktrees, branches, tabs and stray processes, asking first where work could be lost.
The part worth reading even if you never install it is the decision rule: the coordinator settles small, reversible choices and reports them, but brings you anything that changes what gets built, costs time or money, affects other people or is a matter of taste, in batches of at most five questions. It was tested on macOS with herdr-core 0.1.21, Herdr app 0.1.15 and Claude Code 2.1.325. On the site we named it herdr-coordinator because the bare word is too generic. We read the README; we did not run it.
Who it's for
- Developers already running several Claude Code sessions by hand and losing track of them
- Herdr users who want one session to manage the others
- Solo builders who want to approve direction while agents do the tickets
Requirements
Requirements
- herdr-core (hc) and the Herdr desktop app
- Claude Code
- Python 3.9 or newer (standard library only)
- git, plus gh signed in for domains with a GitHub repo
- Tested on macOS; optional Codex for small mechanical tasks
Setup
Step 1
bashInstall herdr-core: the README uses curl -fsSL https://releases.herdr.dev/core/install.sh | sh (read the script before piping it to sh)Step 2
bashDownload the Herdr app from herdr.devStep 3
bashgit clone https://github.com/petekp/coordinator.git ~/src/coordinatorStep 4
bash~/src/coordinator/install.shStep 5
bashKeep the clone in place; uninstall with ~/src/coordinator/install.sh --remove
مهارتان لـClaude Code مع سكربتات بايثون تجعل جلسة واحدة من Claude Code مديرة لمستودع أو مجال منتج: تكتب مواصفات المهام، وتشغّل حتى ثلاث جلسات منفّذة كل منها في worktree خاص بـGit وتبويب في Herdr، وتنقل أسئلتها إليك دفعة واحدة، وتراجع عملها وتنظّف بعد إنجاز كل مهمة.
Examples
Start a coordinator
Prompt/coordinator <domain>Expected output: For example /coordinator web-app. The session becomes the manager for that domain and keeps its backlog in a Markdown file.
Let an agent install it
PromptSet up the coordinator workflow by following https://raw.githubusercontent.com/petekp/coordinator/main/SETUP.mdExpected output: Paste into Claude Code instead of installing by hand.
Start another domain in its own tab
sh~/.claude/skills/coordinator/scripts/coordinator_restart.py start <domain> --cwd <repo> --space <space id>What it does: The space ID comes from herdr-app ls.
Pros & cons
Pros
- Pro:Each task gets its own worktree, brief with a definition of done and REPORT.md
- Pro:A watcher wakes the coordinator on finished, stuck or questioning delegates and on PR merges, failures and reviews
- Pro:Clear split of decisions: small reversible ones are made and reported, scope, cost, people and taste go to you
- Pro:A hard cap of three active delegates, and an optional cap on open PRs per repo
Cons
- Con:Requires the Herdr app and herdr-core; the documented herdr-core install pipes a script into sh
- Con:Tested on macOS only; non-POSIX shells such as fish need extra PATH setup
- Con:In the default permission mode each delegate stops at permission and folder-trust prompts until you answer in its tab
- Con:Ignored files like .env are parked in .scratch/parked/ and never cleaned up automatically