# 🐛 BugSniper
**AI-powered error detection and automated fixing for Python applications.**
BugSniper watches your application logs in real-time, detects Python errors, traces them to the exact commit that introduced them, and generates AI-powered fix guides with detailed reports.
---
## 📦 Installation
```bash
pip install bugsnip
Or install from source:
git clone https://github.com/kariosv4sure/bugsnip
cd bugsnip
pip install -e .
🚀 Quick Start
- Set your Groq API key
export GROQ_API_KEY="your_groq_api_key_here"
Get a free key at console.groq.com
- Initialize BugSniper
bugsnip init
- Watch your logs
bugsnip watch --file app.log --service myapp
Or configure defaults and just run:
bugsnip config set log_file app.log
bugsnip config set service myapp
bugsnip watch
🔧 Commands
Command Description bugsnip watch Watch a log file for errors bugsnip init Initialize BugSniper configuration bugsnip origin Show the BugSniper origin story bugsnip config show Show current configuration bugsnip config set Set a configuration value bugsnip config reset Reset configuration to defaults bugsnip config path Show config file location
⚙️ Configuration
BugSniper stores settings in ~/.bugsnip/config.json:
{
"context_lines": 10,
"report_dir": "bugsnip_reports",
"auto_apply": false,
"service": "default",
"log_file": null
}
Available config keys:
Key Type Default Description context_lines int 10 Lines of context to show around errors report_dir string bugsnip_reports Directory for fix reports auto_apply bool false Auto-apply fixes (use with caution) service string default Default service name log_file string null Default log file to watch
📝 Reports
When an error is detected, BugSniper saves a detailed markdown report:
bugsnip_reports/
├── fix_20260827_174151_11.md
└── fix_20260827_174230_16.md
Each report includes:
· Error message and traceback · Code context with line numbers · AI-generated fix guide with explanation · Git commit information (who broke it)
🎯 Features
Feature Description Real-time monitoring Watches log files for errors as they occur Git blame integration Identifies which commit introduced the error AI-powered fixes Uses Groq AI to analyze and suggest fixes Hunter personality Dynamic quotes based on error type Configurable Store preferences in config file Report generation Saves detailed markdown fix reports Service tagging Monitor multiple services with custom names
📋 Requirements
· Python 3.8+ · Git (for blame tracking) · Groq API key (free tier at console.groq.com)
🧑💻 Author
Ifeanyichukwu Collins
· Portfolio: karios-portfolio.onrender.com · GitHub: @kariosv4sure
📄 License
MIT License
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
💬 Support
For issues or questions, please open an issue on GitHub.
Metadata
Release files for bugsnip 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bugsnip-1.0.0.tar.gz | 14.3 kB | With provenance | Details for bugsnip-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bugsnip-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for bugsnip-1.0.0-py3-none-any.whl |
Total release size: 31.4 kB
Release files / bugsnip-1.0.0.tar.gz
| Download URL | bugsnip-1.0.0.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c1acf652d7c76015191d3e64391a1e10284811c2a9fb27accfa93b4ce04471c
|
|
BLAKE2b-256 checksum How to use checksums |
b547e5c24a024e6bf6e11d8ffb11c5fc641b3653fe3adfe6bb6c08acec71afa6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 30, 2026.
Transparency logRelease files / bugsnip-1.0.0-py3-none-any.whl
| Download URL | bugsnip-1.0.0-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
088fafbab8f44b7aef5304a16a0961b6731b456701db3a32584ce9432681fe33
|
|
BLAKE2b-256 checksum How to use checksums |
b6c6acfcbb0252f9af8bffaf68ecdaa7ae98a47aad474b93d90cebbfd1b8b88f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 30, 2026.
Transparency logSecurity for bugsnip 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for bugsnip-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.