An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# AutoPR-AI 🤖⚡

```
_ _ ____ ____ _ ___
/ \ _ _| |_ ___ | _ \| _ \ / \ |_ _|
/ _ \| | | | __/ _ \ | |_) | |_) | ___ / _ \ | |
/ ___ \ |_| | || (_) | __/| _ < |___| / ___ \ | |
/_/ \_\__,_|\__\___/|_| |_| \_\ /_/ \_\___|
```

Typing SVG

[![Stars](https://img.shields.io/github/stars/byteakp/AutoPR-AI?style=for-the-badge&logo=github&color=yellow)](https://github.com/byteakp/AutoPR-AI)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge)](LICENSE)
[![Made with](https://img.shields.io/badge/Made%20with-🔥%20&%20☕-red?style=for-the-badge)](https://github.com/byteakp/AutoPR-AI)

---


AutoPR-AI Demo
Screenshot from 2025-08-26 22-40-51

---

## 💀 **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**


AI magic

**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**

[![Star Now](https://img.shields.io/badge/⭐-STAR%20NOW-yellow?style=for-the-badge&logo=github)](https://github.com/byteakp/AutoPR-AI)
[![Follow](https://img.shields.io/badge/👤-FOLLOW-blue?style=for-the-badge&logo=github)](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* ✨

[![MIT License](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](LICENSE)