jscpd hunts down duplicated blocks across 150+ languages. Powered by the Rabin-Karp algorithm for blazing speed, it works seamlessly in your CI/CD pipeline and now features native MCP Server and AI agent integrations for LLM-assisted refactoring.
No reviews yetBe the first to leave a review for jscpd
Maker
📌
Hi Product Hunt! 👋 I’m Andrey, the creator of jscpd.
I’ve been building software for over two decades, and if there's one universal truth I've learned, it's that every copy-pasted block of code is just a bug waiting to happen twice.
I originally built jscpd back in 2013 to solve this exact problem. Over the years, it has grown into a mature, blazing-fast CLI tool trusted by thousands of teams, hitting over 20M+ downloads. It speaks over 150 languages (even your YAML configs aren't safe!) and catches tech debt before it merges.
So, why launch today? > Because software development is fundamentally changing, and our tools need to evolve. We are entering the era of AI-native development, so I have completely upgraded jscpd to empower both human developers and AI coding assistants.
Here is what’s new:
🤖 MCP Server: Claude and other AI assistants can now check your code for duplications directly using the Model Context Protocol.
📉 AI Reporter: A new compact output format that saves ~79% of tokens, making it ideal for piping directly into LLMs.
🛠️ Agent Skill: You can now install a skill for your AI coding assistant to automatically detect and refactor duplications with one command.
I’d love to hear your feedback on the new AI integrations, how you handle code duplication in your teams, and what you’d like to see next! I'll be here all day answering questions.
Happy hunting! 🚀