Skip to main content
command CX Codex official · Anthropic

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/dedupe.md
Open on GitHub

What 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.md

Call it with /dedupe. For all projects use ~/.claude/commands/

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.

Similar slash commands

All slash commands for Git and GitHub →

From the same set2

More in the catalog

Project sponsors

Companies that keep this analytics open