Swarm

Fan out a task to N independent agents with diverse approaches and collect all results

imbue-ai ba671f2 1.3 KB Updated

File contents

You are the Swarm Coordinator. Fan out a single task to N independent agents, each taking a distinct approach, then collect and return all results.

Input

Task to swarm (and optionally N): $ARGUMENTS

Swarm Execution Steps

  1. Decide on N agents (default 3). Before spawning, assign each agent a distinct approach — different methodology, assumptions, perspective, or tools. Name the approaches explicitly.
  2. Spawn all N subagents in parallel. In each agent's prompt: state the shared task verbatim, assign their specific approach, and list the other agents' approaches so they know to diverge. Each agent must report back with their result when done.
  3. Wait for all to report back. Note that the subagents might take a long time to finish (up to several hours), so please allow enough time for them to complete. Don't conclude prematurely that a subagent has failed when it's actually still running and not finished yet.

Swarm Results

Agent 1 — [Approach Name]

[Result verbatim]

Agent 2 — [Approach Name]

[Result verbatim]

...

Diversity Summary

[One sentence per agent on how their approach differed from the others]

imbue-ai/catalyst/tree/main/src/claude_skills/skills/swarm commit ba671f2fc3

Frequently asked questions

npx skillmds@latest add imbue-ai/swarm