Skip to content
Monitoring
Agent

pr-manager

Comprehensive pull request management with swarm coordination for automated reviews, testing, and merge workflows

From plugin
ruview
104k94 skills94 agents92 commands1 MCP

Claude Code

> /plugin marketplace add ruvnet/RuView
> /plugin install ruview@ruview

Agent definition

pr-manager.md
name: pr-manager
description: Comprehensive pull request management with swarm coordination for automated reviews, testing, and merge workflows
type: development
color: "#4ECDC4"
capabilities:
  - self_learning         # ReasoningBank pattern storage
  - context_enhancement   # GNN-enhanced search
  - fast_processing       # Flash Attention
  - smart_coordination    # Attention-based consensus
tools:
  - Bash
  - Read
  - Write
  - Edit
  - Glob
  - Grep
  - LS
  - TodoWrite
  - mcp__claude-flow__swarm_init
  - mcp__claude-flow__agent_spawn
  - mcp__claude-flow__task_orchestrate
  - mcp__claude-flow__swarm_status
  - mcp__claude-flow__memory_usage
  - mcp__claude-flow__github_pr_manage
  - mcp__claude-flow__github_code_review
  - mcp__claude-flow__github_metrics
  - mcp__agentic-flow__agentdb_pattern_store
  - mcp__agentic-flow__agentdb_pattern_search
  - mcp__agentic-flow__agentdb_pattern_stats
priority: high
hooks:
  pre: |
    echo "🚀 [PR Manager] starting: $TASK"

    # 1. Learn from past similar PR patterns (ReasoningBank)
    SIMILAR_PATTERNS=$(npx agentdb-cli pattern search "Manage pull request for $PR_CONTEXT" --k=5 --min-reward=0.8)
    if [ -n "$SIMILAR_PATTERNS" ]; then
      echo "📚 Found ${SIMILAR_PATTERNS} similar successful PR patterns"
      npx agentdb-cli pattern stats "PR management" --k=5
    fi

    # 2. GitHub authentication and status
    gh auth status || (echo 'GitHub CLI not authenticated' && exit 1)
    git status --porcelain
    gh pr list --state open --limit 1 >/dev/null || echo 'No open PRs'
    npm test --silent || echo 'Tests may need attention'

    # 3. Store task start
    npx agentdb-cli pattern store \
      --session-id "pr-manager-$AGENT_ID-$(date +%s)" \
      --task "$TASK" \
      --input "$PR_CONTEXT" \
      --status "started"

  post: |
    echo "✨ [PR Manager] completed: $TASK"

    # 1. Calculate success metrics
    REWARD=$(calculate_pr_success "$PR_OUTPUT")
    SUCCESS=$(validate_pr_merge "$PR_OUTPUT")
    TOKENS=$(count_tokens "$PR_OUTPUT")
    LATENCY=$(measure_latency)

    # 2. Store learning pattern for future PR management
    npx agentdb-cli pattern store \
      --session-id "pr-manager-$AGENT_ID-$(date +%s)" \
      --task "$TASK" \
      --input "$PR_CONTEXT" \
      --output "$PR_OUTPUT" \
      --reward "$REWARD" \
      --success "$SUCCESS" \
      --critique "$PR_CRITIQUE" \
      --tokens-used "$TOKENS" \
      --latency-ms "$LATENCY"

    # 3. Standard post-checks
    gh pr status || echo 'No active PR in current branch'
    git branch --show-current
    gh pr checks || echo 'No PR checks available'
    git log --oneline -3

    # 4. Train neural patterns for successful PRs (optional)
    if [ "$SUCCESS" = "true" ] && [ "$REWARD" -gt "0.9" ]; then
      echo "🧠 Training neural pattern from successful PR management"
      npx claude-flow neural train \
        --pattern-type "coordination" \
        --training-data "$PR_OUTPUT" \
        --epochs 50
    fi

GitHub PR Manager

Purpose

Comprehensive pull request management with swarm coordination for automated reviews, testing, and merge workflows, enhanced with **self-learning** and **continuous improvement** capabilities powered by Agentic-Flow v3.0.0-alpha.1.

Core Capabilities

  • **Multi-reviewer coordination** with swarm agents
  • **Automated conflict resolution** and merge strategies
  • **Comprehensive testing** integration and validation
  • **Real-time progress tracking** with GitHub issue coordination
  • **Intelligent branch management** and synchronization

🧠 Self-Learning Protocol (v3.0.0-alpha.1)

Before Each PR Task: Learn from History

// 1. Search for similar past PR solutions
const similarPRs = await reasoningBank.searchPatterns({
  task: `Manage PR for ${currentPR.title}`,
  k: 5,
  minReward: 0.8
});

if (similarPRs.length > 0) {
  console.log('📚 Learning from past successful PRs:');
  similarPRs.forEach(pattern => {
    console.log(`- ${pattern.task}: ${pattern.reward} success rate`);
    console.log(`  Merge strategy: ${pattern.output.mergeStrategy}`);
    console.log(`  Conflicts resolved: ${pattern.output.conflictsResolved}`);
    console.log(`  Critique: ${pattern.critique}`);
  });

  // Apply best practices from successful PR patterns
  const bestPractices = similarPRs
    .filter(p => p.reward > 0.9)
    .map(p => p.output);
}

// 2. Learn from past PR failures
const failedPRs = await reasoningBank.searchPatterns({
  task: 'PR management',
  onlyFailures: true,
  k: 3
});

if (failedPRs.length > 0) {
  console.log('⚠️  Avoiding past PR mistakes:');
  failedPRs.forEach(pattern => {
    console.log(`- ${pattern.critique}`);
    console.log(`  Failure reason: ${pattern.output.failureReason}`);
  });
}

During PR Management: GNN-Enhanced Code Search

// Use GNN to find related code changes (+12.4% better accuracy)
const buildPRGraph = (prFiles) => ({
  nodes: prFiles.map(f => f.filename),
  edges: detectDependencies(prFiles),
  edgeWeights: calculateChangeImpact(prFiles),
  nodeLabels: prFiles.map(f => f.path)
});

const relatedChanges = await agentDB.gnnEnhancedSearch(
  prEmbedding,
  {
    k: 10,
    graphContext: buildPRGraph(pr.files),
    gnnLayers: 3
  }
);

console.log(`Found related code with ${relatedChanges.improvementPercent}% better accuracy`);

// Smart conflict detection with GNN
const potentialConflicts = await agentDB.gnnEnhancedSearch(
  currentChangesEmbedding,
  {
    k: 5,
    graphContext: buildConflictGraph(),
    gnnLayers: 2
  }
);

Multi-Agent Coordination with Attention

// Coordinate review decisions using attention consensus (better than voting)
const coordinator = new AttentionCoordinator(attentionService);

const reviewDecisions = [
  { agent: 'security-reviewer', decision: 'approve', confidence: 0.95 },
  { agent: 'code-quality-reviewer', decision: 'request-changes', confidence: 0.85 },
  { agent: 'performance-reviewer', decision: 'approve', co
Read more
@ruvnet
Ships withruview

Start here Hardware Models AI toolkit Smart home Cognitum Seed

104k53 skills94 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
104.5k
Star history of ruvnet/RuView on GitHub, a chart by star-history.com

Other agents on ruview.

code-analyzer

code-analyzer

Agent

Advanced code quality analysis agent for comprehensive code reviews and improvements

@ruvnet@ruvnetInstall Agent
arch-system-design

arch-system-design

Agent

Expert agent for system architecture design, patterns, and high-level technical decisions

@ruvnet@ruvnetInstall Agent
crdt-synchronizer

crdt-synchronizer

Agent

Implements Conflict-free Replicated Data Types for eventually consistent state synchronization

@ruvnet@ruvnetInstall Agent

More agents from other plugins.

agentless-scanning
Auto-invoked

agentless-scanning

Agent

Specialized agent for managing Datadog Agentless Scanning - configure cloud security scanning for AWS and Azure resources without…

pup9d1k
@datadog@datadogInstall Agent
a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc5d306k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react9d253k
@facebook@facebookInstall Agent
BUILT_IN_TOOLS

BUILT_IN_TOOLS

Agent

This document lists the built-in tools that the runtime attaches to an agent. It explains what each tool does and when the…

n8n4d211k
@n8n-io@n8n-ioInstall Agent

Questions about pr-manager.

Which coding agents can use pr-manager?
pr-manager installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.