metaswarm
Multi-agent orchestration framework for Claude Code, Gemini CLI, and Codex CLI — 19 agents, 14 skills, 16 commands, quality gates, TDD enforcement
pinned to #33d39f7updated last month
Ask your AI client: “install plugins/metaswarm”.
Requires the metahub MCP server installed in your client. Set up MCP.
mh install plugins/metaswarmmetahub onboarded this repo on the author's behalf.
If you own github.com/dsifry/metaswarm on GitHub, claim the listing to take over publishing. Your claim preserves the existing eval history and badges; only the curator label is replaced with verified-publisher on your next publish.
Stars
324
Last commit
last month
Latest release
published
What's bundled
Items extracted from this plugin's manifest + directory tree.
Skills (14)
skills/brainstorming-extensionEnforces design review gate after brainstorming — bridges superpowers:brainstorming into the metaswarm quality pipelineskills/create-issueCreate comprehensive GitHub issues with TDD plans, acceptance criteria, and agent instructions for autonomous PR lifecycle managementskills/design-review-gateAutomatic review gate that runs after brainstorming completes - spawns PM, Architect, Designer, Security, and CTO agents in parallel, iterates until all approveskills/external-toolsDelegate implementation and review tasks to external AI CLI tools (Codex, Gemini) with cross-model adversarial reviewskills/handling-pr-commentsAddress PR review feedback systematically — fetch inline comments, review bodies, handle outside-diff-range comments, resolve threads with proper attributionskills/handoffAnalyze the current session and write a self-contained handoff document so a fresh agent can resume the work with full context — outputs a single "Read XXX.md and do YYY." sentenceskills/migrateMigrate from npm-installed metaswarm to the marketplace plugin — removes redundant files with safety checksskills/orchestrated-execution4-phase execution loop for work units - IMPLEMENT, VALIDATE, ADVERSARIAL REVIEW, COMMIT
Commands (8)
/metaswarm/brainstormInvoke the metaswarm brainstorming extension skill, which wraps `superpowers:brainstorming` with metaswarm's design review gate handoff./create-issueCreate a comprehensive, well-structured GitHub issue with embedded agent instructions for autonomous PR lifecycle management./external-tools-healthCheck the status of external AI tools (Codex CLI, Gemini CLI) and their configuration./handle-pr-commentsHandle review comments on pull requests with appropriate responses and resolutions./handoffAnalyze the current session and everything we are working on, then write a single comprehensive markdown document containing all the context, files, specs, designs, plans, and decisions a **fresh a…/metaswarm-setupInteractive, Claude-guided setup for metaswarm in your project. Detects your stack, asks targeted questions, and customizes everything automatically./metaswarm-update-versionUpdate metaswarm to the latest version, refresh component files, and re-detect project context.
Subagents (8)
architect-agent**Type**: `architect-agent`code-review-agent**Type**: `code-review-agent`coder-agent**Type**: `coder-agent`cto-agent**Type**: `cto-agent`customer-service-agent**Type**: `customer-service-agent`designer-agent**Type**: `designer-agent`issue-orchestrator**Type**: `issue-orchestrator`knowledge-curator-agent**Type**: `learning-curator-agent`
Evaluation report
WarningsAutomated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.33d39f7· last month
Documentation
41Description quality
22 words · 146 chars — "Multi-agent orchestration framework for Claude Code, Gemini CLI, and Codex CLI —…"
README is present and substantial
12,501 chars · 10 sections · 8 code blocks
Tags / topics declaredwarn
No manifest tags and no GitHub repo topics
Add tags to the manifest (or GitHub topics on the repo) so the registry's search and category filters surface this artifact.
README has usage / example sections
no labeled section but 8 code blocks document usage
Homepage / docs URL declared
https://github.com/dsifry/metaswarm
Release history
1- releasecurrent33d39f7warnlast month
Contents
A self-improving multi-agent orchestration framework for Claude Code, Gemini CLI, and Codex CLI. Coordinate 18 specialized AI agents and 13 orchestration skills through a complete software development lifecycle, from issue to merged PR, with recursive orchestration, parallel review gates, and a git-native knowledge base.
What Is This?
metaswarm is an extraction of a production-tested agentic orchestration system. It has been proven in the field writing production-level code with 100% test coverage, mandatory TDD, multi-reviewed spec-driven development, and SDLC best practices across hundreds of PRs. It provides:
- 18 specialized agent personas (Researcher, Architect, Coder, Security Auditor, PR Shepherd, etc.)
- A structured 9-phase workflow: Research → Plan → Design Review Gate → Work Unit Decomposition → Orchestrated Execution → Final Review → PR Creation → PR Shepherd → Closure & Learning
- 4-Phase Orchestrated Execution Loop: Each work unit runs through IMPLEMENT → VALIDATE → ADVERSARIAL REVIEW → COMMIT. The orchestrator validates independently (never trusts subagent self-reports), and adversarial reviewers check DoD compliance with file:line evidence
- Parallel Design Review Gate: 5 specialist agents (PM, Architect, Designer, Security, CTO) review in parallel with a 3-iteration cap before human escalation
- Recursive orchestration: Swarm Coordinators spawn Issue Orchestrators, which spawn sub-orchestrators for complex epics (swarm of swarms)
- Git-native task tracking: Uses BEADS (
bdCLI) for issue/task management, dependencies, and knowledge priming - Knowledge base: JSONL-based fact store for patterns, gotchas, decisions, and anti-patterns — agents prime from this before every task
- Quality rubrics: Standardized review criteria for code, architecture, security, testing, planning, and adversarial spec compliance
- External AI tool delegation: Optionally delegate implementation and review tasks to OpenAI Codex CLI and Google Gemini CLI for cost savings and cross-model adversarial review
- Visual review: Playwright-based screenshot capture for reviewing web UIs, presentations, and rendered pages
- PR lifecycle automation: Autonomous CI monitoring, review comment handling, and thread resolution
- Workflow enforcement: Mandatory quality gate intercepts at every handoff point — agents cannot skip design review, plan review, or knowledge capture
- Context recovery: Approved plans and execution state persist to disk via BEADS, surviving context compaction and session interruption
Architecture
Your prompt (spec with DoD items) or GitHub Issue
│
▼
┌─────────────────────────────────┐
│ Swarm Coordinator │
│ - Assign to worktree │
│ - Spawn Issue Orchestrator │
└─────────────────────────────────┘
│
▼
┌─────────────────────────────────┐
│ Issue Orchestrator │
│ - Create BEADS epic │
│ - Decompose into work units │
└─────────────────────────────────┘
│
▼
Research → Plan → Design Review Gate (5 parallel reviewers)
│
▼
Work Unit Decomposition (DoD items, file scopes, dependency graph)
│
▼
Orchestrated Execution Loop (per work unit):
IMPLEMENT → VALIDATE → ADVERSARIAL REVIEW → COMMIT
(Optionally delegates IMPLEMENT to Codex/Gemini CLI)
(Cross-model REVIEW: writer always reviewed by different model)
│
▼
Final Comprehensive Review (cross-unit integration)
│
▼
PR Creation → PR Shepherd (auto-monitors to merge)
│
▼
Closure → Knowledge Extraction (feedback loop)
Repository Structure
metaswarm/
├── .claude-plugin/
│ └── plugin.json # Claude Code plugin manifest
├── gemini-extension.json # Gemini CLI extension manifest
├── .codex/
│ ├── install.sh # Codex CLI install script
│ └── README.md # Codex CLI usage guide
├── hooks/
│ ├── hooks.json # SessionStart + PreCompact hook definitions
│ └── session-start.sh # Context priming (platform-aware)
├── skills/ # Orchestration skills (Agent Skills standard — portable)
│ ├── start/ # Main entry point — workflow guide + 18 agent personas
│ ├── orchestrated-execution/ # 4-phase execution loop (IMPLEMENT→VALIDATE→REVIEW→COMMIT)
│ ├── design-review-gate/ # Parallel 5-agent review
│ ├── plan-review-gate/ # 3-reviewer adversarial plan review
│ ├── setup/ # Interactive project setup
│ ├── migrate/ # Migration from npm to plugin installation
│ ├── status/ # Diagnostic checks
│ ├── pr-shepherd/ # PR lifecycle automation
│ ├── handling-pr-comments/ # Review comment workflow
│ ├── brainstorming-extension/
│ ├── create-issue/
│ ├── external-tools/ # Cross-model AI delegation (Codex, Gemini CLI)
│ └── visual-review/ # Playwright-based screenshot review
├── commands/ # Slash commands
│ ├── *.md # Claude Code commands (15 files)
│ └── metaswarm/*.toml # Gemini CLI commands (12 files)
├── agents/ # 18 agent persona definitions
├── rubrics/ # Quality review standards
├── guides/ # Development patterns
├── knowledge/ # Knowledge base schema + templates
├── templates/ # Setup templates (CLAUDE.md, AGENTS.md, GEMINI.md + append variants)
├── lib/ # Platform detection, sync, setup scripts
├── cli/ # Cross-platform installer (npx metaswarm)
├── CLAUDE.md # Claude Code project instructions
├── AGENTS.md # Codex CLI project instructions
├── GEMINI.md # Gemini CLI extension context
├── INSTALL.md
├── GETTING_STARTED.md
├── USAGE.md
└── CONTRIBUTING.md
Install
Claude Code (recommended)
claude plugin marketplace add dsifry/metaswarm-marketplace
claude plugin install metaswarm
Then run /setup in Claude Code.
Gemini CLI
gemini extensions install https://github.com/dsifry/metaswarm.git
Then run /metaswarm:setup in your project.
Codex CLI
codex plugin marketplace add dsifry/metaswarm-marketplace
codex
# Open /plugins, select the metaswarm marketplace, and install metaswarm.
Then run $setup in your project.
Cross-platform installer
Detect installed CLIs and install metaswarm for all of them:
npx metaswarm init
Start building
Run /start-task (Claude/Gemini) or $start (Codex) and describe what you want in plain English. No issue required.
/start-task Add a webhook system with retry logic, signature verification,
and a delivery log UI.
See INSTALL.md for prerequisites, platform-specific details, and migration from older versions.
Self-Learning System
metaswarm doesn't just execute — it learns from every session and gets smarter over time.
Automatic Reflection
After every PR merge, the self-reflect workflow (/self-reflect) analyzes what happened:
- Code review feedback — Extracts patterns, gotchas, and anti-patterns from reviewer comments (both human and automated) and writes them back to the knowledge base as structured JSONL entries
- Build and test failures — Captures what broke and why, so agents avoid the same mistakes in future tasks
- Architectural decisions — Records the rationale behind choices so future agents understand the "why", not just the "what"
Conversation Introspection
The reflection system also introspects into the Claude Code session itself, looking for:
- User repetition — When a user corrects the same behavior multiple times or repeats instructions, this signals an opportunity for a new skill or command. The system flags these as candidates for automation.
- User disagreements — When a user rejects or overrides Claude's recommendation, the system captures the user's preferred approach as a knowledge base entry, so agents align with the user's intent in future sessions.
- Friction points — Repeated manual steps that could be codified into reusable workflows.
These signals feed back into the knowledge base and can generate proposals for new skills, updated rubrics, or revised agent behaviors.
Selective Knowledge Priming
The knowledge base grows continuously, but agents don't load all of it. The bd prime command uses selective retrieval — filtering by affected files, keywords, and work type to load only the relevant subset:
# Only loads knowledge relevant to auth files and implementation work
bd prime --files "src/api/auth/**" --keywords "authentication" --work-type implementation
This means the knowledge base can grow to hundreds or thousands of entries without consuming context window. Agents get precisely the facts they need — the 5 critical gotchas for the files they're about to touch, not the entire institutional memory.
Design Principles
- Knowledge-Driven Development — Agents prime from the knowledge base before every task, reducing repeated mistakes
- Trust Nothing, Verify Everything — Orchestrators validate independently (run tests themselves, never trust subagent self-reports), review adversarially against written spec contracts, and optionally use cross-model review via external AI tools
- Parallel Review Gates — Independent specialist reviewers run concurrently, not sequentially
- Recursive Orchestration — Orchestrators spawn sub-orchestrators for any level of complexity
- Agent Ownership — Each agent owns its lifecycle; the orchestrator delegates, not micromanages
- BEADS as Source of Truth — All task state lives in BEADS; agents coordinate via database, not messages
- Test-First Always — TDD is mandatory, not optional. Coverage thresholds are enforced as a blocking gate before PR creation via
.coverage-thresholds.json - Git-Native Everything — Issues, knowledge, specs all in version control
- Human-in-the-Loop — Proactive checkpoints at planned review points, plus automatic escalation after 3 failed iterations or ambiguous decisions
Supported Platforms
| Platform | Install Method | Commands |
|---|---|---|
| Claude Code | Plugin marketplace | /start-task, /setup, etc. |
| Gemini CLI | Extension (gemini extensions install) | /metaswarm:start-task, etc. |
| Codex CLI | Plugin marketplace | $start, $setup, etc. |
Requirements
- One of: Claude Code, Gemini CLI, or Codex CLI
- Node.js 18+ (for automation scripts)
- BEADS CLI (
bd) v0.40+ — for task tracking (recommended) - GitHub CLI (
gh) — for PR automation (recommended) - Playwright — for visual review skill (optional,
npx playwright install chromium)
License
MIT
Acknowledgments
metaswarm stands on the shoulders of two key projects:
-
BEADS by Steve Yegge — The git-native, AI-first issue tracking system that serves as the coordination backbone for all agent task management, dependency tracking, and knowledge priming in metaswarm. BEADS made it possible to treat issue tracking as a first-class part of the codebase rather than an external service.
-
Superpowers by Jesse Vincent and contributors — The agentic skills framework and software development methodology that provides foundational skills metaswarm builds on, including brainstorming, test-driven development, systematic debugging, and plan writing. Superpowers demonstrated that disciplined agent workflows aren't overhead — they're what make autonomous development reliable.
metaswarm was created by Dave Sifry, founder of Technorati, Linuxcare, and Warmstart, and former tech executive at Lyft and Reddit. Extracted from a production multi-tenant SaaS codebase where it has been writing production-level code with 100% test coverage, TDD, and spec-driven development across hundreds of autonomous PRs.
Reviews
No reviews yet. Be the first.
Related
superpowers-symfony
A Symfony-focused toolkit for Claude Code providing TDD (Pest/PHPUnit), Doctrine ORM, API Platform, Messenger, Voters, quality checks (PHP-CS-Fixer/PHPStan), and pragmatic architecture patterns - Docker Compose and Symfony Docker (FrankenPHP) compatible
cc10x
The Loop Engine — harness and loop engineering plugin for Claude Code. Router-kernel orchestration, workflow artifacts, sub-agent delegation, hook enforcement, Test Honesty Gates, fresh-context verification, and memory that persists. 73% leaner than v11, zero quality regression.
embedded-debugger
Embedded debugger workflow for probe-rs targets. Provides a CLI-first skill and optional MCP server for probe discovery, target checks, flashing, memory access, and RTT workflows.
mh install plugins/metaswarm