BugSquash AgentHub is an intelligent debugging assistant that auto-detects, analyzes, and patches Python code errors. It supports full project patching by recursively scanning and fixing all .py files in a zipped codebase.
-
🔍 Auto-analyze Python tracebacks and extract root cause
-
🧠 Apply intelligent patches for:
- NameError, TypeError, AttributeError, ZeroDivisionError
- IndexError, KeyError, FileNotFoundError, ModuleNotFoundError
- SyntaxError, IndentationError, RecursionError, ValueError
-
📦 Upload full Python projects as
.zipfiles -
🔁 Multi-pass patching: fixes multiple errors across multiple files
-
🪞 Side-by-side code diffs and patch previews
-
💾 Download the fully patched project as a
.zip
-
Run the app locally (Streamlit):
streamlit run main.py
-
Upload any Python project as a
.zipwithmain.pyfile in it -
Click "🚀 Run Project"
-
The agent will:
- Analyze errors
- Suggest intelligent fixes
- Apply patches to all
.pyfiles - Retry and re-analyze if errors remain
-
Download your patched project
AnalyzerAgent: Extracts root error type from tracebackSearchAgent: Suggests patch strategy based on errorPatchAgent: Applies safe code modifications via pattern detectionExecutionAgent: Runs code and captures output/error
BugSquash-AgentHub/
├── main.py # Streamlit frontend
├── agents/
│ ├── analyzer.py # Error analysis logic
│ ├── search.py # Error type → patch logic mapping
│ └── patch.py # Patch generation logic
├── utils/
│ ├── runner.py # Code execution helpers
│ ├── file_handler.py # ZIP extract + project traversal
│ └── ui.py # Diff renderer and UI helpers
NameError: name 'x' is not definedTypeError: unsupported operand type(s)AttributeError: object has no attributeZeroDivisionError: division by zeroSyntaxError: invalid syntaxIndentationError: unexpected indentFileNotFoundError: [Errno 2] No such file or directory
- Only Python 3.x projects are supported
- Does not handle deep semantic bugs (yet! Planned to resolve this is upcoming version)
MIT License
