Skip to content
View BugRescue's full-sized avatar
  • Joined Feb 2, 2026

Block or report BugRescue

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
BugRescue/README.md

🐞 BugRescue

License: MIT Python 3.10+ Docker Ready Powered By

"Your Autonomous Code Surgeon." BugRescue finds crashes, compiles code, and fixes bugs in real-time using local AI.


⚑ Why BugRescue?

Most tools just tell you what's wrong. BugRescue fixes it. It runs your code, watches it crash, analyzes the stack trace, and rewrites the source code until it passes.

Language Support Level
Python πŸ”₯ Full Support (Runtime & Logic)
JavaScript ⚑ Node.js Runtime Support
Go / Rust πŸ¦€ Compilation & Concurrency
C++ / Java β˜• Memory Safety & Null Checks

πŸš€ Instant Start

🐳 Option A: Docker (Recommended)

Zero setup. Runs in an isolated container with all compilers (Rust, Go, Java) pre-installed.

docker run --rm -it \
  -v $(pwd):/code \
  -e OLLAMA_URL="[http://host.docker.internal:11434/api/generate](http://host.docker.internal:11434/api/generate)" \
  bugrescue/engine /code

🐍 Option B: Manual Install

Use this if you want to run it directly on your machine. Prerequisites: Python 3.10+, Ollama running locally.

# 1. Clone the repo
git clone [https://github.com/BugRescue/bug-rescue.git](https://github.com/BugRescue/bug-rescue.git)
cd bug-rescue

# 2. Install dependencies
pip install -r requirements.txt

# 3. Run the Rescue Agent
python3 bug_rescue.py /path/to/your/broken/project

πŸ“Š Key Features

  • πŸ›‘οΈ Auto-Backup: Never lose code. Before touching any file, a snapshot is saved to .bugrescue_backups/.
  • πŸ“ˆ HTML Dashboard: Generates a visual report (bugrescue_report.html) after every run showing pass/fail stats.
  • πŸ§ͺ Dry-Run Mode: Use the --dry-run flag to see exactly what the AI would fix without actually modifying your files.
  • 🧠 Local & Private: Powered by Ollama. Your code never leaves your machine.

πŸ› οΈ Usage & Flags

usage: bug_rescue.py [-h] [--dry-run] path

positional arguments:
  path        Project path to scan (e.g., ./my-project)

options:
  -h, --help  show this help message and exit
  --dry-run   Audit only. Generates report but does not edit files.

🧠 Supported Vulnerabilities

BugRescue is trained to detect and fix:

  • Security: SQL Injection, Hardcoded Secrets, Insecure Randomness.
  • Concurrency: Race Conditions (Go/Rust), Deadlocks.
  • Logic: Null Pointers, Type Errors, Syntax Crashes.
  • Infrastructure: Dangerous Dockerfile configurations.

🀝 Contributing

Open a PR to add support for more languages!

License: MIT

Popular repositories Loading

  1. BugRescue BugRescue Public

    Autonomous AI Code Repair Agent. Finds crashes, compiles code, and fixes bugs in real-time for Python, Rust, Go, & C++.

    Python