Skip to content
Bug2Pr

Bug2Pr

"From Issue to Verified PR"

Created on 24th October 2026

•

Bug2Pr

Bug2Pr

"From Issue to Verified PR"

The problem Bug2Pr 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.

Tracks Applied (1)

Open Track - Development

Bug2PR fits the Open Track – Development by introducing an autonomous, AI-powered approach to software development and d...Read More

Discussion

Builders also viewed

See more projects on Devfolio