Learn the 4 orchestration patterns that make AI agents work together: Pipeline, Parallel, Weighted Synthesis, and Iterative. Real examples from ACOS production use.

Understand the 4 orchestration patterns and implement swarm coordination in your own AI workflows.
How I coordinate 40+ AI agents to produce content, music, and code.
Swarm intelligence in AI means multiple specialized agents working together on complex tasks. ACOS implements 4 orchestration patterns: Pipeline (sequential handoffs), Parallel (concurrent execution), Weighted Synthesis (expert voting), and Iterative (refinement loops). The Starlight Orchestrator coordinates everything. This guide shows how to use each pattern with real production examples.
In biology, swarm intelligence describes how ants, bees, and birds achieve complex behaviors through simple individual rules and local interactions. In AI, it's the same principle applied to language models:
Single Agent:
User → Agent → Response
Swarm Intelligence:
User → Orchestrator → [Agent 1 + Agent 2 + Agent 3] → Synthesis → Response
The key insight: No single agent needs to be perfect. The swarm produces better results than any individual.
| Single Agent Approach | Multi-Agent Approach |
|---|---|
| One perspective | Multiple perspectives |
| Limited expertise | Specialized domains |
| All-or-nothing quality | Quality through review |
| Context overload | Distributed context |
Real example from my workflow:
Single agent writing: "Write a blog post about AI"
Swarm writing:
The swarm produces publishable content. The single agent produces a draft.
ACOS implements 4 patterns for coordinating agents. Each pattern solves different problems.
What: Agents work in sequence, each passing output to the next Best For: Content creation, data processing, any linear workflow
ACOS Implementation: The /factory command uses this pattern:
# workflows/content-creation/blog-pipeline.yaml
stages:
- name: research
agent: research-librarian
output: findings.md
- name: plan
agent: content-strategist
input: findings.md
output: outline.md
- name: create
agent: creation-engine
input: outline.md
output: draft.mdx
- name: edit
agent: line-editor
input: draft.mdx
output: polished.mdx
- name: publish
agent: publisher
input: polished.mdx
output: live-url
When to Use Pipeline:
When NOT to Use:
What: Multiple agents work simultaneously on different aspects Best For: Distribution, multi-perspective analysis, speed-critical tasks
ACOS Implementation: The /generate-social command uses this:
# workflows/social-distribution/parallel.yaml
trigger: content-published
parallel_agents:
- agent: linkedin-specialist
template: linkedin-thought-leadership.md
output: linkedin-post.md
- agent: twitter-specialist
template: twitter-thread.md
output: twitter-thread.md
- agent: newsletter-writer
template: email-digest.md
output: newsletter.md
synthesis: none # No combination needed, each publishes independently
When to Use Parallel:
When NOT to Use:
What: Multiple agents contribute opinions, weighted by expertise Best For: Strategic decisions, quality assessment, complex judgments
ACOS Implementation: The /council command uses this:
# workflows/decision/weighted-synthesis.yaml
decision: ${user_question}
council:
- agent: visionary
domain: strategy-foresight
weight: 0.30
- agent: technical-translator
domain: feasibility-education
weight: 0.35
- agent: creation-engine
domain: content-audience
weight: 0.35
synthesis:
method: weighted-average
threshold: 0.70 # 70% confidence required
output: decision-report.md
When to Use Weighted Synthesis:
When NOT to Use:
What: Output cycles through review and revision until quality threshold Best For: Quality-critical content, code review, creative refinement
ACOS Implementation: The /polish-content command uses this:
# workflows/quality/iterative-refinement.yaml
input: draft.mdx
iterations:
max: 5
evaluate:
agent: quality-evaluator
criteria:
- voice-consistency: 0.9
- clarity-score: 0.85
- seo-optimization: 0.8
- factual-accuracy: 0.95
threshold: all-pass
refine:
agent: line-editor
instruction: "Fix issues identified by evaluator"
output: polished.mdx
When to Use Iterative:
When NOT to Use:
The Starlight Orchestrator is the meta-intelligence that coordinates all agents. Think of it as the conductor of the orchestra.
The biggest challenge in multi-agent systems is context loss. When Agent A hands off to Agent B, information can be lost.
ACOS solves this with explicit handoff files:
No information is passed in "memory"—it's all in files that any agent can read.
Agents have weights based on domain expertise:
| Agent | Domain | Weight |
|---|---|---|
| Visionary | Strategy, foresight | 30% |
| Creation Engine | Content, products | 25% |
| Technical Translator | AI education | 25% |
| Frequency Alchemist | Music, audio | 20% |
For a music production question, Frequency Alchemist's opinion counts more. For a strategy question, Visionary leads.
Task: Write and publish a blog post about MCP servers
Pattern: Pipeline
Execution:
1. /research "MCP servers claude code"
→ Research Agent produces: mcp-research.md
2. Content Strategist reads research
→ Produces: mcp-outline.md (with SEO keywords)
3. Creation Engine writes draft
→ Produces: mcp-servers-guide.mdx
4. Line Editor reviews and polishes
→ Produces: mcp-servers-guide-v2.mdx
5. SEO Agent optimizes
→ Final: mcp-servers-guide-final.mdx
6. Publisher deploys
→ Live at /blog/mcp-servers-guide
Time: ~30 minutes total Quality: Publication-ready
Task: Review a pull request for quality
Pattern: Parallel + Synthesis
Execution:
Time: ~5 minutes (parallel execution) Coverage: 3x deeper than single reviewer
Task: Should I launch a new product line?
Pattern: Weighted Synthesis
Execution:
Time: ~10 minutes Quality: Reasoned decision with multiple perspectives
| Situation | Pattern |
|---|---|
| Multi-step content creation | Pipeline |
| Multi-platform distribution | Parallel |
| Big strategic decision | Weighted Synthesis |
| Quality-critical output | Iterative |
# Create agent file: .claude/agents/my-specialist.md
---
name: My Specialist Agent
domain: specific-expertise
weight: 0.25
triggers:
- "keyword1"
- "keyword2"
---
You are an expert in [domain]. When activated, you:
1. Focus on [specific aspect]
2. Output in [specific format]
3. Consider [specific criteria]
# Create workflow: workflows/my-workflow.yaml
name: My Custom Workflow
pattern: pipeline # or parallel, weighted, iterative
stages:
- name: stage-1
agent: agent-name
input: previous-output.md
output: stage-1-output.md
- name: stage-2
agent: another-agent
input: stage-1-output.md
output: final-output.md
/acos "run my-workflow for [input]"
The smart router detects the workflow name and executes it.
Bad: Using 5 agents to write a tweet Why: Overhead exceeds benefit Instead: Single agent, direct prompt
Bad: Agents "talking" without written artifacts Why: Context lost between agents Instead: Every handoff writes to a file
Bad: Security Agent and Style Agent both at 50% for security decision Why: Wrong expert has too much influence Instead: Weight by domain relevance
Bad: Iterative pattern with no termination condition Why: Never finishes Instead: Always set max iterations and quality threshold
Swarm intelligence describes multiple AI agents working together, each contributing specialized expertise, coordinated by an orchestrator. The collective output exceeds what any single agent could produce.
ACOS supports up to 10 concurrent agents in parallel patterns. For weighted synthesis, 3-5 agents is optimal to balance perspectives without diluting expertise.
Yes, more agents means more API calls. But for high-value tasks like content creation or strategic decisions, the quality improvement justifies the cost.
Yes—and that's the point. The weighted synthesis pattern specifically allows conflicting opinions to be combined into a reasoned decision.
Each agent writes its output to a file. Check the files at each stage to see where things went wrong. The orchestrator also logs agent selection and handoff decisions.
Yes. ACOS workflows are YAML files. You can combine patterns (e.g., Pipeline with Iterative refinement at one stage) to create custom flows.
/factory command is the easiest way to experience swarm intelligence/council for your next big decisionSwarm Intelligence — The future of AI isn't one agent doing everything. It's many agents doing what they do best.
Read on FrankX.AI — AI Architecture, Music & Creator Intelligence
Join 1,000+ creators and architects receiving weekly field notes on AI systems, production patterns, and builder strategy.
No spam. Unsubscribe anytime.