#126 · Primary category: AI Coding Assistants

jscpd

ai clones-detection code-quality coding-agents copy-paste copy-paste-detection cpd detector dry duplicates duplications mcp quality skill skills

Copy/paste detector for programming source code, supports 223 formats. AI-ready with token-efficient reporter, skill and MCP server.

Project last updated:08/29/26

GitHub Stars

6.1K

Forks

257

Contributors

77

License

MIT

Why we included this project

Codebases accumulate duplicate blocks faster than most teams notice, and jscpd exists to catch them. It scans source files in over 200 formats using the Rabin-Karp algorithm, so you get a precise list of copy-pasted regions instead of a vague quality score. The project ships a TypeScript engine and a Rust rewrite that runs 24 to 37 times faster, which keeps it cheap enough to run in CI or as a pre-commit hook. It also fits AI-assisted workflows: an MCP server and agent skills let coding assistants run duplication checks themselves, and a token-efficient reporter keeps findings compact enough to fit an LLM context window. For teams enforcing DRY discipline or adding quality gates around AI-generated code, this is a concrete, scriptable tool you can wire into your pipeline.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category