Show HN: Open-source Deterministic Guardrails Against AI Duplicated Code
Category: devtools
Tags: duplicate-code-detection, rust, code-quality, ai-code-review, static-analysis
Score: 7.5/10 (Innovation: 7, Technical: 8, Documentation: 8, Utility: 7)
dupehound is a deterministic duplicate-code detector that fingerprints function structure (not text) using tree-sitter and winnowing, making it resilient against AI-renamed copies. It provides scan, history, and CI-check commands, and benchmarks show it outperforms LLM agents at detecting duplicated functions at scale, with zero false positives and sub-second runtime.
Target audience: backend devs, devops, AI-agent developers
Repository: https://github.com/Rafaelpta/dupehound · Rust · MIT · 74 stars
View on Hacker News