About
## Challenges we ran into
1. **Chrome Extension Manifest V3 Service Worker Limits:** - Manifest V3 service workers are ephemeral and terminate when idle. Handling long-running LLM streaming responses and GitHub API batch commits required reliable message passing and persisting state in `chrome.storage.local`.
- **Git Tree Manipulation & Automated Branch Commits:**
- Implementing 1-click batch commits required interacting with GitHub's Git Data API (fetching tree blobs, computing SHA hashes, and updating reference heads) directly from a browser extension without requiring a local clone.
- **High-Speed AI Inference & Token Limits:**
- Large PR diffs can easily exceed prompt limits. We implemented intelligent diff truncation and AST-aware chunking, leveraging Groq's high-throughput LPU inference with `llama-3.3-70b-versatile` to deliver sub-second review responses.
- **GitHub Dynamic DOM & Single-Page Navigation:**
- GitHub uses dynamic PJAX/Turbo navigation, meaning traditional page load events don't re-trigger content scripts. We engineered URL change listeners and shadow DOM isolation to keep the Copilot UI stable and non-intrusive across PR tab transitions.
## The problem it solves
Reviewing and submitting Pull Requests today is slow, tedious, and prone to human oversight:
- **For Contributors:** Developers often submit PRs with unverified error handling, missing unit tests, or subtle regressions without realizing it until a senior reviewer rejects the PR hours or days later.
- **For Reviewers:** Senior engineers spend hours wading through hundreds of lines of code diffs just to understand the architectural intent and catch repetitive mistakes instead of focusing on high-level design.
- **Context Switching:** Toggling between the IDE, GitHub UI, terminal, and AI chat windows fragments developer flow.
### How AI PR Copilot Solves This:
AI PR Copilot is a lightweight, high-performance Chrome Extension that integrates directly into GitHub & GitLab Pull Requests with two tailored roles:
- **👨💻 Contributor Mode ("Pre-Flight Check"):**
- Computes an instant PR Readiness Score (0–100%) and categorizes risks (Critical, High, Medium, Passed).
- Identifies missing test coverage and unhandled edge cases before requesting human review.
- Features **1-Click "Fix This"** and **"Batch Accept Suggestions"**, which commit accepted AI patches directly to the PR branch via GitHub API.
- **👁️ Reviewer Mode ("Rapid Assessment"):**
- Delivers an executive summary and architectural impact breakdown in under 30 seconds.
- Pinpoints specific **Key Focus Areas** (e.g., error handling, performance regressions).
- Offers interactive **"Ask AI"** contextual prompts on the live PR diff.
- Enables 1-click human review submissions (Approve, Request Changes, Comment) with AI-assisted review notes.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.






