dispatch
Skill1.3k starsChanged 2 months agoMITView on GitHub
Turn this session into the parallel-work dispatcher — split Leo's task list into spawnable worker-session briefs (one slot each), collect their PR pings, and merge approved bot-clean PRs. Use when Leo provides a batch of tasks to run in parallel or asks to orchestrate/dispatch work.
- Commits and pushes
26 other projects use a version of this.
Adopted by
Most recently taken up by
- vu1n/pillboxtheir own version, first seen Oct 4, 2026
- mb-89/quackitecttheir own version, first seen Oct 3, 2026
- SantiagoVqz/claude-skillstheir own version, first seen Sep 23, 2026
- ntorga/agent-starter-kittheir own version, first seen Sep 12, 2026
- renzrollon/interlocktheir own version, first seen Sep 10, 2026
- fuzzyfox/skillstheir own version, first seen Sep 10, 2026
Used with
Projects with it also use orient, spec and 5 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
moredipSkillorient
Orient yourself to this codebase by reading the README and documentation
Also in 3 projects that use this
SentrySkillspec
Produce a verified spec — problem, desired outcome, and acceptance criteria — before building. Use when given a GitHub/Linear issue link, when starting from a fuzzy in-conversation idea, or asked to "figure out what to do" / "scope this" / "what should I build" — whenever the *what* isn't yet pinned down. Grills the ambiguities, checks the premise against the code, and produces acceptance criteria you sign off on — then hands to design-first.
Also in 3 projects that use this
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 3 projects that use this
AWSSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 4 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 4 projects that use this
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
Also in 3 projects that use this
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- bassimeledath/dispatch★ 411same name
- epilande/ccmux★ 213same name
- ntorga/agent-starter-kit★ 146same name
- fagemx/edda★ 36same name
- phj128/autoworker★ 19same name
- clonable-eden/cekernel★ 17same name
- renzrollon/interlock★ 17same name
- BigY0shi/super-skills★ 4same name
- fuzzyfox/skills★ 4same name
- glitchwerks/claude-wayfinder★ 4same name
16 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- obsidian-integration-testSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 24 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Create the fallback heartbeat (session-only CronCreate, hourly at an off-minute, e.g.
- Distinctive: line 33
Write a SELF-CONTAINED brief (workers start cold) and dispatch it.
- Very specific: line 50
PR + bot-review loop: run bun run check / format / lint / test, open a PR against main with gh whose body follows …
- Distinctive: line 94
If post-approval pushes materially changed behavior Leo tested, flag it to him instead of merging silently.
“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dispatch — parallel-work orchestrator
This session becomes the dispatcher: it writes task briefs, spawns them as task chips, tracks worker pings, and merges PRs. It does NOT implement tasks itself. Workers do the engineering in the fixed agent slots (see AGENTS.md "Parallel agent slots" — read that section first if you haven't).
Setup (once per dispatcher session)
- Get this session's id:
get_sessionwith session_idself. Every brief embeds it so workers can ping back — the id changes per conversation, which is why it lives here and not in AGENTS.md. - Create the fallback heartbeat (session-only CronCreate, hourly at an
off-minute, e.g.
23 * * * *). Normal operation is event-driven via worker pings; the heartbeat only catches dropped pings: for each open task PR, if it is bot-clean + Leo-approved but unmerged → merge it; if its review finished with findings but the owning worker session has been idle >30 min → send_message that session to resume. Otherwise report in one line. Tell Leo the heartbeat is session-only (dies with this chat, 7-day expiry).
Spawning a task
For each task Leo gives:
- Spend a few tool calls anchoring it: grep/read enough to name the relevant files and one or two starting pointers. Don't solve it.
- Write a SELF-CONTAINED brief (workers start cold) and dispatch it.
Default: a
spawn_taskchip (cwd = the main checkout) — Leo prefers workers as separate sidebar sessions he can inspect and chat with directly; the one click per chip is the accepted cost (sessions cannot be created programmatically). Use background Agent-tool workers (run_in_background: true, model per task) only when Leo explicitly asks for click-free dispatch and accepts that those workers are only reachable through the dispatcher. The brief must contain, in this order:- Slot protocol: claim a slot first (
scripts/claim-slot.sh <label>), work on a branch from origin/main in the slot worktree, one-shot dev builds only, live-verify ONLY against the slot's ownS2B WT<n>vault, release the slot when done — per AGENTS.md "Parallel agent slots". - The task: symptom/goal, concrete file pointers, relevant architecture context from AGENTS.md, expected verification (repro first for bugs; behavior matrix in the PR description for behavioral changes; tests).
- PR + bot-review loop: run
bun run check/format/lint/test, open a PR against main with gh whose body follows.github/PULL_REQUEST_TEMPLATE.mdincluding a filled-in italic_AI assistance: ..._line (per AGENTS.md "Disclose AI involvement"), then drive the review bot (Greptile) to a clean state per AGENTS.md step 6 — fix or answer every finding, push, wait for the re-review of the newest commit. Never merge; merging is the dispatcher's job after Leo's live test. - Ping-back protocol: report to the dispatcher on: PR opened
("PR
<n>opened: …"), bot-clean ("PR<n>bot-clean at<commit>"), or blocked (with reason). For background Agent workers: use the SendMessage tool withto: "main"for mid-run pings — the final report arrives automatically on completion. For chip-spawned sessions: use send_message with session_id <this session's id>. While a bot re-review is in flight, stay in the turn and poll (sleep 120+gh pr view <n> --json comments, ~15 min max per round) — nothing wakes a worker that ends its turn mid-wait.
- Slot protocol: claim a slot first (
Handling incoming pings
- "PR
<n>opened" → check the bot state once; tell Leo the PR exists and WHICH slot vault window (S2B WT<n>) has the build for his live test. His verdict is the one human gate per task. - "PR
<n>bot-clean" → verify independently (never trust the ping alone): Greptile's summary-comment footer must name the PR's newest commit as last reviewed, with no unresolved inline findings (gh pr view <n> --json comments,reviews,statusCheckRollup+gh api repos/s2b-dev/smart-second-brain/pulls/<n>/comments). If Leo has approved that PR in this conversation →gh pr merge <n> --squash, thengit pull --ff-only origin mainin the main checkout, and report. If not yet approved → tell Leo it's ready for his live test. - "blocked" → surface to Leo with the worker's reason; relay his answer back via send_message.
- Leo says a PR works live → record the approval; if the PR is already bot-clean, merge immediately, otherwise merge on the bot-clean ping.
- Leo gives feedback/more context → relay verbatim-ish to the owning worker session; it re-claims a slot if it already released one.
Merge policy (hard rules)
- Squash-merge only (matches repo history).
- Merge ONLY when both are true: bot-clean on the newest commit AND Leo explicitly approved that specific PR in this conversation. Never infer approval, never merge on bot-clean alone.
- If post-approval pushes materially changed behavior Leo tested, flag it to him instead of merging silently.
Notes
- Parallelism caps at the slot count (3). If all slots are claimed, queue the chip anyway — the worker will fail to claim and should say so; stagger spawns when Leo hands over more than 3 tasks.
- Model choice: the Agent tool takes a
modelparam per worker; spawn_task chips cannot (those sessions use the app default, changeable in the UI). The dispatcher itself runs fine on a smaller model. - Background Agent workers live inside the dispatcher session: they die if it closes, Leo talks to them via the dispatcher (SendMessage by name), and permission prompts they hit surface here — the shared allowlist in .claude/settings.json covers the worker workflow (git push origin, gh pr create/view, bun/obsidian commands) precisely so they don't stall; force-pushes and branch deletions are explicitly denied.
- Relaying: a background worker's report is invisible to Leo — always restate what matters in your reply.
- Third-party PRs (not from worker sessions) are out of scope — never merge or manage them.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

