It's an automatic bug detector for GitHub CI, leveraging OpenAI's GPT-3.5 Turbo. It adds an extra layer of scrutiny to every commit, surpassing the capabilities of local IDE checks. I've found it invaluable for my own projects and believe it can benefit teams too. It's currently in its early stages, so proceed with a bit of caution and don't hesitate to share your feedback. You're welcome to contribute (MIT).
Since you say you've found it invaluable for your own projects, can you explain why? What bugs has it found for you that you wouldn't immediately notice by running code or unit tests?<p>I ask because in the example, you ask it to find bugs in a script that <i>immediately</i> fails when you run it. So I'm not sure what the value add is here.<p><pre><code> $ ipython
Python 3.11.3 (main, Apr 7 2023, 21:05:46) [Clang 14.0.0 (clang-1400.0.29.202)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.13.2 -- An enhanced Interactive Python. Type '?' for help.
In [1]: def greet(name, age):
...: print("hello, my name is {} and I am {} years old".format(name))
...:
In [2]: greet("John", 25)
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
Cell In[2], line 1
----> 1 greet("John", 25)
Cell In[1], line 2, in greet(name, age)
1 def greet(name, age):
----> 2 print("hello, my name is {} and I am {} years old".format(name))
IndexError: Replacement index 1 out of range for positional args tuple
</code></pre>
EDIT: For anyone else who is wondering, this is just:<p>system prompt:<p><pre><code> Find bugs in the user's code.
- Format results as JSON like so:
[{"line":1,"reason":"short reason", "type":"type"},...]
- It is better to return an empty array than a mistake (not really a bug).
</code></pre>
user prompt:<p><pre><code> Here is my code:
${source_code}
JSON Result:
</code></pre>
@funerr why would you even create this and post it here? Is it just to try to market your newsletter? Who do you think would look at this and be impressed?