A self-improving multi-agent orchestration framework for Claude Code, Gemini CLI, and Codex CLI.
$ npx -y skills add dsifry/metaswarm --agent claude-code
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.
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:
bd CLI) for issue/task management, dependencies, and knowledge primingYour 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)
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
claude plugin marketplace add dsifry/metaswarm-marketplace
claude plugin install metaswarm
Then run /setup in Claude Code.
gemini extensions install https://github.com/dsifry/metaswarm.git
Then run /metaswarm:setup in your project.
codex plugin marketplace add dsifry/metaswarm-marketplace
codex
# Open /plugins, select the metaswarm marketplace, and install metaswarm.
Then run $setup in your project.
Detect installed CLIs and install metaswarm for all of them:
npx metaswarm init
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.
metaswarm doesn't just execute — it learns from every session and gets smarter over time.
After every PR merge, the self-reflect workflow (/self-reflect) analyzes what happened:
The reflection system also introspects into the Claude Code session itself, looking for:
These signals feed back into the knowledge base and can generate proposals for new skills, updated rubrics, or revised agent behaviors.
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.
.coverage-thresholds.json| 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. |
bd) v0.40+ — for task tracking (recommended)gh) — for PR automation (recommended)npx playwright install chromium)MIT
metaswarm stands on the shoulders of two key projects:
metaswarm is a Claude Code plugin with 14 hand-picked skills, indexed on Flowy in the Agent Orchestration category. Install it with the command on its page. It includes brainstorming-extension, create-issue, design-review-gate. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it