jscpd
Active·★ 6.4k·MIT·Updated 2026-10-08
★ Trending★ Essential
jscpd is a powerful copy/paste detector for programming source code, capable of identifying duplicated blocks across more than 225 programming languages and digital formats. It features an AI-ready output, agent skills, and a Rust-powered engine for significantly faster detection performance.
#Code Duplication#Static Analysis#Code Quality#Refactoring#AI-Ready#Multi-language Support#Dev Tooling#Performance
01
Features
01Detects copy/paste duplications in over 225 programming languages and digital formats.
02AI-ready with token-efficient reporter and agent skills for integration into LLM workflows.
03Rust-powered engine (cpd) offers 10-30x faster detection performance.
04Supports Git blame with side-by-side comparison for author attribution in duplicated code.
05Multiple output reporters including console, HTML, JSON, SARIF (GitHub Code Scanning compatible), and custom reporters.
02
Compatibility
Node.js
Runtime
Verified via docs
Rust
Engine
Verified via docs
npm
Package Manager
Verified via docs
GitHub Actions
CI/CD Integration
Verified via docs
LLM / AI Agents
AI Integration
Verified via docs
MacOS
Platform
Verified via docs
03
Quick start
1
$ npm install -g cpd
04
Use cases
↳Identify and eliminate code duplication in large codebases to reduce technical debt and improve maintainability.
↳Integrate into CI/CD pipelines (e.g., GitHub Super Linter) for automated code quality checks and preventing new duplications.
↳Assist AI agents in refactoring tasks by providing token-efficient duplication reports.
↳Generate comprehensive reports (HTML, SARIF) for code auditing and compliance purposes.
↳Use the MCP Server to expose duplication detection capabilities to AI assistants directly from an editor for on-demand checks.
05
Alternatives
Comments
Log in to leave a comment
No comments yet. Be the first!