# dedupe

dedupe — a command for Claude Code finds matching GitHub issues and posts duplicate references. Runs during repository issue triage.

- command · `type=command` · Claude Code, Codex, GitHub Copilot, Gemini CLI · ★ 156584 repo stars
- Author: anthropics · official Anthropic repository
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/anthropics/claude-code/tree/HEAD/.claude/commands/dedupe.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/commands/dedupe

## What it 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.

## Requirements
- Works with: GitHub

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/commands/dedupe.md` — Call it with /dedupe. For all projects use ~/.claude/commands/

### Codex

**Manually: put the files in place**
- File: `~/.codex/prompts/dedupe.md` — Call it with /prompts:dedupe. Codex marks this format deprecated in favour of skills

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/prompts/dedupe.prompt.md`

### Gemini CLI

**Manually: put the files in place**
- File: `.gemini/commands/dedupe.toml` — Gemini stores commands as TOML: the prompt text goes into the prompt field

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/anthropics/claude-code/tree/HEAD/.claude/commands/dedupe.md

## When to use it
- 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
- /dedupe
- Find duplicates for issue 402
- Check issue 128 for duplicate tickets

## Similar
- [antfu-issue-triage](https://affpapa.org/en/nevibecode/skills/antfu-issue-triage.md) — skill · 413 installs
- [oss-issue-triage](https://affpapa.org/en/nevibecode/skills/oss-issue-triage.md) — skill · 13400 installs
- [github-triage](https://affpapa.org/en/nevibecode/skills/github-triage.md) — skill · 2800 installs
- [github-project-triage](https://affpapa.org/en/nevibecode/skills/github-project-triage.md) — skill · 105 installs
- [issue-maker](https://affpapa.org/en/nevibecode/skills/issue-maker.md) — skill · 1 install
- [backlog-swipe-triage](https://affpapa.org/en/nevibecode/plugins/backlog-swipe-triage.md) — plugin · ★ 41430 repo stars

From the same set: [anthropics/claude-code](https://affpapa.org/en/nevibecode/by/anthropics/claude-code.md) — 2 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
