How vaibhavsarmai05-oss/bugfix-agent works
BugFix Agent is a web-based Python debugging tool: a user submits code, the API checks syntax and runs it in an isolated subprocess, then reports an explanation and any supported fix or regression test. A proposed fix can be submitted to the verify endpoint, which runs it through the same executor. The README documents broader error-catalogue and test-generation capabilities; their modules are included, though the generator source was not sampled. Connections below are limited to shown calls or documented behavior.
Main entry points: app.py API application · script.js Web interface · runner.py Isolated runner · index.py API adapter
Components 10
User interface
- Web interface
frontend/script.js
API workflow
- API application
backend/app.py - Syntax check
backend/app.py - API adapter
api/index.py
Diagnosis and repair
- Error catalogue
backend/ai_service.py - Fix proposer
core/fixer.py - Regression tests
core/test_generator.py
Code execution
- Isolated runner
backend/runner.py - Python subprocess
Other components
- Developer
Connections 10
- Developer → Web interface: submits code
README.md - Web interface → API application: posts analysis
frontend/script.js - Web interface → API application: posts fix
frontend/script.js - API application → Syntax check: parses code
backend/app.py - API application → Isolated runner: runs code
backend/app.py - API application → Error catalogue: requests diagnosis
backend/app.py - API application → Fix proposer: requests fix
backend/app.py - API application → Regression tests: requests test
backend/app.py - Isolated runner → Python subprocess: executes code
backend/runner.py - API adapter → API application: imports app
api/index.py