Developer BioBootloader has unveiled the Wolverine project, which gives Python programs “the ability to regenerate,” just like the Marvel superhero of the same name. To fix the code, Wolverine uses the GPT-4 language model. The project code is available on GitHub and the technique can be applied to other programming languages. Wolverine requires an OpenAI API key for GPT-3.5 or GPT-4, which is available by subscription. The GPT 3.5 API is open to anyone with an OpenAI account, however access to GPT-4 is still limited to a waiting list.
When running Python scripts with Wolverine, GPT-4 edits them and explains any errors. If there are multiple errors, the AI will keep restarting until everything is fixed. In the demo video, the developer shows a window with Python code on the left and Wolverine output on the right. It loads its own calculator script, which has a few bugs on purpose, and then executes it. On exit, GPT-4 returns an explanation of the errors found, shows the changes it is trying to make, and then restarts the program. Having found new errors, the AI again corrects the code, which eventually works correctly, and as a result, the source file contains the changes made by Wolverine.