Live duplicate and dead code analysis inside your IDE. Inline warnings as you type, worst-offender view, and a live channel your AI agent can consult before it copy-pastes.
Install for VS Code · Add to GitHub Actions · Documentation · Releases
Install Deslop Live from the VS Code Marketplace, then open a supported codebase. Deslop starts automatically and updates its findings as the code changes.
You can also install a platform-specific VSIX from the releases page:
code --install-extension deslop-live-X.Y.Z-<target>.vsixThe extension bundles the LSP server, MCP server, and CLI. JetBrains support is in development.
- uses: actions/checkout@v4
- uses: Nimblesite/Deslop@v0.27.0
with:
fail-over: "5.0" # fail above 5% duplicated linesThe action analyses the workspace, uploads JSON, text, and HTML reports, and
fails the job if duplication exceeds the threshold. It needs no token and only
the default contents: read permission.
See the GitHub Action reference for all inputs, outputs, supported runners, and threshold rules.
Install the CLI and run:
deslop . --fail-over 5.0Exit code 3 means the duplication threshold was breached. Reports are still
written so the pipeline can expose the offenders.
# macOS / Linux
brew install nimblesite/tap/deslop
# Windows
scoop bucket add nimblesite https://github.com/Nimblesite/scoop-bucket
scoop install deslopDeslop parses code with tree-sitter and compares structure instead of merely matching lines. That lets it find exact copies, renamed copies, and similar implementations across a repository.
- In the editor: the LSP shows live findings and comparisons.
- For coding agents: the MCP server lets an agent call
find-similarbefore writing a function, helper, or test setup. - In CI: the CLI produces ranked reports and enforces a duplication ceiling.
All three surfaces use the same analysis engine. The worst offenders come first so the report starts with the cleanup that matters most.
Supported languages: C#, Rust, Python, Dart, JavaScript, TypeScript, TSX, PHP, F#, and Go.
The VS Code extension includes deslop-mcp. Point your MCP-capable agent at the
bundled binary, then add the Deslop agent instruction
to the repository so it checks for similar code before writing.
See AI integration for Claude Code, Cursor, Copilot, Continue, Codex, and other MCP clients.
deslop # scan the current directory
deslop ./my-repo # scan another repository
deslop . --output ./report # write report.json, report.txt, report.htmlConfiguration lives in .deslop.toml. See the
configuration reference and
configuration and reports guide.
Duplicate code is where Deslop starts, not where it ends. The broader goal is to find codebase slop, prevent more from appearing, and help remove it safely. Code removal is a direction of the project, not a shipping capability today.
See the messaging guide and the design specification.
Requires Rust 1.80+ and GNU Make.
make build
make test
make ciRead CLAUDE.md before contributing.
MIT © NIMBLESITE PTY LTD.