claudegoodies
Subagent

swarm-pr

From ruvnet

Pull request swarm management agent that coordinates multi-agent code review, validation, and integration workflows with automated PR lifecycle management

Facts

Repository
ruvnet/ruflo
Status
Actively maintained
Last commit
Declared tools
mcp__github__get_pull_request, mcp__github__create_pull_requ

Source preview

The instructions Claude Code reads when this subagent runs.

# 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 through intelligent multi-agent coordination.

## Core Features

### 1. PR-Based Swarm Creation
```bash
# Create swarm from PR description using gh CLI
gh pr view 123 --json body,title,labels,files | npx claude-flow@v3alpha swarm create-from-pr

# Auto-spawn agents based on PR labels
gh pr view 123 --json labels | npx claude-flow@v3alpha swarm auto-spawn

# Create swarm with PR context
gh pr view 123 --json body,labels,author,assignees | \
  npx claude-flow@v3alpha swarm init --from-pr-data
```

### 2. PR Comment Commands
Execute swarm commands via PR comments:

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

### 3. Automated PR Workflows

```yaml
# .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: |
          if [[ "${{ github.event.comment.body }}" == /swarm* ]]; then
            npx claude-flow@v3alpha github handle-comment \
              --pr ${{ gi
View full source on GitHub →

Other subagents