AI-powered self-healing code debugger with evolutionary optimization
Project description
GodTier Debugger
AI-powered self-healing code debugger with evolutionary optimization.
GodTier Debugger finds bugs, fixes them, and makes your code faster — automatically. No cloud APIs, no API keys, no subscriptions. Everything runs locally using AST analysis, symbolic reasoning, and optional LLM inference.
Installation
pip install godtier-debugger
Quick Start
CLI
# Scan a project for bugs
godtier scan myproject/
# Auto-fix a file
godtier fix broken_script.py --write
# AI-powered analysis
godtier analyze complex_module.py
# Security audit
godtier safety untrusted_code.py
# Check system status
godtier info
Python API
from src.debugger.auto_debugger import AutoDebugger
from src.darwin.safety import DarwinSafetyInspector
from src.lazarus.engine import lazarus_protect
# Auto-fix broken code
debugger = AutoDebugger()
result = debugger.debug_code("""
def hello(name)
print("Hello " + name
""")
print(result.corrected_code) # Fixed: colon + closing paren
print(result.success) # True
# Security scan
inspector = DarwinSafetyInspector()
safe, issues = inspector.check("import os; os.system('rm -rf /')")
print(safe) # False
print(issues) # ['Forbidden call: os.system', ...]
# Self-healing decorator — function repairs itself at runtime
@lazarus_protect
def risky_division(a, b):
return a / b
result = risky_division(10, 0) # No crash — healed automatically
Features
| Feature | What it does |
|---|---|
| Auto-Debugger | AST-based detection & correction of 8 error types (syntax, imports, undefined vars, type mismatches, security risks, etc.) |
| Darwin Protocol | Evolutionary code optimization — mutate, benchmark (time + memory), keep winners in gene memory (SQLite) |
| Lazarus Protocol | @lazarus_protect decorator — catches exceptions, generates hot-fixes, patches functions in memory without restart |
| Safety Scanner | AST security inspector with whitelist/blacklist — blocks eval, exec, os.system, subprocess |
| Symbolic AI Engine | Knowledge graphs + rule-based reasoning for deep code analysis |
| Aurora LLM Bridge | Optional local LLM inference (Qwen2.5-14B) for enhanced analysis — zero cloud, zero cost |
| Multi-Language | Python + JavaScript support |
| Dashboard | Real-time HTTP + WebSocket monitoring |
How It Works
Source Code
|
v
[Auto-Debugger] ──> AST Parse ──> 8 Check/Fix Passes ──> Corrected Code
|
v
[Darwin Protocol] ──> Mutate ──> Safety Check ──> Benchmark ──> Best Survives
|
v
[Lazarus Protocol] ──> Runtime Exception ──> AI Analysis ──> Hot-Patch ──> Retry
No GPU required. The core engine runs on pure Python (AST + symbolic reasoning). If you have an NVIDIA GPU with a local LLM, the Aurora Bridge activates automatically for deeper analysis.
Test Results
Validated with 21 unit tests (100% pass) and 25 real-world stress tests (92% pass rate):
tests/test_aurora_bridge.py PASSED
tests/test_code_upgrade_system.py PASSED (9 tests)
tests/test_darwin.py PASSED
tests/test_god_tier_wrapper.py PASSED
tests/test_integration.py PASSED
tests/test_lazarus_unit.py PASSED (2 tests)
tests/test_router_simulation.py PASSED
tests/test_specialist.py PASSED
tests/test_symbolic_parser_unit.py PASSED (4 tests)
Stress tests cover: real-world FastAPI bugs, multi-bug files, security exploits, evolutionary optimization, Lazarus self-healing under production conditions.
Performance
| Metric | Value |
|---|---|
| Analysis speed | < 2ms per file (symbolic) |
| Auto-fix accuracy | 92% on real-world code |
| Security scan | Catches eval/exec/os.system/subprocess |
| Memory overhead | < 50MB (no GPU mode) |
| LLM analysis (optional) | ~15s per query (RTX 3060) |
Dependencies
Core (installed automatically):
networkx— Knowledge graphsastor— AST manipulation
Optional (pip install godtier-debugger[full]):
numpy— Numerical computationsaiohttp— WebSocket dashboard
No PyTorch. No transformers. No cloud APIs. Just fast, local debugging.
Project Structure
src/
├── cli.py # CLI entry point (godtier command)
├── ai/ # Symbolic AI + Aurora LLM bridge
├── debugger/ # Auto-debugging engine (8 error types)
├── darwin/ # Evolutionary optimization + safety
├── lazarus/ # Self-healing runtime protocol
├── dashboard/ # Real-time monitoring
├── languages/ # Multi-language support
└── utils/ # Git automation, patching, upgrades
Security
Multiple protection layers:
- Pre-execution AST scanning with whitelist/blacklist
- Sandboxed execution of mutated code
- Automatic validation before applying patches
- Rollback on failed patches
Blocked operations: os.system(), subprocess.Popen(), eval(), exec(), __import__(), globals(), breakpoint()
Contributing
git clone https://github.com/crnlchez1234-afk/godtier-debugger.git
cd godtier-debugger
pip install -e ".[dev]"
pytest tests/ -v
License
MIT License — Copyright 2025 Cruz Sanchez
GodTier Debugger — Fix bugs before they fix you.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file godtier_debugger-1.0.0.tar.gz.
File metadata
- Download URL: godtier_debugger-1.0.0.tar.gz
- Upload date:
- Size: 58.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
705ca25ad0080cf1f00cfc220e50054dab040108cbfd052055a3e470e37d47d9
|
|
| MD5 |
42285e775420344361b4d31b592dedd5
|
|
| BLAKE2b-256 |
c5ab956a1aa69b4875c661cb503050de7c5020af4bdf2e422fb5ed21cc82eef1
|
File details
Details for the file godtier_debugger-1.0.0-py3-none-any.whl.
File metadata
- Download URL: godtier_debugger-1.0.0-py3-none-any.whl
- Upload date:
- Size: 62.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d96f507db4fb172cdd9f7656a3ecea505ebacc2f52ebbc0f0782051f89580a7
|
|
| MD5 |
1b59d7ed84ccae26d7521016672b54ca
|
|
| BLAKE2b-256 |
783aeab6089060b0ac4313873b55b414719fcf0a7cfd604e98117b46f50d3c6c
|