Over the last few weeks I have been working on (vibecoding) a project called SIR-Engine. It can detect when 2 functions or classes implement the same logic even if they have different names, variable names, and even if they are written in different languages. A java and python function that do the same thing produce the same hash.
This week I kind of had the idea to make it a tool that an AI (like claude code) can use on the code it generates. I learned that is called an MCP server. So before creating new functions it checks if the logic as already been used before in your codebase, and if it is then the AI will just reuse it.
I also added duplicate class detection this week too using Merkle Tree hashing which I came up with independently!
I'm a biomedical engineering student at Ohio State. Started this about two weeks ago. Totally free for any personal or open source projects!
Happy to answer any questions about how it works!