11: Everything Everywhere All at Once
40 minutes | You need: modules 1-10 completed, familiarity with skills and subagents
The Shift
Section titled “The Shift”Up to now you’ve been using Claude as a conversation partner — ask a question, get an answer, ask a follow-up. That works for daily tasks. But there’s a fundamentally different way to use Claude: treat natural language as a programming language for agents.
Instead of chatting, you write structured instructions — sequential steps, conditional logic, input/output contracts, parallel fan-outs, convergence points. The agent doesn’t improvise; it executes a program you wrote in English. The skill file becomes your source code. The agents become your runtime.
This is how production-grade multi-agent systems work. We’ll use a real one as our case study: a technical grooming skill that takes a vague issue tracker ticket and produces a complete technical analysis — architecture impact, blockers, estimation, test plan — by orchestrating 12 specialized agents across 8 phases.
graph TD A["Phase 1: Intake<br><i>MCP Linear/Jira/GitHub</i><br><i>↳ CLI fallback ↳ ask user</i>"] --> B["Phase 2: Repo Discovery<br><i>git clone shallow</i>"] B --> C["Phase 3: Architecture Snapshot<br><i>Glob + Grep + Read</i>"] C --> D["Phase 4: Approach Selection<br><i>user picks approach</i>"] D --> E1["Code Analyst<br><i>Grep + Read</i>"] D --> E2["Blocker Detector<br><i>Grep + Read</i>"] D --> E3["Spec Evaluator<br><i>WebFetch</i>"] D --> E4["Test Planner<br><i>Glob + Grep</i>"]
E1 --> F["Phase 6: Estimation<br><i>reads files 01-08</i>"] E2 --> F E3 --> F E4 --> F
F -->|"complex M/L/XL"| G1["Council:<br>Completeness"] F -->|"complex M/L/XL"| G2["Council:<br>Feasibility"] F -->|"simple XS/S"| H["Phase 8: Synthesis<br><i>reads files 01-11</i>"]
G1 --> H G2 --> H H --> I["Present & Post<br><i>MCP tracker</i>"]
style E1 fill:#2d5a3d,stroke:#4a9,color:#fff style E2 fill:#2d5a3d,stroke:#4a9,color:#fff style E3 fill:#2d5a3d,stroke:#4a9,color:#fff style E4 fill:#2d5a3d,stroke:#4a9,color:#fff style G1 fill:#5a3d2d,stroke:#a94,color:#fff style G2 fill:#5a3d2d,stroke:#a94,color:#fffEach box is a separate agent with its own context window. Annotations show which tools each phase uses — MCP for tracker access (with CLI fallback), git for repo cloning, Glob/Grep/Read for code analysis, WebFetch for external references. Green boxes run in parallel (Phase 5). Orange boxes run in parallel (Phase 7 — council review, skipped on fast-path). Everything communicates through numbered files on disk.
The Patterns
Section titled “The Patterns”1. Structured instructions (not vague prompts)
Section titled “1. Structured instructions (not vague prompts)”The difference between a prompt and an instruction:
Prompt (conversational):
Look at this issue and tell me how hard it would be to implement.Structured instruction (programmatic) — this is a simplified version of the grooming skill’s orchestrator. Compare it to the diagram above:
## Phase 1: IntakeRead issue $ISSUE_ID from the tracker.- Try MCP tools matching tracker type (linear, jira, github)- If no MCP available: fall back to CLI (gh issue view, glab issue show)- If CLI fails: ask user to paste the issue contentWrite output to groom/$ISSUE_ID/01-intake.json
## Phase 2: Repo DiscoveryLaunch agent: groom-repo-scout Input: 01-intake.json + groom.yaml Task: clone repos (shallow), detect dependencies, classify scope Output: 02-repos.json
## Phase 3: Architecture SnapshotLaunch agent: groom-arch-snapshot Input: 02-repos.json Task: map directory structure, key modules, exported API surfaces Output: 03-architecture.md
## Phase 4: Approach SelectionLaunch agent: groom-approach-analyst Input: 01-intake.json, 02-repos.json, 03-architecture.md Task: identify candidate approaches, compare trade-offs, recommend Output: 04-approaches.mdAsk user which approach to analyze.
## Phase 5: Deep Analysis (4 agents in parallel)All agents read files 01-04 as shared input.
| Agent | Focus | Output ||--------------------|--------------------------------|---------------------|| Code Analyst | Trace affected code paths | 05-code-impact.md || Blocker Detector | Find hard/soft blockers | 06-blockers.md || Spec Evaluator | Grade clarity, find gaps | 07-spec-evaluation.md || Test Planner | Design test layers, UAT cases | 08-test-plan.md |
Wait for all 4. Verify all output files exist and are non-empty.
## Phase 6: EstimationLaunch agent: groom-estimator Input: all files 01-08 Task: estimate effort (3-point range), classify complexity (XS-XL) Output: 09-estimation.md
## Phase 7: Council Review (parallel, skip if XS/S)If complexity > S: Launch 2 agents in parallel: - Council: Completeness → 10-review-completeness.md - Council: Feasibility → 11-review-feasibility.md
## Phase 8: SynthesisLaunch agent: groom-synthesizer Input: all files 01-11 Task: merge findings, integrate council feedback, format for humans Output: analysis.mdNotice the structure:
- Explicit inputs and outputs — every agent knows exactly what to read and where to write
- Sequential dependencies — Phase 5 waits for Phase 4, Phase 6 waits for Phase 5
- Parallel fan-out — Phase 5 runs 4 agents simultaneously on shared inputs
- Conditional logic — Phase 7 is skipped for simple issues
- Fallback chains — Phase 1 tries MCP → CLI → ask user
- Human gates — user picks the approach before deep analysis begins
- Convergence — synthesizer reads everything and produces one output
2. Thin orchestration
Section titled “2. Thin orchestration”A complex workflow needs a coordinator — but the coordinator should coordinate, not analyze. The orchestrator skill:
- Spawns agents in the right order
- Validates that output files exist (not that they’re correct — that’s the agents’ job)
- Manages sequential dependencies and parallel fan-outs
- Handles user interaction gates (confirmations, choices)
- Tracks state for re-runs
## Phase 5: Deep Analysis (parallel)Launch 4 agents in parallel:- groom-code-analyst → writes 05-code-impact.md- groom-blocker-detector → writes 06-blockers.md- groom-spec-evaluator → writes 07-spec-evaluation.md- groom-test-planner → writes 08-test-plan.md
Wait for all 4 to complete.Verify all 4 output files exist and are non-empty.If any failed: report which agent, offer retry/skip/stop.3. File-based inter-agent communication
Section titled “3. File-based inter-agent communication”Agents can’t talk to each other directly. Instead, they communicate through files — each agent reads its inputs from disk and writes its outputs to disk:
Phase 1: Intake agent → writes 01-intake.jsonPhase 2: Repo scout → reads 01, writes 02-repos.jsonPhase 3: Architecture agent → reads 02, writes 03-architecture.mdPhase 4: Approach analyst → reads 01-03, writes 04-approaches.mdPhase 5: Code analyst → reads 01-04, writes 05-code-impact.mdPhase 5: Blocker detector → reads 01-04, writes 06-blockers.md...Phase 8: Synthesizer → reads 01-11, writes analysis.mdThis gives you:
- Inspectability — you can read any intermediate file to see what an agent produced
- Re-runnability — if one agent’s output is bad, re-run just that agent
- Context efficiency — each agent only reads the files it needs, not the entire conversation history
- Persistence — files survive
/clear,/compact, and session restarts
4. MCP + CLI with fallback
Section titled “4. MCP + CLI with fallback”Real workflows need external data — issue trackers, git repos, documentation sites. But you can’t assume every user has the same MCP servers installed. The fallback pattern:
## Reading the issue1. Detect tracker type from groom.yaml (linear, jira, github, gitlab)2. Try MCP tools matching the tracker type3. If no MCP available: fall back to CLI (gh issue view, glab issue show)4. If CLI fails: ask user to paste the issue content5. Never attempt raw HTTP/curl — trackers require auth tokensEach tier is less integrated but still works. The skill degrades gracefully instead of failing.
5. Diamond research with convergence
Section titled “5. Diamond research with convergence”Module 9 introduced the diamond pattern for research. In production workflows, the pattern gets richer:
┌── Code Analyst ──────┐ │ │Shared ──┼── Blocker Detector ──┼── Synthesizerinputs │ │ ├── Spec Evaluator ────┤ │ │ └── Test Planner ──────┘Four agents read the same shared inputs (files 01-04) in parallel, each analyzing from a different angle. None can see each other’s work. The synthesizer reads all four outputs and produces a unified analysis.
This is diamond research applied to analysis: fan out for breadth, converge for coherence.
6. Scoring and classification
Section titled “6. Scoring and classification”When agents need to make judgments, give them explicit scales — not open-ended opinions:
## Clarity Grade- A: Ready to implement, no questions needed- B: Minor gaps, can start with assumptions- C: Significant gaps, needs 2-3 answers before starting- D: Major gaps, needs substantial clarification- F: Cannot begin, requirements fundamentally incomplete
## Blocker Classification- HARD: Cannot proceed without resolution (external dependency, missing API)- SOFT: Can work around, but adds risk or effort- DEBT: Pre-existing issue exposed by this change- DEPENDENCY: Blocked on another team's work- CONTRACT: Changes a shared API surface (requires coordination)7. Council review (consensus without voting)
Section titled “7. Council review (consensus without voting)”After the analysis phase, you want a second opinion — but not a committee. The council pattern:
## Phase 7: Council Review (parallel)Launch 2 review agents:
Council: Completeness- Read all analysis files (05-09)- Check: Are all repos covered? All code paths traced? Edge cases identified?- Check: Does the test plan cover the blocker scenarios?- Check: Is the estimation consistent with the complexity assessment?- Produce: 10-review-completeness.md with completeness score + gaps found
Council: Feasibility- Read all analysis files (05-09)- Check: Is the recommended approach actually sound?- Check: Are there simpler alternatives the code analyst missed?- Check: Are the estimates realistic given the blockers identified?- Produce: 11-review-feasibility.md with feasibility rating + concernsThe council doesn’t vote. It doesn’t have veto power. It raises concerns — and the synthesizer decides how to incorporate them. Disagreements between the analyst and the council are explicitly surfaced, not silently resolved.
8. Fast-path optimization
Section titled “8. Fast-path optimization”Not every input deserves the full pipeline. The grooming skill detects trivial changes (XS/S complexity, single approach) and skips the council phase entirely:
If complexity ≤ S AND approaches.length == 1: Set output_mode = compact Skip Phase 7 (council review) Synthesizer uses compact template (Executive Summary + Effort + DoD only)Putting It Together
Section titled “Putting It Together”These patterns compose into a system:
Structured Instructions → each agent knows exactly what to doThin Orchestration → coordinator manages pipeline, not analysisFile-Based Communication → agents share work through disk, not contextMCP + CLI Fallback → works in any environmentDiamond Research → parallel analysis, converged synthesisScoring & Classification → subjective judgment → structured dataCouncil Review → cross-checking without committee overheadFast-Path → proportional effort for simple casesThe grooming skill uses all eight. But you don’t need all eight to start — even one or two of these patterns (structured instructions + file-based communication) will dramatically improve your multi-agent workflows.
Exercise: Design your own
Section titled “Exercise: Design your own”Pick a complex task you do regularly and sketch a multi-agent workflow:
- What phases does it need? (research → analysis → synthesis? intake → process → review?)
- What are the intermediate files? (What does each agent produce? What does the next agent read?)
- Where can agents run in parallel? (Independent analyses that don’t need each other’s output)
- Where do you need a human gate? (Choices, confirmations, ambiguous inputs)
- What’s the fast path? (When can you skip phases for simple inputs?)
You don’t need to build it yet. The design is the artifact.
Artifact
Section titled “Artifact”Understanding of the eight patterns for production multi-agent workflows. A sketched design for your own multi-agent skill.
Go Deeper
Section titled “Go Deeper”Playbook M07 — Advanced Workflows for the full workflow composition stack. Playbook M10 — Agent Teams for coordinating multiple Claude instances. The grooming skill source code for a complete production example of all patterns in action.