一键导入
parallel-execution
Parallel execution pattern: Multiple agents work simultaneously on independent sub-tasks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Parallel execution pattern: Multiple agents work simultaneously on independent sub-tasks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | parallel-execution |
| description | Parallel execution pattern: Multiple agents work simultaneously on independent sub-tasks. |
[!IMPORTANT] When to use: When sub-tasks are independent and can be executed simultaneously. Maximizes throughput for parallelizable workloads.
Does the task require multiple specialized capabilities?
├── YES
│ └── Are subtasks independent (no shared state/collaboration)?
│ ├── YES → Parallel Execution (you're here)
│ └── NO, need shared context?
│ └── YES → supervisor-orchestrator
└── NO → single-agent
| ✅ Use Parallel When | ❌ Avoid When |
|---|---|
| Subtasks are truly independent | Subtasks share state/artifacts |
| You need maximum throughput | Order dependency exists |
| Each subtask is self-contained | Errors in one affect others |
| Subtasks are embarrassingly parallel | Result synthesis is complex |
┌─────────────────────────────────────────────────────┐
│ Dispatcher │
│ (Splits task, aggregates results) │
└────────────────────┬───────────────────────────────┘
│
┌────────────────┼────────────────┐
▼ ▼ ▼
┌────────┐ ┌────────┐ ┌────────┐
│ Agent 1│ │ Agent 2│ │ Agent 3│ ← All simultaneous
│(Doc A) │ │(Doc B) │ │(Doc C) │
└────────┘ └────────┘ └────────┘
│ │ │
└────────────────┼────────────────┘
▼
┌─────────────┐
│ Aggregator │
│ (Synthesize) │
└─────────────┘
│
▼
Final Output
You are a dispatcher for parallel execution.
Task: {user_task}
1. Identify N independent subtasks
2. Launch all subtasks simultaneously
3. Wait for all completions
4. Aggregate results
Subtasks identified: {list}
| Question | If NO, Use Another Pattern |
|---|---|
| Do subtasks need shared state? | ❌ → supervisor-orchestrator |
| Do subtasks depend on each other's output? | ❌ → supervisor-orchestrator |
| Is there an execution order requirement? | ❌ → supervisor-orchestrator |
| Do subtasks need to collaborate? | ❌ → supervisor-orchestrator |
| Mistake | Why It's Bad |
|---|---|
| Faking independence | Race conditions, corrupted outputs |
| No aggregation plan | Results pile up without synthesis |
| Uneven workload | Some agents idle, others overwhelmed |
| Ignoring partial failures | Incomplete results, wasted compute |
| Strategy | Use When |
|---|---|
| Simple concatenation | Results are independent, list format OK |
| Weighted scoring | Some results more important than others |
| Consensus voting | Multiple perspectives on same question |
| Hierarchical synthesis | Results themselves need synthesis |
Need some coordination between parallel tasks?
├── YES, light handoffs?
│ └── YES → supervisor-orchestrator (light version)
└── YES, hierarchical control?
└── YES → hierarchical-supervisor
Is parallelism actually overkill?
├── YES, one LLM can handle it?
│ └── YES → single-agent
└── YES, simple routing by type?
└── YES → supervisor-delegation
| Factor | Parallel Execution |
|---|---|
| Latency | Low (limited by slowest subtask) |
| Cost | Higher (N agents running) |
| Complexity | Low-Moderate |
| Reliability | Partial failure possible; others continue |
| Best for | Independent batch workloads |
Pattern ID: parallel-execution | AGEM-compatible
arXiv paper discovery — select top 3 significant papers, research via subagents, ingest to wiki, deliver report.
Daily raw file ingestion pipeline — process files from raw/ into structured wiki knowledge, verify frontmatter and links, archive to Clippings/. Schedule: 06:30 AM.
Daily Zettelkasten insight generation — run CLI insight engine, create wiki pages for confidence>=0.7 insights, integrate to wiki. Schedule: 06:00 AM.
Daily global news curator — RSS discovery, significance filtering, clippings archive + synthesis wiki delivery, deliver headlines report. Schedule: 07:30 AM.
Wiki synthesis agent operational sheet — cross-domain bridges, concept advancement, evidence evaluation
Daily wiki quality audit anchored in wiki-indexing-theory.md — HITS authority scoring, GAAC cluster validation, tag taxonomy compliance, reciprocal link enforcement. Schedule: 08:50 AM.