dispatching-subagents

dispatching-subagents is a skill for Claude Code, Codex from oaustegard/claude-skills. It costs 165 tokens per session (4,207 once invoked), scanned A, original, MIT.

A guide for launching multiple coding subagents from Claude Code. It compares the Agent tool, Workflow tool, and separate command-line processes by concurrency, context, tools, resource use, and approval needs.

In plain words
What is it for?
Use it when running tasks in parallel, assigning work per file, or deciding whether to spawn agents or write a custom orchestration script.
Why use it?
It helps choose a way to split work without exceeding launch limits, using too much memory, or giving child agents the wrong context or permissions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions subagents; positional $N argument.

Good fit Use it when running tasks in parallel, assigning work per file, or deciding whether to spawn agents or write a custom orchestration script.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oaustegard/claude-skills/dispatching-subagents
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.

Any agent
npx skills add oaustegard/claude-skills --skill dispatching-subagents
Clone the repo
git clone --depth 1 https://github.com/oaustegard/claude-skills

Made for: Claude Code, Codex.

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 dispatching-subagents

README.md
[![agentmods](https://agentmods.dev/badge/skills/oaustegard/claude-skills/dispatching-subagents/github.svg)](https://agentmods.dev/skills/oaustegard/claude-skills/dispatching-subagents)
Your own site
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/dispatching-subagents"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/dispatching-subagents/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 dispatching-subagents

Your own site · 80×15
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/dispatching-subagents"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/dispatching-subagents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 165 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,207 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00165 $0.04207
Opus 5.5 $0.00066 $0.01683
Sonnet 5.5 $0.00033 $0.00841
Haiku 4.5 $0.00016 $0.00421

Measured yesterday against content hash 7f63209f51cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dispatching-subagents scanned grade A with 1 finding 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 yesterday.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/headless_fanout.py, scripts/test_headless_fanout.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

child can hold Bash with `Bash(curl:*)` refused;
dispatching-subagents/SKILL.md · 255 lines

How it starts

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

Dispatching subagents

Claude Code has three ways to start a subagent. They differ most in what the launching costs the parent.

Agent tool Workflow tool claude -p children (scripts/headless_fanout.py)
parent cost one parent turn per launch and one per completion one tool call per run one Bash call per run
concurrency 20, and a 21st launch errors (it does not queue) min(16, vCPUs − 2): 2 on a 4-vCPU CCotw container RAM-bound, about 210 MB per child: 40 ran clean on 4 vCPU / 15 GB
child context session prefix (~32–55K tokens), plus parent transcript chunks if a context hook is installed session prefix what you pass: about 1.2K tokens with --system-prompt and no tools, 39K with the default prompt
tools agent type's tools, the session's MCP connectors, hooks as Agent built-in tools named in --tools, write paths allowlisted; no MCP, hooks or skills
effort session's level, or the effort: in a named agent type's frontmatter agent(prompt, {effort}) --effort (measured: low gave 0 thinking tokens, high gave 112–197)
needs user opt-in no yes: an explicit request, ultracode, or a skill that calls it no
cost visibility none per child none per child total_cost_usd and tokens per child, in a ledger
output check yours in-script file plus JSON Schema, or CLI-validated --json-schema

The headless runner is the default for volume. On 2026-10-11 a codex build dispatched 314 Haiku children through the Agent tool. The children cost $11.61. The 1,458 Opus parent turns the dispatching took (each re-reading a context of about 400K tokens) cost roughly $160–170, about 14× the work. Five of the same tasks through headless_fanout.py cost $0.10, $0.02 each against $0.033 per Agent-tool child, and one parent call.

Choosing

Answer in order. The first yes picks the mechanism.

  1. Does the child need what only the session has? That means MCP connectors (Muninn, Gmail, GitHub MCP), a context hook's transcript chunks, a worktree, or a custom agent type with guard hooks such as auditor. If so, use the Agent tool. Keep the count small, or batch many items into each child, because every launch costs a parent turn.
  2. Do you need to read each result before deciding the next launch? That is iterative work where task N+1 depends on N's answer. Use the Agent tool.
  3. Did the user opt in to a workflow, and does the procedure have phases a script should enforce (find → verify → fix, with retries and gates)? Use Workflow, and load workflow-authoring first. Accept 2-way concurrency on a 4-vCPU container, or move the bulk phase to headless children.
  4. Are there ten or more independent tasks whose inputs fit in a prompt or in files, and whose output a script can check? Use headless children. This covers judges, graders, extractors, page writers, verifiers and per-file reviews.
  5. Fewer than ten small independent tasks: use the Agent tool in one message. The parent-turn cost is still small at that size.

Read the full file on GitHub · 255 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday Changed · +28 lines 7f63209f51cd
  2. 21d ago Changed · +26 lines d53183594330
  3. 1mo ago Changed b87aba7ee0c4
  4. 1mo ago Changed · +2 lines 1bb8d5a42b4b
  5. 1mo ago Changed · +1 lines dbe4c0bb162f
  6. 1mo ago First seen · 198 lines · 165 tokens per session scan A c7a49ce5e58e

Subscribe to this mod's changes

dispatching-subagents is a skill published in the GitHub repository oaustegard/claude-skills (423 stars, last pushed today), licensed MIT. It adds 165 tokens to every session and 4,207 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-12.

Related

dispatching-subagents compared with skills from other repositories

dispatching-subagents next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dispatching-subagentsoaustegard/claude-skillsSkill423todayMITA165Claude Code, Codex
superdesignsuperdesigndev/superdesign-skillSkill1.1k3mo agoMITA115Claude Code, Codex
figma-to-codescoobynko/claude-code-design-skillsSkill401mo agoMITA0Claude Code, Codex
bpmn-xml-generatorstateway-io/bpmn-xml-generatorSkill410d agoApache-2.0A177Claude Code
free-public-rest-apisaisenseapi/aisense-free-public-rest-apisSkill13d agoMITA372Claude Code, Codex
Linearwrsmith108/linear-claude-skillSkill1424mo agoMITA32Claude Code
aisense-free-toolsaisenseapi/aisense-free-public-rest-apisSkill13d agoMITA50Claude Code, Codex