Bug2Pr

"From Issue to Verified PR"

Visit Repo
Bug2Pr banner

About

## The problem it solves

## From GitHub Issues to Verified Pull Requests

Developers spend significant time debugging reported issues, reproducing bugs, writing regression tests, and checking whether their fixes break existing functionality. Traditional AI coding assistants can suggest code changes, but those changes are not always tested or verified.

**Bug2PR automates the entire bug-resolution workflow** using a multi-agent AI system. Users provide a GitHub Issue URL, and Bug2PR analyzes the issue, generates a regression test, proves that the test fails on the original code, develops a fix, and runs the test suite in an isolated sandbox.

Once the fix passes verification, Bug2PR automatically creates a Git branch, commits the changes, and opens a Pull Request on GitHub with the fix and test evidence.

### Key Benefits

- **Automated debugging:** Reduces manual effort in identifying and fixing software bugs. - **Test-first verification:** Confirms that a regression test reproduces the original defect before the fix is written. - **Safer code changes:** Runs tests in an isolated environment to reduce the risk of unintended changes. - **Regression prevention:** Executes the test suite to check whether existing functionality remains intact. - **Transparent execution:** Records pipeline stages, test logs, and code diffs for inspection. - **Honest failure handling:** Stops instead of opening a supposedly verified PR when the bug or fix cannot be validated.

Bug2PR helps developers, open-source maintainers, and engineering teams spend less time on repetitive debugging and more time building reliable software.

## Challenges we ran into

## Challenges and Solutions

### 1. Reproducing Bugs Reliably

One of the biggest challenges was ensuring that an AI-generated test actually reproduced the reported bug rather than simply passing on the original code.

**Solution:** We implemented a test-first verification gate. The pipeline proceeds to the fixing stage only when the regression test fails against the original code, demonstrating the defect.

### 2. Preventing Incorrect AI-Generated Fixes An AI-generated patch may appear correct while introducing new bugs or breaking existing functionality.

**Solution:** We separated the workflow into specialized agents for triage, test generation, fixing, and verification. The system runs the test suite and retries failed fixes within a limited retry budget.

### 3. Safe Execution of Untrusted Repository Code Running tests from external repositories can introduce security risks and unintended file or network access.

**Solution:** We implemented sandbox-based execution with Docker or local isolation modes, restricted file writes, and network-disabled test runs.

### 4. Coordinating Multiple AI Agents

Passing reliable information between agents and managing failures across multiple stages required careful orchestration.

**Solution:** We used LangGraph to manage the pipeline as a state machine, with structured prompts, controlled transitions, and explicit failure paths.

### 5. Transparency and Debugging

Understanding why a run succeeded or failed is essential for developers and hackathon judges.

**Solution:** We added immutable JSON execution traces containing pipeline states, test results, logs, and code diffs, along with a web workspace and replay interface.

These challenges helped us build Bug2PR around a core principle: **a fix should be demonstrated through tests, not merely suggested by AI.**

Screenshots

Bug2Pr screenshot 1Bug2Pr screenshot 2Bug2Pr screenshot 3Bug2Pr screenshot 4

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.