From pda
Spawn N agents with the same prompt (slight framing variations) to independently analyze a problem, then aggregate results by consensus. Use for decision-making, ranking options, strategic analysis, or any problem where you want to filter hallucinations and surface high-variance ideas. Triggers on "consensus", "poll agents", "stochastic consensus", "spawn N agents to analyze", "multi-agent vote", or /stochastic-multi-agent-consensus. Also triggers on phrases like "what do 10 agents think", "get multiple opinions", or "poll on [topic]".
npx claudepluginhub spaghetti-lover/pda-plugins --plugin pdaThis skill is limited to using the following tools:
Spawn N agents (default 10) with identical context and near-identical prompts. Each independently analyzes and produces a structured response. Aggregate by finding consensus (mode), divergences (splits), and outliers (unique ideas).
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Automates semantic versioning and release workflow for Claude Code plugins: bumps versions in package.json, marketplace.json, plugin.json; verifies builds; creates git tags, GitHub releases, changelogs.
Spawn N agents (default 10) with identical context and near-identical prompts. Each independently analyzes and produces a structured response. Aggregate by finding consensus (mode), divergences (splits), and outliers (unique ideas).
Why this works: Exploits stochastic variation in LLM outputs. Like polling 10 experts instead of asking one. The mode filters out hallucinations and individual biases. Divergences reveal genuine judgment calls. Outliers surface creative ideas a single run would miss.
Extract from the user's message:
If the problem is vague, ask the user to sharpen it. N agents on a fuzzy prompt wastes tokens.
Before spawning, define what each agent must return. This MUST be structured enough to aggregate. Examples:
Option: Score."The schema must produce outputs that can be mechanically compared across agents.
Create N slightly different prompts. The core problem and output schema stay identical — only the framing/priming varies. This ensures stochastic diversity without changing the actual task.
Variation strategies (cycle through these):
For N > 10, cycle back through. For N < 10, pick the first N.
Use the Task tool to spawn all N agents simultaneously.
Config for each:
subagent_type: "general-purpose"model: "sonnet" (cost-efficient — each agent does focused analysis, not deep research)mode: "bypassPermissions"{framing_variation}
PROBLEM:
{problem}
{context — any relevant background, data, constraints the user provided}
{output_schema}
Be specific and concrete. Give real recommendations, not vague advice. If you're uncertain about something, say so explicitly with a confidence level.
Write your response directly — do not write to any files.
Important: Agents return their output directly (not to files). This keeps aggregation simple.
Once all N agents have returned, perform mechanical aggregation:
Write to active/consensus/consensus_report.md:
# Stochastic Multi-Agent Consensus Report
**Problem**: {problem}
**Agents**: {N}
**Date**: {date}
## Consensus (agreed by {X}+/{N} agents)
{Items most agents converged on — these are your safe bets}
## Divergences (split {X}/{Y})
{Items where agents disagreed roughly evenly — these are genuine judgment calls that need human decision}
## Outliers (proposed by 1-{Z} agents)
{Unique ideas from individual agents — high variance, potentially high value. Flag which framing produced them.}
## Raw Rankings / Scores
{Full aggregation table}
## Individual Agent Responses
{Summary of each agent's response with their framing variation noted}
Present to the user:
| Parameter | Default | Description |
|---|---|---|
| N | 10 | Number of agents to spawn |
| model | sonnet | Model for each agent (sonnet for cost, opus for depth) |
| output | ranking | Output type: ranking, recommendation, score, binary |
User can override any of these: "poll 5 opus agents on..." or "score these options with 15 agents".
active/consensus/ for existing files. Overwrite without asking (these are ephemeral analysis artifacts, not persistent data).| File | Description |
|---|---|
active/consensus/consensus_report.md | Full aggregation report |
Previous reports are overwritten — these are ephemeral analysis tools, not archives.