{"repo":"Rafaelpta/dupehound","free":true,"listed":false,"github":"https://github.com/Rafaelpta/dupehound","clone":"git clone https://github.com/Rafaelpta/dupehound.git","description":"Finds the code your AI wrote twice. Fast, offline duplicate-code detector: scan, history chart, CI gate. No AI required.","language":"Rust","stars":87,"topics":["ai","cli","code-quality","developer-tools","duplicate-detection","rust","static-analysis","tree-sitter"],"license":"MIT","category":"dev-tools","readme_excerpt":"dupehound Finds functions duplicated by AI, even after every identifier is renamed. dupehound is a duplicate-code detector built for codebases where agents write most of the code. It finds functions that exist more than once, even after every identifier and literal has been renamed, because it fingerprints the structure of the code instead of its text. Command What it does --------- -------------- scan reports every duplicate cluster and a repo-level slop score history charts duplication across the git log and pinpoints when it took off check fails CI when a change duplicates code that already exists, naming the original to reuse Everything runs locally and deterministically (no network, API keys, or AI required). Numbers We planted 39 known duplicate function pairs (mostly renamed copy-paste, the bulk of real duplication) in real code from microsoft/vscode, a 3.3-million-line TypeScript codebase, and grew the host from 10,000 to 1,000,017 lines. Each system was scored on what it recovers: dupehound, and three Claude agents (Haiku 4.5, Sonnet 4.6, Opus 4.8) given the same read-only file tools (glob, grep, read), two runs per model per size. Exact host sizes and the full repository breakdown are in the writeup. pairs recovered (of 39) 10k LOC 100k LOC 1M LOC time at 1M cost at 1M --- --: --: --: --: --: dupehound 36 36 36 0.74 s $0 Claude Haiku 20 16 6 276 s $0.65 Claude Opus 22 13 0 820 s $2.54 Claude Sonnet 19 0 did not finish did not finish did not finish Agent figures are ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Rafaelpta","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Rafaelpta/dupehound/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}