PulseAugur
EN
LIVE 02:07:52

New tool dry-mcp ranks code duplication by meaning, not just tokens

Developer J. Gauffin has created a new tool called dry-mcp, designed to identify and rank duplicated code based on its semantic meaning rather than just token similarity. Unlike traditional tools like SonarQube that focus on exact token matches and can miss renamed code, dry-mcp uses embeddings from the jina-embeddings-v2-base-code model to detect code blocks that perform similar functions, even across different languages. The tool prioritizes fixes by ranking duplication based on the cost of maintenance, demoting common language idioms and small, frequent repetitions. AI

IMPACT Offers developers a more intelligent way to manage code duplication, potentially improving maintainability and reducing bugs.

RANK_REASON New software tool release for code analysis.

Read on dev.to — MCP tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

New tool dry-mcp ranks code duplication by meaning, not just tokens

COVERAGE [1]

  1. dev.to — MCP tag TIER_1 English(EN) · Jonas Gauffin ·

    Stop counting duplicated lines: I rank copy-paste by what it costs me

    <p>Every CI pipeline I have worked with had a duplication report. I cannot remember the last time I read one.</p> <p>The number moves from 4.2% to 4.5%, a list of blocks shows up, and half of them are constructors, guard clauses and property mappings that look alike because that …