CLI that auto-fixes GitHub issues and opens pull requests.
Project description
cursor_hackathon
Backend-only CLI that:
- Takes a GitHub repo URL
- Finds an issue
- Attempts an automated code fix
- Commits changes and opens a PR
Requirements
- Python 3.10+
gitgh(GitHub CLI), authenticated (gh auth login)OPENAI_API_KEYin.envor exported in shell- Optional:
AUTOFIX_GH_BINif 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 123pick a specific issue--workspace .autofix-workspaceclone location--no-create-prrun fix + commit only--no-fallback-synthetic-prdisable 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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f1784b500a9f4503d54bffabb736315d2cf536bcf609780e8d808225acc400a
|
|
| MD5 |
508736a131e9215716a01fc9609beca7
|
|
| BLAKE2b-256 |
6005f0f4dbe5cd0d26035ef244ec11835262e589d8c9d50a5bdc01fef4a10ca7
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a60043f9440191a2cc403643a3f6599ad3b22b413248cdb29d9fc2023365f01
|
|
| MD5 |
78ce892a5f60ffe4b845962e11c0ec1d
|
|
| BLAKE2b-256 |
592b1076fd92760ceb37f2cb44564d056905cc977f3d8feec5784cbae87078ae
|