A general-purpose, event-driven reconcile loop for agents, packaged as a Claude Code plugin.
Move a ticket to In Progress and get back to your day. Dispatch puts an agent on it and keeps that agent working until the pull request is ready for your review. It chases the review comments and failing checks so you don't have to, and it interrupts you only for the calls that are yours to make. You decide what ships. You stop babysitting agents.
The Purpose section of docs/CONTEXT.md says what stays yours, the tradeoffs dispatch makes and what you can do with it.
| Multiplexers, where workers run | Ticket systems |
|---|---|
| herdr terminal UI | Linear |
| Herdr app | Local tickets, kept in dispatch's own database |
| Rex |
Dispatch is event-driven. Every change it sees, a ticket moving, a check failing, an agent going quiet, runs your rules, and your rules orchestrate the workflow. Your workflow is not a dispatch feature request.
The workflow is TypeScript you own. Change when agents start, when they get nudged, when you get pulled in, all without touching Go. Lint your rules and test them against the live world before they run, and ask dispatch why any ticket moved the way it did.
Ticket systems, multiplexers, GitHub and notifications are plugins, and you switch each one on in config. Each sits behind a small interface of its own, so supporting a new ticket system or multiplexer means writing one adapter, not rewriting dispatch.
Rules can call any HTTP service you name in config, with dispatch holding the token. Your workflow can reach Sentry, your deploy system or anything else your team runs.
A single config.toml holds your repos, your plugins and the knobs your rules read, and dispatch refuses a typo instead of guessing.
When a worker asks you a question, dispatch escalates a ticket to you, a PR is ready for review, or a worker goes idle, dispatch messages the Claude sessions following it. You hear about it where you already work.
- docs/config.md lists every setting in
config.toml, with its default and what it does. - docs/rules.md explains how to write, lint and test the rules, and how to switch a shipped rule off for a class of records.
- docs/startup-screen.md shows what
dispatch runprints while it starts, and when that output is plain text. - docs/worker-states.md lists every state a worker can be in, the emoji its label shows, and what dispatch does about it.
- docs/CONTEXT.md states what dispatch is for and defines the terms the code, tests and docs use.
- docs/adr/ holds the architecture decisions, one numbered file each.
.claude-plugin/plugin.jsonis the plugin manifest. Skills live inskills/, one folder each, and thedescriptionin eachSKILL.mdsays what it does.bin/holds scripts on the session PATH, andhooks/holds the plugin's hooks.cmd/andinternal/hold thedispatchGo CLI.rules/holds the shipped TypeScript rules.evals/holds the skill eval suites, one folder per skill.
Put scripts/shims first on your PATH, and a plain claude loads the plugin from this checkout and accepts messages from other sessions, so a git pull reaches your next session with no reinstall. For one session without the shim, run:
claude --plugin-dir ~/Development/dispatch --settings '{"crossSessionInbound":"accept"}'make help lists the build and test targets.
| Target | Runs |
|---|---|
make test |
The fast suite, with no race detector and no slow tests. |
make test-slow |
The whole suite plus the tests tagged tests_slow. |
make test-race |
The fast suite under the race detector, for an occasional check. |
make test-drift |
The drift checks against the installed tools. CI does not run it. |
make test-claude |
Worker scenarios against a real, logged-in Claude on the Herdr app host, including whether a worker that needs you runs dispatch ask. Spends Haiku turns, and CI does not run it. |
make test-report |
The speed report of tests over budget, tagged slow tests included. |
make adr-check |
The ADR check: fails on an ADR in docs/adr/ that cites a ticket, a repo file or the repo's history, has a missing Status or one outside the allowed forms, shares its number with another ADR, or links to an ADR that doesn't exist. A path with a * inside it (api/v1/*.proto) is a pattern, not a repo file, and neither is a path inside a fenced block opened with the word quoted (```quoted), for another repo's output. CI runs it through .github/workflows/adr-check.yml, which other repos call too. |
make changes-existing-tests |
Labels a pull request changes-existing-tests while it modifies or deletes a Go test that existed at the merge base, and removes the label once it doesn't, using tiger changed-tests. Needs CHANGES_EXISTING_TESTS_REPO, CHANGES_EXISTING_TESTS_PR and GITHUB_TOKEN, and the label created once in the repo. CI runs it through .github/workflows/changes-existing-tests.yml, which other repos call too. |
make ci |
What CI runs: vet, the whole suite with the slow tests, and shellcheck. |