duplicate-pr — Claude Code subagent: find related PRs
duplicate-pr searches open pull requests for work that may overlap with a newly opened PR. Use it to spot possible duplicates before reviewing the change.
LicenseRef-Proprietary ★ 7,523 updated 2026-10-29
.claude/agents/duplicate-pr.mdWhat duplicate-pr does
The subagent searches with terms taken from a PR’s title and description, trying different queries to find open requests that may address the same issue or feature. It reports candidates with their titles, URLs, and a brief reason for the match. When it finds none, it returns a short no-match response.
Its only enabled search tool is github-pr-search. The current request number arrives as CURRENT_PR_NUMBER: NNNN, so it can exclude that PR from its own results. Search depends on access to this tool.
What it helps with
- find an open PR addressing the same issue
- check whether another PR covers a similar feature
- compare a new pull request with related open work
Example prompts for the agent
- Check whether any open PRs address the same issue as this one.
- Search for open pull requests related to this PR’s description.
- Look for similar open PRs using this request’s title and description.
How to install duplicate-pr
Manually: put the files in place
.claude/agents/duplicate-pr.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/duplicate-pr.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/duplicate-pr.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 duplicate-pr
How do I install duplicate-pr in Claude Code?
Create .claude/agents/duplicate-pr.md and add the subagent configuration to that file.
What does duplicate-pr do?
It searches open pull requests for possible overlap with the current PR, then lists candidates and explains the connection.
Which tool does duplicate-pr use to search?
It uses github-pr-search. The current PR number is supplied so the agent can leave that request out of its results.