dispatch

dispatch is a command for coding agents from genai-jerry/claude-software-factory. It costs 17 tokens per session (2,374 once invoked), scanned A, original, MIT.

A command that marks eligible software-factory tasks as ready after an epic receives design approval. An epic is a larger piece of work made up of smaller tasks, and dependencies are tasks that must finish first.

In plain words
What is it for?
Use it to read an epic’s task list, find unblocked tasks, apply the factory:ready label, and report unreachable sibling repositories.
Why use it?
It prevents blocked tasks from being dispatched and checks dependencies across related repositories.

Command

Part of the factory plugin — 6 skills, 19 commands, 1 hook shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/genai-jerry/claude-software-factory/dispatch
Clone the repo
git clone --depth 1 https://github.com/genai-jerry/claude-software-factory

Or install factory, the plugin that ships this one along with the rest of its 6 skills, 19 commands, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dispatch

README.md
[![agentmods](https://agentmods.dev/badge/commands/genai-jerry/claude-software-factory/dispatch.svg)](https://agentmods.dev/commands/genai-jerry/claude-software-factory/dispatch)
Your own site
<a href="https://agentmods.dev/commands/genai-jerry/claude-software-factory/dispatch"><img src="https://agentmods.dev/badge/commands/genai-jerry/claude-software-factory/dispatch.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,374 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00017 $0.02374
Opus 5 $0.00009 $0.01187
Sonnet 5 $0.00003 $0.00475
Haiku 4.5 $0.00002 $0.00237

Measured today against content hash a5fccd75c1b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dispatch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/dispatch.md · 156 lines

How it starts

The opening of the file, as written. The whole thing — 156 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the Dispatcher of the Software Factory (see FACTORY.md). This is a mechanical coordination role — no design or code.

Input: an epic issue number labelled factory:design-approved: $ARGUMENTS

Step 0 — is this repo running system tests and bug reports?

Read .github/factory-testing.json. A missing or unparseable file, or "system_tests" anything but true, means system tests are off: ignore every test(<epic>) sub-issue below, use the completeness rule as it was before FACTORY.md §4b, and behave exactly as you always have. Otherwise note its "mode""gate" (the default when the file is present) or "advisory" — which decides only step 4.

"bug_reports" (FACTORY.md §4c) follows "system_tests" unless it is set: true means this epic may also have bug(<epic>) reports — defects a tester found in the built code, each with an ordinary task filed to fix it — and step 2b applies. false means ignore them. mode decides their part in step 4 exactly as it does the cases'.

Steps

  1. Read tasks.md in the epic's change folder (openspec/changes/<issue>-<slug>/). It lives wherever it actually is (FACTORY.md §6a): check the epic's branch factory/epic-<issue> first when .github/factory-branches.json sets epics: true and that branch exists, then the repo's integration branch, then the default branch — and use the first that carries the folder. The approved documents live on one of those and nowhere else until promotion. Then list the epic's task sub-issues (task(<epic>): ...) in EVERY affected repo — use the gh CLI for sibling repos (cross-repo access via FACTORY_CROSS_REPO_TOKEN). If a sibling repo is unreachable, say so explicitly in the summary instead of skipping silently.
  2. For each task sub-issue (in whichever repo) whose dependencies are all closed or merged, and which carries no factory:* state label yet: apply factory:ready and comment. Dependencies are the body's Blocked by markers — Blocked by #N resolves in the sub-issue's own repo, Blocked by <owner>/<repo>#N in the named sibling repo; check cross-repo ones with the gh CLI, and treat an unreachable one as OPEN (never ready), saying so in the summary. The ready comment: "Unblocked — an implementer can start. Run the 'Factory pipeline' workflow with role=implementer and this issue number, or run /factory:implementer in a Claude session." If the epic carries factory:expedite (FACTORY.md §4a), say instead: "Unblocked — this epic is expedited, so its implementer starts on its own. Nothing to approve." Do not start it yourself: the engine does that. 2a. System test cases (only with system tests on, §4b). The epic's test(<epic>): ST-<n> ... sub-issues are a second kind of child, and they are released differently from tasks:
    • A case's dependencies are the same Blocked by markers, but "done" for one of them is not "closed or merged" — it is assembled: factory:on-epic when the epic has an epic branch, factory:in-staging when it has none, or closed in either case (a task closes when its PR reached the default branch, so it is assembled by definition). A case with no Blocked by line at all is released as soon as any task of the epic is assembled.
    • A case is released only when the plan that defines it is merged on the epic's home branch. On an epic that adopted system tests late (§4b) the plan may still be sitting in an open test(<epic>): system test plan PR: leave those cases pending and name that PR in your summary. Nobody should be asked to run a case from a plan no one has approved.
    • Releasing one means: apply factory:manual-test, assign the testers from .github/factory-approvers.json (falling back to the implementation list, then to nobody), and comment with the case identifier, a link to the plan on the home branch, the environment the plan's Environment section names, and the two controls — "comment exactly Test Passed when it passes, exactly Test Failed when it does not, with what you saw."
    • A case at factory:test-failed whose fix task has reached its assembled state goes back to factory:manual-test with a re-test comment naming the fix that landed. Its old failure stays in the thread.
    • Never start an implementer, reviewer or QA run on a test( sub-issue, and never apply a code state to one.

Read the full file on GitHub · 156 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +115 lines a5fccd75c1b2
  2. 4d ago First seen · 41 lines · 17 tokens per session scan A fff0de51aab8

Subscribe to this mod's changes

dispatch is a command published in the GitHub repository genai-jerry/claude-software-factory (2 stars, last pushed yesterday), licensed MIT. It adds 17 tokens to every session and 2,374 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.