--- name: swarm audience: swarm-plugin description: 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 behavior, higher review rigor, or maximum quality without sacrificing Claude Code speed. disable-model-invocation: true argument-hint: "[optional task]" --- # /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: - If no arguments are provided: only enable swarm mode. - If the first word of `$ARGUMENTS` is a **known plugin subcommand** (see list below): do NOT treat it as a swarm task. Instead, tell the user to run it as a slash command directly (e.g., `/swarm close`, `/swarm handoff`). These are OpenCode plugin commands handled by the swarm plugin's command system, not tasks for the swarm workflow. Do NOT try to interpret or execute them yourself. - Otherwise: enable swarm mode, then treat `$ARGUMENTS` as the task to execute immediately. ### SWARM-NAMESPACED subcommands — DO NOT confuse with Claude Code built-in commands These are invoked as `/swarm `, 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** - `/swarm status` — show current swarm state - `/swarm show-plan` — show current plan (optionally filter by phase number) - `/swarm plan` — deprecated alias for `/swarm show-plan` - `/swarm agents` — list registered agents - `/swarm help` — show help for swarm commands (optionally `[command]`) - `/swarm history` — show completed phases summary - `/swarm config` — show current resolved configuration - `/swarm export` — export plan and context as JSON - `/swarm dataset consent` — HUMAN-ONLY: grant or revoke the training-content consent (two-step confirm token; quotas clamp to hard ceilings) - `/swarm dataset withdraw` — HUMAN-ONLY: confirmed destructive withdrawal — purge vault content, write a tombstone, revoke exports - `/swarm dataset export` — HUMAN-ONLY: governed deterministic dataset export (preview + confirm token; manifest with sha256 checksums) - `/swarm evidence` — show evidence bundles `[taskId]` - `/swarm evidence summary` — generate evidence summary with completion ratio and blockers - `/swarm evidence-summary` — deprecated alias for `/swarm evidence summary` - `/swarm handoff` — prepare state for clean model switch - `/swarm archive` — archive old evidence bundles `[--dry-run]` - `/swarm retrieve` — retrieve full output from a summary `` - `/swarm rollback` — restore swarm state or project files to a checkpoint - `/swarm reset` — clear swarm state files `[--confirm]` - `/swarm reset-session` — clear session state, preserve plan/evidence/knowledge - `/swarm recover` — settle wedged coder settlements `[task_id] [--force]` (human-only) - `/swarm checkpoint` — manage project checkpoints `[save|restore|delete|list]