I saw the ‘<AI found a bug in my code>’ on HN and ...
# share-your-work
k
I saw the ‘AI found a bug in my code’ on HN and I wanted to try this out on my code. Since the tool was not open sourced, I decided to build it from scratch myself 👨‍💻😅. So I present to you Suspicious (https://github.com/sturdy-dev/suspicious) It’s a fully local CLI app which analyses your source code file. It then shows you specific parts of the code where it would have done something else. Demos & screenshots in the GitHub readme. Let me know if it catches anything good for you 🙂
d
I tried it - there's a lot of downloading! And to be honest, it didn't highlight anything that worried me. Sorry to seem negative, but there it is! 🤗
What is it downloading after running
sus
?
k
d
It was 500Mb
sus
uses the decoder of UniXcoder, specifically the unixcoder-base-nine checkpoint. What's cool is that it's only 500 MB and ~120M parameters, which means it's quick to download and fast enough to run locally.
Ah ↑↑
b
Super interesting. I would love a Autopilot alternative
k
Hey, sorry, I will highlight more prominently in the readme that a model is being downloaded. It’s kind of the tradeoff for being able to execute everything locally.
Building this application got me to realise that the way current models (this and other ones like Codex used by Copilot) can mostly serve as typing automation because of the way tokenisation is done
b
As apposed to something else? A static recommendation on all the code base?
Would be nice to get recommended differing ways of doing the same thing…