BugFix Agent
BugFix Agent indexes a Python repository and uses an Ollama-backed LangGraph workflow to locate and repair a reported bug.
Installation
Install the published package:
pip install bugfix-agent
For development from a checkout:
pip install -e ".[dev]"
BugFix Agent requires an Ollama server to be installed and running. The default models are qwen2.5-coder:7b for generation and nomic-embed-text for embeddings; make sure they are available to Ollama before indexing or fixing a bug.
Command-line usage
Index a repository once. Its index is stored in that repository's .bugfix directory, while the CLI records the most recently indexed repository in your per-user application-state directory.
bugfix index /path/to/repository
On Windows:
bugfix index "C:\Users\Ishan\Projects\my-repository"
From any directory, run the repair workflow against the most recently indexed repository:
bugfix --bug "The application crashes when b is 0"
Use bugfix --help for command help. To switch repositories, index the other repository; both repositories retain their own .bugfix index, and the newly indexed one becomes active for --bug.
Python API
from bugfix_agent import BugFixAgent
agent = BugFixAgent("/path/to/repository")
agent.index_repository()
result = agent.fix_bug("The application crashes when b is 0")
print(result)
The Python API writes each repository's index to <repository>/.bugfix, not to the installed package directory.
Metadata
Release files for bugfix-agent 0.1.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 |
|---|---|---|---|---|
| bugfix_agent-0.1.0.tar.gz | 22.0 kB | Without provenance | Details for bugfix_agent-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bugfix_agent-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for bugfix_agent-0.1.0-py3-none-any.whl |
Total release size: 48.3 kB
Release files / bugfix_agent-0.1.0.tar.gz
| Download URL | bugfix_agent-0.1.0.tar.gz |
|---|---|
| Size | 22.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04f36366f707611aa2885362ea285702d3fd00a6f788818a7cb540ee2365cac8
|
|
BLAKE2b-256 checksum How to use checksums |
f0c1649bd11a1d9737635a855fea20d91a9d6b2de7ef025a9aff288bba71306f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.1
|
Release files / bugfix_agent-0.1.0-py3-none-any.whl
| Download URL | bugfix_agent-0.1.0-py3-none-any.whl |
|---|---|
| Size | 26.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f2065a8d56ea730c63ba618a73caa99ea08d6fceebfb0a188a1447462912a6d
|
|
BLAKE2b-256 checksum How to use checksums |
7ac03874438a1b8f0baa7424804607755ccc4ecd07a8788076b4601334ce1e30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.1
|
Security for bugfix-agent 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.