wolverine logo

wolverine

Free

5.2k

FreeFree tier
Inputs: textOutputs: text
Type
Open Source

About wolverine

Wolverine is an open-source Python tool that automatically repairs buggy scripts by leveraging OpenAI's GPT-4 language model. When a script crashes, Wolverine captures the error, sends it along with the code to GPT-4, and applies the model's suggested edits to fix the bug. It then re-runs the script, repeating this process until the script executes successfully or a retry limit is reached. The tool is designed for developers who want to experiment with AI-assisted debugging and code repair, though it is noted as deprecated in favor of a newer project called Mentat.

Key Features

Automatically repairs Python scripts after crashes using GPT-4
Repeatedly runs and fixes scripts until they execute without errors
Provides explanations of what went wrong with each fix
Supports GPT-3.5-turbo as an alternative model
Optional confirmation mode to approve changes before they are applied
Configurable retry limit for API calls
Open-source and free to use (requires own OpenAI API key)

Pros & Cons

Pros
  • Open-source and free to use (only requires an OpenAI API key)
  • Automates the debugging loop, saving manual effort
  • Provides explanations for each fix, aiding learning
  • Configurable model and confirmation settings
  • Lightweight and easy to set up from the GitHub repository
Cons
  • Deprecated in favor of Mentat; no longer actively maintained
  • Requires an OpenAI API key and incurs API costs (especially with GPT-4)
  • May make many repeated API calls, potentially increasing costs
  • Limited to Python scripts only
  • Output quality depends on the underlying model's ability to generate correct fixes

Best For

Automated debugging of Python scripts during developmentLearning from AI-generated explanations of code errorsRapid prototyping where manual debugging is time-consumingExperimenting with LLM-based code repair techniquesEducational demonstrations of AI-assisted programming

FAQ

What does Wolverine do?
Wolverine automatically fixes Python scripts that crash by using GPT-4 to suggest and apply code edits, then re-runs the script until it succeeds.
Is Wolverine free to use?
The tool itself is open-source and free, but it requires an OpenAI API key, and usage of the API incurs costs based on OpenAI's pricing.
Can I use a different model besides GPT-4?
Yes, you can specify GPT-3.5-turbo via the command line or environment variable, though the developer warns that other models may not adhere to the edit format as well.
Does Wolverine require confirmation before making changes?
By default, changes are applied automatically, but you can enable confirmation mode with the --confirm=True flag to approve each edit.
Is Wolverine still maintained?
The repository notes that Wolverine is deprecated and recommends using Mentat instead. No further updates are expected.
What programming languages does Wolverine support?
Based on available information, Wolverine is designed specifically for Python scripts.