talira

Copy/paste detector for source code in 224 languages, with an MCP server for AI agents

open sourceMITfreeMCP

jscpd finds duplicated code in 224 languages and fails the build when duplication passes a threshold you set. It reports exact copies by default and, on request, renamed clones, near-miss clones (with gaps or by syntax-tree similarity) and experimental semantic clones found with a local code embedding model, even across languages. Boundary rules keep a module's code from being copied elsewhere, and it also finds dead code, ranks complexity, shows a health dashboard and charts duplication over git history. It's a single native Rust binary installed by script, npm, pip, cargo, Homebrew, nix or Docker, runs as a pre-commit hook, a GitHub Action or in GitLab CI with SARIF and HTML reports, has VS Code and JetBrains extensions, and serves coding agents over MCP with five companion skills and a token-saving AI reporter.

Problems it solves

  • find copy-pasted code in my codebase
  • fail CI when code duplication goes above a threshold
  • stop AI coding agents from duplicating helpers that already exist
  • find renamed or slightly edited copies of functions
  • find unused files and exports in a TypeScript project
  • track whether code duplication is going up over time
  • check how much of a port from Python to TypeScript is done

Features

  • exact, renamed, near-miss and semantic clone detection
  • 224 languages
  • duplication threshold to fail builds
  • boundary rules for protected code
  • dead code detection for JavaScript, TypeScript and Python
  • complexity ranking and a 0-100 health dashboard
  • duplication history over git commits
  • compare two codebases function by function
  • SARIF, HTML, badge and AI reporters
  • GitHub Action, GitLab CI and pre-commit
View 2 more
  • MCP server over stdio and five agent skills
  • VS Code and JetBrains extensions

Capabilities

Has a command line toolplan not known
Has an MCP serverplan not known

Alternatives

The same job

These do what jscpd does.

  1. SonarQube Code confidence for the agentic software factory

Compare jscpd with the top 3