dispatching-subagents

dispatching-subagents is a skill for Claude Code, Codex from oaustegard/claude-skills. It costs 165 tokens per session (3,210 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 3,210 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.03210
Opus 5.5 $0.00066 $0.01284
Sonnet 5.5 $0.00033 $0.00642
Haiku 4.5 $0.00016 $0.00321

Measured 2d ago against content hash b87aba7ee0c4, 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 2d ago.

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 · 201 lines

How it starts

The opening of the file, as written. The whole thing — 201 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 · 201 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. 2d ago Changed b87aba7ee0c4
  2. 3d ago Changed · +2 lines 1bb8d5a42b4b
  3. 4d ago Changed · +1 lines dbe4c0bb162f
  4. 5d 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 (153 stars, last pushed yesterday), licensed MIT. It adds 165 tokens to every session and 3,210 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

Other skills, from other repositories

superdesign

Design or redesign frontend UI, presentations, and graphics on the Superdesign canvas with a choice of leading AI models. Use whenever the user wants to design a page, feature, flow, slide deck, or brand-new product; improve or reproduce existing UI; compare design results across top models; explore visual variants…

superdesigndev/superdesign-skill · 115 tokens

figma-to-code

Generate production-ready React/Next.js code from Figma designs. Instructs proper Figma MCP tool usage, component reuse strategies, and variant mapping. CRITICAL: ALWAYS use this skill when user provides a Figma link or mentions implementing/redesigning from Figma design. Never attempt manual implementation without…

scoobynko/claude-code-design-skills · 0 tokens

smb-sales-boost

Find, preview and export growing local businesses (SMB leads) from the SMB Sales Boost database through its REST API - search by keyword, location and buying signals, preview for free, export CSV/JSON/XLSX, re-download past exports, enrich lists of website URLs, manage saved searches, keyword lists, email schedules…

Tomsonx232/smb-sales-boost-skill · 200 tokens

Linear

Managing Linear issues, projects, and teams. Use when working with Linear tasks, creating issues, updating status, querying projects, or managing team workflows.

wrsmith108/linear-claude-skill · 32 tokens

balzac

Balzac is an AI content platform CLI. Create workspaces, manage SEO keywords, generate article suggestions, write articles, publish content across integrations, and monitor Google Search Console performance. Supports workspaces, keywords, suggestions, briefings, articles, competitors, links, integrations, search…

hirebalzac/cli · 68 tokens

balzac

AI content platform CLI. Create workspaces, manage SEO keywords, generate article suggestions, write articles, and publish to WordPress, Webflow, Wix, GoHighLevel, or webhooks.

hirebalzac/cli · 42 tokens