Best use case
parallel-agents is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Parallel Agent Orchestration
Teams using parallel-agents should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/parallel-agents/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How parallel-agents Compares
| Feature / Agent | parallel-agents | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Parallel Agent Orchestration
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Parallel Agent Orchestration
When launching multiple agents in parallel, follow this pattern to avoid context bloat.
## Core Principles
1. **No TaskOutput calls** - TaskOutput returns full agent output, bloating context
2. **Run in background** - Always use `run_in_background: true`
3. **File-based confirmation** - Agents write status to files, not return values
4. **Append, don't overwrite** - Multiple agents can write to same status file
## Output Patterns
### Simple Confirmation (parallel batch work)
For tasks where agents just need to confirm completion:
```bash
# Agent writes to shared status file
echo "COMPLETE: <task-name> - $(date)" >> .claude/cache/<batch-name>-status.txt
```
- Use `>>` to append (not `>` which overwrites)
- Include timestamp for ordering
- One line per agent completion
- Check with: `cat .claude/cache/<batch-name>-status.txt`
### Detailed Output (research/exploration)
For tasks requiring detailed findings:
```
.claude/cache/agents/<task-type>/<agent-id>/
├── output.md # Main findings
├── artifacts/ # Any generated files
└── status.txt # Completion confirmation
```
- Each agent gets own directory
- Full output preserved for later reading
- Status file still used for quick completion check
## Task Prompt Template
```markdown
# Task: <TASK_NAME>
## Your Mission
<clear objective>
## Output
When done, write confirmation:
\`\`\`bash
echo "COMPLETE: <identifier> - $(date)" >> .claude/cache/<batch>-status.txt
\`\`\`
Do NOT return large output. Complete work silently.
```
## Launching Pattern
```typescript
// Launch all in single message block (parallel)
Task({
description: "Task 1",
prompt: "...",
subagent_type: "general-purpose",
run_in_background: true
})
Task({
description: "Task 2",
prompt: "...",
subagent_type: "general-purpose",
run_in_background: true
})
// ... up to 15 parallel agents
```
## Monitoring
```bash
# Check completion status
cat .claude/cache/<batch>-status.txt
# Count completions
wc -l .claude/cache/<batch>-status.txt
# Watch for updates
tail -f .claude/cache/<batch>-status.txt
```
## Batch Size
- **Max 15 agents** per parallel batch
- Wait for batch to complete before launching next
- Use status file to track which completed
## DO
- Use `run_in_background: true` always
- Have agents write to status files
- Use append (`>>`) not overwrite (`>`)
- Give each agent clear, self-contained instructions
- Include all context in prompt (agents don't share memory)
## DON'T
- Call TaskOutput (bloats context)
- Return large outputs from agents
- Launch more than 15 at once
- Rely on agent return values for orchestration
## Example: Provider Backfill
```bash
# Status file
.claude/cache/provider-backfill-status.txt
# Each agent appends on completion
echo "COMPLETE: anthropic - Thu Jan 2 12:34:56 2025" >> .claude/cache/provider-backfill-status.txt
echo "COMPLETE: openai - Thu Jan 2 12:35:12 2025" >> .claude/cache/provider-backfill-status.txt
```
Check progress:
```bash
cat .claude/cache/provider-backfill-status.txt
# COMPLETE: anthropic - Thu Jan 2 12:34:56 2025
# COMPLETE: openai - Thu Jan 2 12:35:12 2025
```Related Skills
sub-agents
Create and configure Claude Code sub-agents with custom prompts, tools, and models
parallel-agent-contracts
Parallel Agent Type Contracts
no-polling-agents
No Polling for Background Agents
workflow-router
Goal-based workflow orchestration - routes tasks to specialist agents based on user goals
wiring
Wiring Verification
websocket-patterns
Connection management, room patterns, reconnection strategies, message buffering, and binary protocol design.
visual-verdict
Screenshot comparison QA for frontend development. Takes a screenshot of the current implementation, scores it across multiple visual dimensions, and returns a structured PASS/REVISE/FAIL verdict with concrete fixes. Use when implementing UI from a design reference or verifying visual correctness.
verification-loop
Comprehensive verification system covering build, types, lint, tests, security, and diff review before a PR.
vector-db-patterns
Embedding strategies, ANN algorithms, hybrid search, RAG chunking strategies, and reranking for semantic search and retrieval.
variant-analysis
Find similar vulnerabilities across a codebase after discovering one instance. Uses pattern matching, AST search, Semgrep/CodeQL queries, and manual tracing to propagate findings. Adapted from Trail of Bits. Use after finding a bug to check if the same pattern exists elsewhere.
validate-agent
Validation agent that validates plan tech choices against current best practices
tracing-patterns
OpenTelemetry setup, span context propagation, sampling strategies, Jaeger queries