Skip to main content
command CX Codex

multi-repo-swarm — Claude Code command: what it does, how to install

multi-repo-swarm coordinates AI swarms across multiple repositories with the GitHub CLI and ruv-swarm. Useful for cross-project updates.

no license ★ 850 updated 2026-10-26

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/multi-repo-swarm.md
Open on GitHub

What multi-repo-swarm does

This command sets up synchronized actions across an entire GitHub organization. It queries repositories using the gh CLI, parses dependency trees via jq, and organizes repos into an orchestration network. Projects can take on distinct roles such as UI, API, or shared library, coordinated via a designated hierarchy and external memory.

Using npx ruv-swarm, the tool clones matching repositories into temporary folders, executes task scripts, runs local test suites, and opens linked pull requests. It handles batch dependency upgrades, large API migrations, and security vulnerability patching across repos.

Execution relies strictly on Node.js and an authenticated gh CLI session. Without proper organization permissions in GitHub CLI, automated discovery and pull request creation will fail.

What it helps with

  • Bump a shared dependency across multiple organizational repositories
  • Discover related codebases based on language or package dependencies
  • Generate linked pull requests across frontend and backend services
  • Apply organization-wide API refactoring patterns automatically

Example prompts for the agent

  • Run multi-repo-swarm to plan a synchronized TypeScript update across our microservices
  • Discover all repos depending on the shared library and open tracking pull requests
  • Execute security patches across all services and link the resulting PRs

How to install multi-repo-swarm

Manually: put the files in place

.claude/commands/multi-repo-swarm.md

Call it with /multi-repo-swarm. For all projects use ~/.claude/commands/

Questions about multi-repo-swarm

How to install multi-repo-swarm in Claude Code?

Place the command specification file into .claude/commands/multi-repo-swarm.md inside your repository.

What does multi-repo-swarm do?

It orchestrates agent operations across multiple repositories, running updates and managing interdependent GitHub pull requests.

What dependencies are required to run it?

You need an authenticated GitHub CLI installation (gh), jq, and Node.js with npx access to run the orchestration packages.

Similar slash commands

All slash commands for Agent setup: memory, context, orchestration →

From the same set76

The whole set →
release-manager release-manager coordinates release pipelines using an agent swarm. It synchronizes versions across packages, executes tests, and opens a GitHub pull request. CX Codex +1 ★ 850repo stars adaptive-learner adaptive-learner — a subagent that pulls similar past cases from ReasoningBank before it starts and files the outcome afterwards, so later runs lean on what already happened. CX Codex ★ 850repo stars pagerank-analyzer The pagerank-analyzer subagent computes PageRank and examines graph structure. Use it to find influential nodes or assess connections across a network. CX Codex ★ 850repo stars production-validator production-validator — a subagent that hunts leftover mocks and stubs in your code, then runs the tests against a real database, cache and payment API before you deploy. CX Codex ★ 850repo stars coder The coder subagent implements and refactors code, designs APIs, and handles errors. Use it for development tasks that call for tests and follow-up checks. CX Codex ★ 850repo stars repo-architect repo-architect maps how your repositories are laid out and proposes a cleaner shape: a shared project template plus file sync across repos through GitHub MCP. CX Codex ★ 850repo stars code-review-swarm code-review-swarm deploys coordinated AI review agents against pull requests via the GitHub CLI. It flags security flaws and architecture drift before merging. CX Codex ★ 850repo stars supabase-admin supabase-admin — a Claude command that puts the agent in charge of Supabase: Postgres schemas, RLS policies, auth and storage buckets, all through the MCP server rather than the CLI. CX Codex +1 ★ 850repo stars

Project sponsors

Companies that keep this analytics open