by petekp
Turn one Claude Code session into a coordinator that runs, watches and cleans up a fleet of agent sessions in Herdr.
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/petekp/coordinatorGuides for using ai agents skills like coordinator.
See how coordinator compares with popular alternatives.
Coordinator turns one coding-agent session into a manager for a body of work. You give it a domain, such as a repo or a product area, and send it requests as they come up. It writes a brief for each task and starts a separate agent session to do it, in its own Git worktree and its own tab. It watches those sessions, relays their questions to you, checks their work, and cleans up when a task lands. You talk to one session, and up to three others work in parallel.
It is a pair of skills for Claude Code, with Python scripts that drive Herdr. Herdr runs each agent in a terminal that stays alive and shows them all in one app.
/coordinator <domain or project>. It owns one domain and keeps its state in a
Markdown backlog file: what the domain covers, what you approved for
good, what is open, and what is done. The backlog is what survives a
restart.REPORT.md when it stops.fleet_watch.py, runs in the background and wakes the
coordinator when a delegate finishes, asks something or gets stuck. It
also wakes it when a pull request is merged, fails its checks or gets a
review, and when someone opens an issue in one of the domain's repos
that neither the backlog nor the coordinator's inbox names. Its line for
a finished delegate counts the questions, filed issues and findings in
the delegate's report.The coordinator decides small, reversible things on its own and says what it chose. It asks you when the answer changes what gets built, costs time or money, reaches other people, or is a matter of taste. Questions arrive in batches of at most five, each with its options and a recommendation.
| Tool | Why |
|---|---|
herdr-core (hc) |
runs every agent in a terminal that outlives the app |
Herdr app (herdr-app) |
shows each delegate in its own tab |
| Claude Code | runs the coordinator and its delegates |
| Python 3.9 or newer | runs the scripts, which use only the standard library |
| git | worktrees and branches |
| gh, signed in | pull request status, for domains with a GitHub repo |
Optional:
herdr/, described under
Herdr sidebar.Tested on macOS with herdr-core 0.1.21, the Herdr app 0.1.15 and Claude Code 2.1.325.
Install herdr-core with:
curl -fsSL https://releases.herdr.dev/core/install.sh | sh
and download the Herdr app from herdr.dev.
To have an agent do it, paste this into Claude Code:
Set up the coordinator workflow by following https://raw.githubusercontent.com/petekp/coordinator/main/SETUP.md
It installs Herdr, these skills and the Inbox plugin, and offers Vignette and the Herdr sidebar, asking before each step. To install by hand:
git clone https://github.com/petekp/coordinator.git ~/src/coordinator
~/src/coordinator/install.sh
install.sh links both skills into ~/.claude/skills, where Claude Code
finds them, and ~/.agents/skills. It then checks
for the tools above. Keep the clone where it is: the links point into it.
To update, run git pull in the clone. At its first wake-up each day, the
fleet watcher checks whether the clone is behind its upstream, and the
coordinator tells you when it is. It never pulls by itself. To uninstall, run
~/src/coordinator/install.sh --remove, then delete the clone.

The herdr/ folder holds an optional Herdr layout made for this workflow.
Its sidebar lists pinned coordinators first, in the order you drag them,
with each coordinator's delegates under it. The tab bar hides while a
coordinator's tab shows. Each agent gets a colored tile, and the inbox's
counts follow its name. The layout works without the coordinator or the
inbox, but the counts need the inbox.
It is listed in Herdr's layout gallery at herdr.dev/layouts/petekp/coordinator--herdr. The agent that follows SETUP.md offers the layout. To add it yourself, paste this into an agent running inside the Herdr app:
Add the Herdr layout at https://github.com/petekp/coordinator/tree/main/herdr
The agent reads herdr/RECIPE.md and the layout's files, then tells you what the mods run. It asks before it changes your keys or your window. It also offers the inbox plugin, whose Herdr panel is the one on the right of the picture.
Once a day the sidebar's top row checks GitHub for a newer version of the layout, and shows a dot when one exists. Clicking the dot gives you a line to paste to your agent, which updates the files you haven't edited and asks about the rest. The agent asks at install whether to keep the check.
Every setting has a default, so you can skip this at first. To change one,
copy config.example.json to ~/.config/coordinator/config.json, delete
the keys you don't need, and edit the rest. Its values are examples, not the
defaults. COORDINATOR_CONFIG can name another file.
| Key | What it sets | Default |
|---|---|---|
backlog_dir |
the folder for backlogs; briefs for domains without a repo go in its briefs/ |
~/.config/coordinator/backlogs |
state_dir |
ended delegates, the cap check's log and the watcher's state | ~/.local/state/coordinator |
keep_running |
domains whose delegates are never ended for being quiet | none |
delegate_claude_args |
extra Claude Code arguments for every delegate, such as ["--autocompact", "300000"] |
none |
delegate_env |
environment variables set for every delegate | {} |
inbox_store |
the inbox's saved state, needed only when more than one exists | found on its own |
backlog_limit_kb |
most kilobytes of a backlog outside its Done section, which the coordinator reads at each start; 40 KB is about 10,000 tokens | 40 |
done_limit_kb |
most kilobytes of a backlog's Done section | 20 |
trim_by_delegate_over_kb |
above this many kilobytes outside Done, about 37,000 tokens at 150, the coordinator has a delegate trim the backlog instead of reading it whole | 150 |
user_names |
regular expressions for your name, so the backlog check also finds your words quoted after it, as in Sam said "..." |
none |
open_ask_patterns |
regular expressions, matched ignoring case, for other ways your backlogs mark an open ask | none |
check_for_updates |
whether the fleet watcher checks, at its first wake-up each day, that the clone is up to date with its upstream | true |
Put backlog_dir inside a Git repo if you want the coordinator to commit
each backlog change.
/coordinator <domain>, for example /coordinator web-app.Ask "where are we" at any time for a status table of delegates, pull requests and open questions.
To start a coordinator for another domain in its own tab:
~/.claude/skills/coordinator/scripts/coordinator_restart.py start <domain> --cwd <repo> --space <space id>
The space id comes from herdr-app ls.
Each script's --help covers it in full.
| Script | What it does |
|---|---|
delegate_start.py |
starts a delegate, or resumes one whose terminal is gone |
delegate_cap.py |
allows or refuses a new delegate, and sends a message to one when allowed |
fleet_watch.py |
waits until something in the fleet needs the coordinator |
fleet_status.py |
prints the fleet's state, grouped by who acts next; with --resume, also the backlog sections to read again and whether the watcher runs |
backlog_check.py |
prints a backlog's size, and lists what a trim dropped that it must put back |
delegate_end.py |
ends a quiet delegate, and resumes it later |
coordinator_restart.py |
starts, restarts and stops coordinators |
watcher_check.py |
run by a scheduler, tells each coordinator with work and no fleet watcher to arm one; SETUP.md has examples |
sweep.py (fleet-sweep) |
reports leftovers and removes the safe ones |
.env and
.scratch/, into <main checkout>/.scratch/parked/. Nothing here
deletes parked folders, so clear them out now and then.coordinator is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by petekp. Turn one Claude Code session into a coordinator that runs, watches and cleans up a fleet of agent sessions in Herdr. It has 50 GitHub stars.
coordinator's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/petekp/coordinator" and add it to your Claude Code skills directory (see the Installation section above).
coordinator is primarily written in Python. It is open-source under petekp on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh coordinator against similar tools.
No comments yet. Be the first to share your thoughts!