Copy-paste twins
Renamed, reformatted, reborn. Dedup spots code that looks almost the same, even when identifiers, whitespace, and small details have shifted.
Dedup // GitHub Duplicate-code Bot
The state-of-the-art code deduplication bot for GitHub. Reviews every pull request, surfaces code you or your AI agent already wrote, and pinpoints exactly where it lives.
One-click install· No YAML· Zero config
02 //What it sees
Duplicate code rarely announces itself. Sometimes it is copy-paste with new names. Sometimes it is the same idea rebuilt in a different file. Dedup hunts both.
Renamed, reformatted, reborn. Dedup spots code that looks almost the same, even when identifiers, whitespace, and small details have shifted.
Different syntax. Identical intent. Dedup reads behavior, not just tokens, then writes a one-paragraph brief any reviewer can act on.
03 //How it lands
Dedup watches new PRs, compares changed code against the existing repository, and only comments when there is something useful to fix. No noise. No throat-clearing.
Step 01 // Install
Pick the repos Dedup should watch. No workflow file, no permissions you don't need.
Step 02 // Open PR
Dedup checks the diff against the rest of the project, from syntax to meaning.
Step 03 // Ship clean
Each comment links to the older code and explains why it looks reusable.
04 //Signal
Line Reviewed
...
Repos indexed
...
PRs analyzed
...
Duplicates verified
...
05 //Pricing
Keep your first repositories clean today. Pro will unlock higher pull request volume for teams that want Dedup on every busy codebase.
Free
$0 / month
Pro
$10 / month
06 //Examples
These are real GitHub PRs in public forks, kept open for inspection.
Engineers care about DRY code because duplication compounds quietly. AI coding agents make that easier to miss: they can solve the local task without knowing that a helper, parser, or formatter already exists elsewhere in a large repository. A few copied ideas are manageable at first. Over months, they turn into bloated modules, inconsistent fixes, and cleanup work no one planned. Dedup reviews each pull request with repository-wide context so reviewers can catch that drift while the change is still small.
Type 1 // Exact
Verbatim helper logic copied into an existing TypeScript file.
Open exampleType 2 // Renamed
Identifier and literal normalization catches the disguised duplicate.
Open exampleType 3 // Near miss
Tree and token windows flag a modified Rust formatting helper.
Open exampleType 4 // Semantic
A rewritten Go helper performs the same RGB-to-HSL conversion.
Open example07 //FAQ
Data access
Only the repository and pull request context needed to compare new code with existing code.
Reviews
No. Dedup is designed to comment only when a duplicate looks useful for a reviewer to act on.
Billing
Not yet. Pro plans are coming soon for teams that need higher monthly PR volume.
08 //Ship it
Free tier includes 5 PR analyses per month per repo · Pro plans are coming soon