3 comments

  • rkochanowski2 hours ago
    I built Slopo to solve one specific problem: finding similar code that is hardest to detect by other tools, coding AI agents, and humans.<p>It finds similar-looking code with embeddings. This detects more than just copy-paste clones or even clones with minor changes. Similar code is often not a clone to refactor, and this is a trade-off. Initial results need to be verified, but coding agents can do this quickly. Example prompts are available on <a href="https:&#x2F;&#x2F;slopo.dev" rel="nofollow">https:&#x2F;&#x2F;slopo.dev</a><p>Additionally, similar code distant in the codebase is ranked higher to focus on less obvious duplication.<p>The results differ a lot depending on the codebase. I noticed that sometimes most of the detected duplicates are false positives, but the remaining ones are strong candidates to refactor or even bugs. Sometimes it reveals much more real duplication.
    • realxrobau1 hour ago
      If it did PHP I would love to run it over WordPress. What would it take to add that?
      • rkochanowski1 hour ago
        PHP support can be easily added, I will release a new version soon.
  • murats56 minutes ago
    Nice idea. I can see this being useful before refactors, especially when the duplication is semantic rather than copy paste.
  • NYCHMPAI57 minutes ago
    [flagged]