https://github.com/byteakp/autopr-ai
AutoPR-AI is an autonomous agent that automatically scans a GitHub repository for messy or inefficient code. It then uses an AI model to refactor and improve the identified files and finishes by creating a detailed pull request with the suggested enhancements for you to review and merge.
https://github.com/byteakp/autopr-ai
Last synced: 10 months ago
JSON representation
AutoPR-AI is an autonomous agent that automatically scans a GitHub repository for messy or inefficient code. It then uses an AI model to refactor and improve the identified files and finishes by creating a detailed pull request with the suggested enhancements for you to review and merge.
- Host: GitHub
- URL: https://github.com/byteakp/autopr-ai
- Owner: byteakp
- License: mit
- Created: 2025-08-26T17:15:33.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-26T17:35:17.000Z (10 months ago)
- Last Synced: 2025-08-27T00:19:40.320Z (10 months ago)
- Language: Python
- Size: 28.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AutoPR-AI 🤖⚡
```
_ _ ____ ____ _ ___
/ \ _ _| |_ ___ | _ \| _ \ / \ |_ _|
/ _ \| | | | __/ _ \ | |_) | |_) | ___ / _ \ | |
/ ___ \ |_| | || (_) | __/| _ < |___| / ___ \ | |
/_/ \_\__,_|\__\___/|_| |_| \_\ /_/ \_\___|
```

[](https://github.com/byteakp/AutoPR-AI)
[](LICENSE)
[](https://github.com/byteakp/AutoPR-AI)
---
---
## 💀 **Your Code Sucks. We Fix It.**
Your codebase looks like it was written by a drunk octopus having an existential crisis. We get it. That's why **AutoPR-AI** exists.
**What it does:**
- 📡 You send a repo URL
- 🤖 AI rewrites your garbage code
- 📝 Creates a PR with clean code
- ☕ You grab coffee while magic happens
**No bullshit. Just results.**
---
## 🚀 **60-Second Setup**
```bash
# Clone this bad boy
git clone https://github.com/byteakp/AutoPR-AI.git && cd AutoPR-AI
# Setup (copy-paste like a pro)
python -m venv venv && source venv/bin/activate && pip install -r requirements.txt
# Add your keys to .env (don't be that person who commits keys)
echo 'GITHUB_TOKEN="your_token"' > .env
echo 'OPENAI_API_KEY="your_key"' >> .env
# Launch the beast
flask run
```
**Boom.** Running on `localhost:5000`
---
## 🔥 **Usage (It's Stupid Simple)**
```bash
curl -X POST http://127.0.0.1:5000/refactor \
-H 'Content-Type: application/json' \
-d '{
"repo_url": "https://github.com/some-user/trash-code.git",
"model": "gpt-4o"
}'
```
**Models we support:**
- `gpt-4o` (OpenAI's finest)
- `gemini-1.5-flash` (Google's speed demon)
- `claude-3-sonnet` (Anthropic's code whisperer)
- `deepseek-coder` (The specialist)
---
## 📊 **Real Talk: Results**
| Before AutoPR-AI | After AutoPR-AI | Developers' Reaction |
|-------------------|------------------|---------------------|
| 🤢 Spaghetti code | ✨ Clean architecture | 🤯 "Is this magic?" |
| 😭 3 hours debugging | ⚡ 10 minutes | 🍻 "I have a life now" |
| 🔥 Production fires | 🧊 Smooth sailing | 💰 "Promoted!" |
---
## 🎯 **Why This Rocks**
**Other tools:** *"Here are 47 linting errors to fix manually"*
**AutoPR-AI:** *"Fixed. Here's your PR. You're welcome."*
**It's not just a tool. It's your coding guardian angel.**
---
## 🔮 **Coming Soon (The Good Stuff)**
- 🎯 Target specific functions (no more whole-file chaos)
- 💬 Chat with AI in PR comments (`@AutoPR-AI try harder`)
- 📊 Code complexity scoring (shame your teammates)
- 🔄 Auto-monitoring (weekly code health reports)
- 📱 Slack alerts (`Your code has been beautified ✨`)
---
## 🤝 **Join the Cult**
Found a bug? Have an idea? Want to contribute?
**Hit us up:**
- 🐛 [Issues](https://github.com/byteakp/AutoPR-AI/issues)
- 💡 [Discussions](https://github.com/byteakp/AutoPR-AI/discussions)
- 📧 [amankumarpandeyin@gmail.com](mailto:amankumarpandeyin@gmail.com)
---
## ⭐ **Star This Repo or Your Code Stays Ugly**
[](https://github.com/byteakp/AutoPR-AI)
[](https://github.com/byteakp)
---
**Built with 🔥 and a lot of ☕**
*"Code is poetry. Yours is more like a grocery list."*
**AutoPR-AI** - *We make ugly code beautiful* ✨
[](LICENSE)