pr-manager — Claude Code subagent for pull requests
pr-manager coordinates pull request reviews, tests, and merge work through GitHub tools and a swarm of agents. It can also reuse patterns saved from earlier PR tasks.
no license ★ 850 updated 2026-10-26
.claude/agents/pr-manager.mdWhat pr-manager does
pr-manager splits pull request work across agents. It can coordinate code reviews, run checks, track PR status, and help resolve conflicts or choose a merge strategy. GitHub tasks use tools for PR management, code review, and metrics; swarm tools handle agent coordination and task orchestration.
A pre-task hook checks gh authentication, Git status, and open pull requests, then runs npm test. GitHub CLI authentication is required for this check to pass. The agent searches stored patterns for similar work and records outcomes for later use; after a successful task, it can train a pattern through claude-flow.
To install it in Claude Code, place the agent file at .claude/agents/pr-manager.md. Its tool list includes mcp__claude-flow__... and mcp__agentic-flow__... tools, which are needed for the described swarm coordination and pattern storage.
What it helps with
- coordinate several reviewers on a pull request
- run PR checks and tests before merging
- find related changes and potential conflicts
- save a successful PR workflow for later tasks
Example prompts for the agent
- Review the open pull request, run the tests, and prepare a merge recommendation.
- Coordinate agent reviews for these changes and check for likely conflicts.
- Check the current branch’s PR status and save the outcome for future tasks.
How to install pr-manager
Manually: put the files in place
.claude/agents/pr-manager.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/pr-manager.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/pr-manager.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about pr-manager
How do I install pr-manager in Claude Code?
Place the agent file at .claude/agents/pr-manager.md so Claude Code can load it.
What does pr-manager do?
It coordinates pull request reviews, testing, and merge work. It can search stored patterns from earlier tasks and save new outcomes.
What does pr-manager need to check GitHub PRs?
Its hook runs gh auth status and then npm test. The described coordination and pattern storage use MCP tools from claude-flow and agentic-flow.