"Your Hybrid AI Code Surgeon." BugRescue fixes bugs in real-time. Use Local AI for privacy, or switch to Cloud AI (OpenAI, Claude, Gemini) for complex logic.
| Feature | Description |
|---|---|
| Hybrid Brain | Switch between ollama (default), openai, anthropic, or gemini with one flag. |
| Auto-Fix Loop | Runs code β Catches error β Patches code β Repeats until fixed. |
| Polyglot | Supports Python, JavaScript, Go, Rust, C++, Java, and more. |
| Safety First | Auto-backups (.bugrescue_backups/) and Dry-Run mode. |
Uses Ollama (qwen2.5-coder) running on your machine.
python3 bug_rescue.py ./my-projectFor tougher bugs, use a smarter cloud model.
# OpenAI
python3 bug_rescue.py ./my-project --provider openai --key "sk-..."
# Anthropic (Excellent for coding)
python3 bug_rescue.py ./my-project --provider anthropic --key "sk-ant-..."
# Google Gemini (Fast & Large Context)
python3 bug_rescue.py ./my-project --provider gemini --key "AIza..."docker run --rm -it \
-v $(pwd):/code \
bugrescue/engine /code \
--provider openai --key "sk-..."| Flag | Description | Default |
|---|---|---|
--provider |
Choose AI: ollama, openai, anthropic, gemini |
ollama |
--key |
API key for cloud providers | None |
--model |
Override default model (e.g., gpt-4o, claude-3.5-sonnet) |
Smart default |
--dry-run |
Audit only, no file changes | False |
- Automatic backups before every change
- Human-readable patch diffs
- Dry-run mode for auditing fixes
- No cloud calls in local mode
MIT License