dispatch

dispatch is a command for Claude Code from catlog22/Claude-Code-Workflow. It costs 0 tokens per session (3,872 once invoked), scanned A, original, MIT.

A command for turning a large task into a chain of smaller tasks with dependencies and structured descriptions. It can arrange work sequentially, independently, or across parallel branches.

In plain words
What is it for?
Use it to create an execution plan for refactoring or other multi-step technical work.
Why use it?
It makes the order and relationships between pieces of work explicit. This helps agents or developers know what can start immediately and what must wait.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to create an execution plan for refactoring or other multi-step technical work.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/catlog22/claude-code-workflow/dispatch
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.

Clone the repo
git clone --depth 1 https://github.com/catlog22/Claude-Code-Workflow

Made for: Claude Code.

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/catlog22/claude-code-workflow/dispatch/github.svg)](https://agentmods.dev/commands/catlog22/claude-code-workflow/dispatch)
Your own site
<a href="https://agentmods.dev/commands/catlog22/claude-code-workflow/dispatch"><img src="https://agentmods.dev/badge/commands/catlog22/claude-code-workflow/dispatch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dispatch

Your own site · 80×15
<a href="https://agentmods.dev/commands/catlog22/claude-code-workflow/dispatch"><img src="https://agentmods.dev/badge/commands/catlog22/claude-code-workflow/dispatch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,872 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.03872
Opus 5.5 $0.00000 $0.01549
Sonnet 5.5 $0.00000 $0.00774
Haiku 4.5 $0.00000 $0.00387

Measured 1mo ago against content hash d9fd7bd4705e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo ago.

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.

.claude/skills/team-arch-opt/roles/coordinator/commands/dispatch.md · 372 lines

How it starts

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

Command: Dispatch

Create the architecture optimization task chain with correct dependencies and structured task descriptions. Supports single, fan-out, independent, and auto parallel modes.

Phase 2: Context Loading

Input Source Required
User requirement From coordinator Phase 1 Yes
Session folder From coordinator Phase 2 Yes
Pipeline definition From SKILL.md Pipeline Definitions Yes
Parallel mode From session.json parallel_mode Yes
Max branches From session.json max_branches Yes
Independent targets From session.json independent_targets (independent mode only) Conditional
  1. Load user requirement and refactoring scope from session.json
  2. Load pipeline stage definitions from SKILL.md Task Metadata Registry
  3. Read parallel_mode and max_branches from session.json
  4. For independent mode: read independent_targets array from session.json

Phase 3: Task Chain Creation (Mode-Branched)

Task Description Template

Every task description uses structured format for clarity:

TaskCreate({
  subject: "<TASK-ID>",
  description: "PURPOSE: <what this task achieves> | Success: <measurable completion criteria>
TASK:
  - <step 1: specific action>
  - <step 2: specific action>
  - <step 3: specific action>
CONTEXT:
  - Session: <session-folder>
  - Scope: <refactoring-scope>
  - Branch: <branch-id or 'none'>
  - Upstream artifacts: <artifact-1>, <artifact-2>
  - Shared memory: <session>/wisdom/.msg/meta.json
EXPECTED: <deliverable path> + <quality criteria>
CONSTRAINTS: <scope limits, focus areas>
---
InnerLoop: <true|false>
BranchId: <B01|A|none>"
})
TaskUpdate({ taskId: "<TASK-ID>", addBlockedBy: [<dependency-list>], owner: "<role>" })

Mode Router

Mode Action
single Create 5 tasks (ANALYZE → DESIGN → REFACTOR → VALIDATE + REVIEW) -- unchanged from linear pipeline
auto Create ANALYZE-001 + DESIGN-001 only. Defer branch creation to CP-2.5 after design completes
fan-out Create ANALYZE-001 + DESIGN-001 only. Defer branch creation to CP-2.5 after design completes
independent Create M complete pipelines immediately (one per target)

Read the full file on GitHub · 372 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. 1mo ago First seen · 372 lines · 0 tokens per session scan A d9fd7bd4705e

Subscribe to this mod's changes

dispatch is a command published in the GitHub repository catlog22/Claude-Code-Workflow (2,125 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,872 tokens. 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-09-03.