dedupe — Claude Code command: what it does, how to install
dedupe — a command for Claude Code finds matching GitHub issues and posts duplicate references. Runs during repository issue triage.
LicenseRef-Proprietary ★ 156,584 updated 2026-10-24
.claude/commands/dedupe.mdWhat dedupe does
The command checks a GitHub issue and locates up to three potential duplicates across the repository. It skips tickets that are already closed, contain generic feedback without concrete fixes, or already have a duplicate notice.
An agent first drafts a summary of the issue. After that, five parallel agents run GitHub queries with distinct keyword sets. Another agent reviews the collected candidates to discard false positives. If matches remain, the command links them in a comment.
Execution depends strictly on local ./scripts/gh.sh and ./scripts/comment-on-duplicates.sh files. Standard gh binary calls and external tools are blocked.
What it helps with
- find duplicate GitHub issues
- filter out false positive ticket matches
- post duplicate links using a repository script
- skip closed discussions and generic feedback
Example prompts for the agent
- /dedupe
- Find duplicates for issue 402
- Check issue 128 for duplicate tickets
How to install dedupe
Manually: put the files in place
.claude/commands/dedupe.mdCall it with /dedupe. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/dedupe.mdCall it with /prompts:dedupe. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/dedupe.prompt.mdManually: put the files in place
.gemini/commands/dedupe.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about dedupe
How to install dedupe in Claude Code?
Save the command file to .claude/commands/dedupe.md.
What does dedupe do?
It summarizes a GitHub issue, searches for matches using parallel agents, and comments with up to three potential duplicates.
What is required to run dedupe?
The repository must include ./scripts/gh.sh and ./scripts/comment-on-duplicates.sh. The command disallows raw gh calls and other external tooling.