Swarm

From zaxbysauce/opencode-swarm · View interactive version

Swarm is an AI agent skill from the GitHub repository zaxbysauce/opencode-swarm. Enable a high-quality swarm-like Claude Code workflow for the current session, and optionally execute a task immediately using that mode. Uses parallel subagents for breadth, independent reviewer validation for precision, and critic challenge for final confidence. Use when the user wants swarm-like

How to use this skill

Skill file

/swarm

Enable swarm mode for the current session.

If arguments are provided, enable swarm mode first and then execute that task using the swarm-like implementation workflow.

Argument handling:

SWARM-NAMESPACED subcommands — DO NOT confuse with Claude Code built-in commands

These are invoked as /swarm <subcommand>, NOT as bare /subcommand. The list below is generated from the COMMAND_REGISTRY (src/commands/registry.ts) and includes all registered non-deprecated base commands and subcommands:

Core / state

Harness evolution

Diagnostics / health

Knowledge / memory / curation

Architect MODE workflows

Read-only audits / research

PR / issue workflows

CRITICAL NAMING CONFLICTS

These swarm subcommands share exact names with CC built-in commands.

Invoking the bare form instead of /swarm <name> causes irreversible damage:

| Swarm Command | CC Built-in | Damage |

|---|---|---|

| /swarm plan | CC /plan | Enters CC plan mode — blocks execution |

| /swarm reset | CC /reset | Wipes entire conversation context |

| /swarm checkpoint | CC /checkpoint | Reverts conversation history |

| /swarm history | CC /history | Shows CC conversation history instead of swarm phase history |

All swarm commands: /swarm <subcommand>. Never the bare name.

COMMAND INVOCATION RULE

All commands in this list are invoked as /swarm <subcommand>.

Never invoke the bare subcommand as a standalone slash command.

/plan, /status, /reset, /checkpoint, /agents, /config, /export, /doctor

are Claude Code built-in commands with completely different behaviors.

The /swarm prefix is mandatory, not optional.

Examples:

Behavior model

The canonical swarm behavior model (goal, workflow posture, quality/speed policy, default triage model, and the mandatory implementation closeout gate) lives at .opencode/skills/swarm/SKILL.md. This file holds only the Claude Code /swarm command wiring above; the cross-agent contract is canonical.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.