| |
Show HN: CLI tool for detecting non-exact code duplication with embedding models
Slopo is a CLI tool that detects non-exact code duplication across large codebases by calculating embeddings for code units and identifying similar patterns that are spread apart or implemented differently. Unlike tools that only catch exact copy-paste duplicates, it uses embedding models to find semantically similar code snippets that are hardest to spot manually, supporting multiple programming languages including Python, TypeScript, Java, Go, and Rust. The tool generates ranked clusters of potential duplicates for review by AI agents or developers, with results that can be refined and tracked through an ignore file for refactoring workflows.
Read Full Article →
← More Tech news