/rcc:dispatching-parallel-agentsfrom rcc
Fans out work across multiple agents in a single message for parallel execution. Supports Best-of-N, parallel exploration, scout-then-commit, and nested orchestrator patterns.
Ships in rcc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Dispatching parallel agents IS trading compute for confidence or throughput.
A single Agent call is one bet. N Agent calls in one message is N bets — they execute concurrently and you pick or merge. The runtime fans out automatically when multiple Agent tool uses appear in a single response; serializing by mistake (one Agent call per response) wastes the entire benefit.
Core principle: Parallelism is a property of the dispatch (one message, N tool uses), not of the agents themselves.
Follow task initialization protocol.
Tasks: 0. Classify the dispatch pattern
Announce: "Created 5 tasks (0–4). Starting execution..."
Goal: Pick exactly one pattern. Mixing patterns = confused merge step.
| Pattern | When | Inputs | Merge strategy |
|---|---|---|---|
| P-Thread (parallel, divergent) | Independent subtasks, each agent owns a slice | N different prompts | Concatenate — each result stands alone |
| F-Thread (Best-of-N, fusion) | One hard question, want confidence or cherry-pick | N identical prompts | Vote / diff / cherry-pick |
| Scout (throw-away recon) | Unfamiliar territory, want to learn before committing | One scout prompt, discard the code | Read scout's findings → write better main prompt |
| B-Thread (nested orchestrator) | One sub-agent dispatches further sub-agents | Single Agent call to an orchestrator agent | Orchestrator handles its own merge |
Anti-patterns:
git log, one agent suffices. F-Thread costs N× tokens; pay only when judgment varies.Verification: Can name the pattern in one word and justify it in one sentence.
Goal: Pick the agent type per call and the prompts.
Agent selection:
| Need | Use |
|---|---|
| Read-only research | Explore (Haiku, fast, no Write/Edit) |
| Planning | Plan |
| Code review (F-Thread voting) | Project reviewer agents (e.g. rcc:skill-reviewer) |
| General multi-step | general-purpose |
Prompt design for fanout:
Tool set: Pass minimal tools. Fanout amplifies any tool the agent has — five Edits in parallel = five chances to corrupt the same file.
Verification: Each prompt readable cold, no implicit context, tool set scoped.
Goal: Issue all N Agent calls in one assistant turn.
Why this matters: the runtime parallelizes tool uses within a single message. Splitting across turns serializes them and you pay round-trip latency × N.
Correct shape:
[one assistant message]
Agent(prompt=A, ...)
Agent(prompt=B, ...)
Agent(prompt=C, ...)
Wrong shape (serial):
[message 1] Agent(A) → wait → [message 2] Agent(B) → wait → ...
Background flag: for long-running fans (>2 min each), set run_in_background: true so the main turn doesn't block. The runtime notifies on completion.
Verification: All Agent calls visible in a single assistant message.
Goal: Collapse N outputs into one decision or report.
Merge strategies by pattern:
| Pattern | Strategy |
|---|---|
| P-Thread | Concatenate sections. Each agent owned a slice; the slices compose. |
| F-Thread (vote) | Count agreement. ≥ ⌈N/2⌉+1 agree → that answer wins. Disagreement → escalate to user. |
| F-Thread (diff) | Show user the N outputs side-by-side. User picks or cherry-picks. |
| F-Thread (cherry-pick) | Take the strongest part of each — only when outputs are structured (e.g. YAML lists you can union). |
| Scout | Discard scout's code. Extract the lessons (files touched, blockers found) into the next prompt. |
Reviewer F-Thread special case:
When voting reviewer agents (e.g. 3× rcc:skill-reviewer), if YAML outputs disagree on pass, the safe default is fail — any reviewer flagging an issue counts.
Verification: A single artifact (decision, file, report) emerges from N inputs.
Goal: Make the parallel dispatch legible.
Report shape:
Verification: User can audit which agent said what without re-running.
These thoughts mean you're rationalizing. STOP and reconsider:
All of these mean: You're about to lose the value of parallel dispatch. Follow the process.
| Excuse | Reality |
|---|---|
| "Serial is simpler" | Serial costs N× wall-clock. The whole point is the wall-clock saving. |
| "More agents = better answer" | F-Thread costs N× tokens. Use it for judgment-heavy questions, not lookups. |
| "Scout is throwaway, skip it" | The scout's blockers are intel. Skipping = re-discovering them yourself. |
| "Fanout writes are fine" | Two agents writing the same file race. Fanout writes only on disjoint slices. |
| "Pick the best output silently" | The user can't audit a hidden decision. Surface dissent. |
investigating skill — scout pattern detail (lives outside this plugin)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
parallel-agents, fan-out, multi-agent, best-of-n, scout-pattern
npx claudepluginhub wayne930242/reflexive-claude-code --plugin rcc23 skills in this plugin
/advising-architectureValidates component-type choices for agent system work, classifying knowledge as CLAUDE.md vs rule vs skill vs agent vs hook and checking for conflicts. Use when starting any skill/agent/rule workflow to validate approach. Use when classifying knowledge type. Use when checking for component conflicts./analyzing-agent-systemsScans project structure and agent system components, runs 11-category weakness analysis, and produces actionable restructuring recommendations. Use when analyzing an existing agent system for weaknesses. Use when user says "analyze agent system", "check agent setup", "audit agent config". Use when called by migrating-agent-systems or refactoring-skills./applying-agent-systemsBuilds agent system components from a confirmed component plan. Use when executing a component plan to build agent system elements. Use when called by planning-agent-systems after plan is confirmed. Use when user says "apply agent plan", "build agent system"./brainstorming-workflowsExplores user workflows through targeted questions about pipeline modes, pain points, routine tasks, and human intervention points to inform agent system design. Use when exploring workflows after analysis. Use when user says "explore workflows", "brainstorm workflows", "what should I automate". Use when called by analyzing-agent-systems./creating-pluginsScaffolds a new Claude Code plugin package with manifest, skills, agents, and marketplace entry. Use when creating a new Claude Code plugin package. Use when user says "create plugin", "new plugin", "scaffold plugin", "plugin template"./fetching-claude-docsFetches the current official Claude Code component spec from code.claude.com, returning verbatim excerpts so designs never drift from stale memory. Use PROACTIVELY before writing or modifying any Claude Code component (subagent, skill, hook, rule, slash command, plugin manifest, settings.json, MCP config). Use when user asks 'what is the official spec for X', 'is this the right way to do Y', 'check Anthropic docs for Z'. MUST BE USED at Task 0 of writing-subagents, writing-skills, writing-hooks, writing-rules, writing-claude-md before any design decision.Other plugins' skills for the same job