wolverine  by biobootloader

Tool for regenerative healing of Python scripts using GPT

created 2 years ago
5,149 stars

Top 9.9% on sourcepulse

GitHubView on GitHub
Project Summary

Wolverine provides "regenerative healing" for Python scripts by automatically fixing crashes using GPT-4. It's designed for developers who want to improve script resilience and reduce debugging time, especially when dealing with complex or numerous bugs.

How It Works

Wolverine executes a Python script, captures any exceptions and stack traces, and then sends this information to GPT-4. The model analyzes the error and generates code edits to fix the bug. Wolverine then applies these edits to the original script and reruns it, repeating the process until the script executes successfully. This iterative approach aims to resolve multiple bugs automatically.

Quick Start & Requirements

  • Install: pip install -r requirements.txt
  • Prerequisites: Python 3.x, OpenAI API key (add to .env file).
  • Usage: python -m wolverine examples/buggy_script.py "subtract" 20 3
  • More info: Twitter demo video

Highlighted Details

  • Automatically reruns scripts until fixed.
  • Supports GPT-4 (default) and GPT-3.5-turbo.
  • Optional --confirm=True flag for manual approval of edits.

Maintenance & Community

This project is marked as DEPRECATED and suggests trying Mentat instead. Future plans mentioned in the README are unlikely to be implemented.

Licensing & Compatibility

The README does not specify a license.

Limitations & Caveats

The project is deprecated. It may struggle with code indentation issues and is limited to Python scripts. Handling large files or multiple codebases is not explicitly addressed.

Health Check
Last commit

1 year ago

Responsiveness

1 week

Pull Requests (30d)
0
Issues (30d)
0
Star History
3 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems) and Travis Fischer Travis Fischer(Founder of Agentic).

LiveCodeBench by LiveCodeBench

0.8%
606
Benchmark for holistic LLM code evaluation
created 1 year ago
updated 2 weeks ago
Starred by Chris Van Pelt Chris Van Pelt(Cofounder of Weights & Biases), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
15 more.

developer by smol-ai

0.1%
12k
Agent for embedding a developer in your app
created 2 years ago
updated 1 year ago
Feedback? Help us improve.