swarm-pr

swarm-pr is a command for Claude Code from proffesor-for-testing/agentic-qe. It costs 0 tokens per session (1,883 once invoked), scanned A, a copy of swarm-pr, MIT.

A workflow for creating and controlling groups of AI agents through GitHub pull requests. A pull request is a proposed code change that teammates review before it is merged.

In plain words
What is it for?
Use it to create a swarm from pull-request details, start agents from labels, or run swarm commands in pull-request comments and GitHub Actions.
Why use it?
Agent tasks and coordination commands can otherwise be separate from the code-review process. This connects swarm setup, agent spawning, and status checks with pull requests and their comments.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

Part of the agentic-qe plugin — 41 skills, 143 commands, 10 agents, 10 hooks, 1 plugin shipped together

Good fit Use it to create a swarm from pull-request details, start agents from labels, or run swarm commands in pull-request comments and GitHub Actions.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/proffesor-for-testing/agentic-qe/swarm-pr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/proffesor-for-testing/agentic-qe

Made for: Claude Code.

Or install agentic-qe, the plugin that ships this one along with the rest of its 41 skills, 143 commands, 10 agents, 10 hooks, 1 plugin.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for swarm-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/proffesor-for-testing/agentic-qe/swarm-pr/github.svg)](https://agentmods.dev/commands/proffesor-for-testing/agentic-qe/swarm-pr)
Your own site
<a href="https://agentmods.dev/commands/proffesor-for-testing/agentic-qe/swarm-pr"><img src="https://agentmods.dev/badge/commands/proffesor-for-testing/agentic-qe/swarm-pr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for swarm-pr

Your own site · 80×15
<a href="https://agentmods.dev/commands/proffesor-for-testing/agentic-qe/swarm-pr"><img src="https://agentmods.dev/badge/commands/proffesor-for-testing/agentic-qe/swarm-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,883 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01883
Opus 5.5 $0.00000 $0.00753
Sonnet 5.5 $0.00000 $0.00377
Haiku 4.5 $0.00000 $0.00188

Measured 7d ago against content hash b6e7707c2f95, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

swarm-pr scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

const { execSync } = require('child_process');
Origin

This is a copy

100% identical to swarm-pr — 9 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/github/swarm-pr.md · 288 lines

How it starts

The opening of the file, as written. The whole thing — 288 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Swarm PR - Managing Swarms through Pull Requests

Overview

Create and manage AI swarms directly from GitHub Pull Requests, enabling seamless integration with your development workflow.

Core Features

1. PR-Based Swarm Creation

# Create swarm from PR description using gh CLI
gh pr view 123 --json body,title,labels,files | npx ruv-swarm swarm create-from-pr

# Auto-spawn agents based on PR labels
gh pr view 123 --json labels | npx ruv-swarm swarm auto-spawn

# Create swarm with PR context
gh pr view 123 --json body,labels,author,assignees | \
  npx ruv-swarm swarm init --from-pr-data

2. PR Comment Commands

Execute swarm commands via PR comments:

<!-- In PR comment -->
/swarm init mesh 6
/swarm spawn coder "Implement authentication"
/swarm spawn tester "Write unit tests"
/swarm status

3. Automated PR Workflows

# .github/workflows/swarm-pr.yml
name: Swarm PR Handler
on:
  pull_request:
    types: [opened, labeled]
  issue_comment:
    types: [created]

jobs:
  swarm-handler:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Handle Swarm Command
        run: |
          COMMENT_BODY_FILE=$(mktemp)
          printf '%s' "${{ github.event.comment.body }}" > "$COMMENT_BODY_FILE"
          if grep -q '^/swarm' "$COMMENT_BODY_FILE"; then
            npx ruv-swarm github handle-comment \
              --pr ${{ github.event.pull_request.number }} \
              --comment-file "$COMMENT_BODY_FILE"
          fi
          rm -f "$COMMENT_BODY_FILE"

PR Label Integration

Automatic Agent Assignment

Map PR labels to agent types:

{
  "label-mapping": {
    "bug": ["debugger", "tester"],
    "feature": ["architect", "coder", "tester"],
    "refactor": ["analyst", "coder"],
    "docs": ["researcher", "writer"],
    "performance": ["analyst", "optimizer"]
  }
}

Label-Based Topology

# Small PR (< 100 lines): ring topology
# Medium PR (100-500 lines): mesh topology  
# Large PR (> 500 lines): hierarchical topology
npx ruv-swarm github pr-topology --pr 123

Read the full file on GitHub · 288 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 288 lines · 0 tokens per session scan A b6e7707c2f95

Subscribe to this mod's changes

swarm-pr is a command published in the GitHub repository proffesor-for-testing/agentic-qe (505 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,883 tokens. A static security scan graded it A with 1 finding (runs shell commands). It is 100% identical to swarm-pr, differing in 9 lines, and is treated as a copy.