Parallelization Patterns

Standardize parallel execution patterns for multi-agent systems with timeouts and retries.

71|2|Updated Feb 23, 2024
One-click install
npx skills add https://github.com/takeokunn/nixos-configuration --skill parallelization-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Parallelization Patterns
Source: https://github.com/takeokunn/nixos-configuration/tree/main/home-manager/programs/claude-code/skills/patterns/parallelization-patterns
Command: npx skills add https://github.com/takeokunn/nixos-configuration --skill parallelization-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill standardizes how multiple agents run in parallel, manages timeouts, defines retry policies, and establishes consensus rules to simplify coordination and improve reliability.

Core Features & Use Cases

  • Parallelization templates: Define safe, scalable execution patterns for read-only, analysis, and state-modifying agents.
  • Timeouts & retries: Apply consistent timeout tiers and retry strategies to prevent stalls and flakiness.
  • Orchestration patterns: Coordinate sub-agents with groupings, dependencies, and consensus rules for complex workflows.
  • Use Case: Orchestrate a fleet of agents (explore, design, database, security, docs) to run in parallel while preserving correctness and reducing latency.

Quick Start

Invoke the parallelization_readonly pattern to run 16 read-only agents in parallel with a 180000ms timeout, and specify a retry_policy for transient failures.

Frequently Asked Questions about Parallelization Patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I coordinate multiple agents running in parallel?

To coordinate parallel agents, you apply standardized parallelization patterns with defined timeouts, retry policies, and consensus thresholds to manage execution and ensure reliable results.

What are the standard patterns for multi-agent orchestration?

Standard multi-agent orchestration patterns define roles for read-only, analysis, execution, and orchestration workflows, applying timeout tiers and dependency rules to coordinate sub-agents safely.

How do I handle timeouts and retries for parallel agents?

You handle timeouts and retries by enforcing consistent timeout tiers and retry policies across parallel agent groups, preventing stalls and recovering from transient failures during execution.

Can I run different types of agents in parallel workflows?

Yes, you can run read-only, analysis, and state-modifying agents in parallel by grouping them into parallel_groups with dependency rules and agent_weights to preserve correctness.

What is the best way to establish consensus across parallel agents?

The best way to establish consensus is to apply formal consensus thresholds and agent weights, ensuring coordinated results when multiple agents execute tasks simultaneously.

Why do my parallel multi-agent workflows stall or fail?

Parallel multi-agent workflows stall or fail when lacking defined timeout tiers and retry policies; applying formal dependency rules and orchestration patterns prevents these stalls.