Deslop for VS CodeClean up the duplicate code in your repo, and stop your coding agents from writing more. Deslop finds copied and near-copied code across your workspace and ranks it worst first, so you know what to remove. While you or your agent edit, it flags new code that duplicates something that already exists. It is an open-source alternative to jscpd that runs live in the editor and inside the agent loop. Watch the narrated demo · Supported languages Clean up what's there
Stop new duplicates
Agents outside VS CodeClaude Code, Claude Desktop, Codex, Cursor and Continue need the absolute path to the
Update How it comparesDeslop parses code with tree-sitter and compares syntax trees, not token streams. That lets it report copies with renamed identifiers, changed literals or inserted statements as well as exact ones. Deslop is tested against judged clone registers: code pairs from pinned open-source repositories that a reviewer has marked as real copies or not copies. A missed real copy counts as a false negative, and a reported non-copy counts as a false positive. Accuracy Transparency explains the scoring and how the duplication percentage is calculated. No head-to-head benchmark against jscpd or other duplicate detectors has been published yet, so we make no claim that Deslop is more accurate than they are. The register results cover only the judged examples. Install
The extension ships its own binaries, so nothing is downloaded after install. Settings live under Deslop in the Settings UI. LicenseMIT. |
