Skip to main content

CLI that auto-fixes GitHub issues and opens pull requests.

Project description

cursor_hackathon

Backend-only CLI that:

  1. Takes a GitHub repo URL
  2. Finds an issue
  3. Attempts an automated code fix
  4. Commits changes and opens a PR

Requirements

  • Python 3.10+
  • git
  • gh (GitHub CLI), authenticated (gh auth login)
  • OPENAI_API_KEY in .env or exported in shell
  • Optional: AUTOFIX_GH_BIN if GitHub CLI is installed under a different command/path

Setup

python -m venv .venv
source .venv/bin/activate
pip install -e .
cp .env.example .env

Then edit .env and set OPENAI_API_KEY.

Usage

autofix doctor
autofix run https://github.com/owner/repo --no-create-pr
autofix doctor-patch --repo-dir .autofix-workspace/repo-name
autofix run https://github.com/owner/repo

doctor-patch creates a synthetic probe commit and PR by default. Use --no-create-pr if you only want a local apply/revert patch check.

Optional flags:

  • --issue 123 pick a specific issue
  • --workspace .autofix-workspace clone location
  • --no-create-pr run fix + commit only
  • --no-fallback-synthetic-pr disable synthetic PR fallback when issue-fix generation fails

Notes

  • The default behavior selects the first open issue from gh issue list.
  • Patch generation is done through OpenAI and applied as a git diff.
  • Validation is best-effort and auto-detects simple test commands.
  • Docker is optional. Use it only if you want environment isolation/reproducibility.

Project details


Download files

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

Source Distribution

autofix_cli-0.1.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

autofix_cli-0.1.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autofix_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for autofix_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6f1784b500a9f4503d54bffabb736315d2cf536bcf609780e8d808225acc400a
MD5 508736a131e9215716a01fc9609beca7
BLAKE2b-256 6005f0f4dbe5cd0d26035ef244ec11835262e589d8c9d50a5bdc01fef4a10ca7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: autofix_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for autofix_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a60043f9440191a2cc403643a3f6599ad3b22b413248cdb29d9fc2023365f01
MD5 78ce892a5f60ffe4b845962e11c0ec1d
BLAKE2b-256 592b1076fd92760ceb37f2cb44564d056905cc977f3d8feec5784cbae87078ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page