Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bugfix_agent-0.1.0.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bugfix_agent-0.1.0-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file bugfix_agent-0.1.0.tar.gz.

File metadata

  • Download URL: bugfix_agent-0.1.0.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.1

File hashes

Hashes for bugfix_agent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 04f36366f707611aa2885362ea285702d3fd00a6f788818a7cb540ee2365cac8
MD5 7c843e2f98b20d5cbf431a965a31baad
BLAKE2b-256 f0c1649bd11a1d9737635a855fea20d91a9d6b2de7ef025a9aff288bba71306f

See more details on using hashes here.

File details

Details for the file bugfix_agent-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bugfix_agent-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 26.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.1

File hashes

Hashes for bugfix_agent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f2065a8d56ea730c63ba618a73caa99ea08d6fceebfb0a188a1447462912a6d
MD5 cacbcc96a64d8f81ccb7c56e0175b3b6
BLAKE2b-256 7ac03874438a1b8f0baa7424804607755ccc4ecd07a8788076b4601334ce1e30

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page