News for hackers. Stuff that matters.
Re:Welcome to Gas Town by shepherdjerred on Tuesday January 06, 2026 @02:04AM (#46509515)
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

Re:Welcome to Gas Town by rlt on Tuesday January 06, 2026 @07:14PM (#46520818)
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?
Re:Welcome to Gas Town by shepherdjerred on Tuesday January 06, 2026 @07:21PM (#46520868)
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...