Skip to main content
subagent CX Codex

swarm-pr — Claude Code subagent: what it does, how to install

swarm-pr coordinates agents working on a GitHub pull request, from diff analysis and review to reporting results back to the PR.

no license ★ 850 updated 2026-10-26

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

What swarm-pr does

The subagent uses pull request context, including the diff, to divide review and validation work among agents. It can gather their results and update the PR; its available GitHub tools cover reading and editing pull requests, posting comments, and merging.

Agent types can be assigned from PR labels. A bug label maps to debugger and tester, while docs maps to researcher and writer. swarm-pr also has tools for task coordination and swarm memory. GitHub operations depend on the mcp__github__* tools being available; without them, it cannot act on PRs.

What it helps with

  • inspect a pull request diff and assess its impact
  • split a PR review across specialized agents
  • assign agents based on pull request labels
  • post review findings to a pull request
  • coordinate work across related pull requests

Example prompts for the agent

  • Review this pull request diff with multiple agents and organize the checks.
  • Choose agents for this PR from its labels and divide the work.
  • Post the review findings to the pull request and prepare a merge decision.

How to install swarm-pr

Manually: put the files in place

.claude/agents/swarm-pr.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about swarm-pr

How do I install swarm-pr in Claude Code?

Add the subagent file to your project at .claude/agents/swarm-pr.md.

What does swarm-pr do?

It coordinates agents reviewing a pull request, divides tasks, and can publish the analysis results back to the PR.

How does swarm-pr assign agents to a pull request?

It can map PR labels to agent types. For instance, bug maps to debugger and tester, while docs maps to researcher and writer.

Similar subagents

All subagents for Agent setup: memory, context, orchestration →

From the same set76

The whole set →
v3-integration-architect v3-integration-architect — a Claude subagent that carries out ADR-001: folding claude-flow into agentic-flow@alpha as an extension and cutting 10,000+ duplicated lines. CX Codex ★ 850repo stars sync-coordinator sync-coordinator aligns versions, dependencies, and docs across linked repositories. It orchestrates agent swarms using GitHub CLI and MCP tools. CX Codex +1 ★ 850repo stars architecture architecture designs system structure from specifications and pseudocode, covering components, interfaces, technology choices, and deployment. CX Codex ★ 850repo stars repo-architect repo-architect optimizes repository layouts and synchronizes files across projects using agent swarms. Helpful when setting up standard templates and multi-repo workflows. CX Codex +1 ★ 850repo stars code-review-swarm code-review-swarm sends a pull request through several review agents at once: security, performance, style, architecture. Handy when a plain diff and a linter no longer catch the trouble. CX Codex +1 ★ 850repo stars swarm-issue swarm-issue is a Claude Code command that connects GitHub Issues to swarm work by splitting tasks into subtasks, suggesting agents, and tracking progress. It supports workflows managed through GitHub Issues. CX Codex +1 ★ 850repo stars project-board-sync project-board-sync keeps a GitHub Projects board in step with a claude-flow agent swarm: cards, statuses, sprint metrics. Useful when several agents touch one repo. CX Codex ★ 850repo stars 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

Project sponsors

Companies that keep this analytics open