Hacker News new | ask | show | jobs
by shepherdjerred 162 days ago
Static analysis helps a lot. For example, I use jscpd [0] to solve the problem of AI duplicating code.

[0] https://github.com/kucherenko/jscpd

1 comments

What's the process for getting an agent like Claude Code to use jscpd effectively? I assume it's just another tool call with some basic prompting?
I have it as a pre commit hook and also runs in CI. I also wrote an eslint plugin

https://github.com/shepherdjerred/scout-for-lol/blob/main/es...