Skip to content

AngeloGiacco/pr-ask-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub PR Diff for LLM Chrome Extension

Demo of LLM Diff Chrome Extension in action

This Chrome extension adds a "LLM Diff" button to GitHub pull request pages, allowing you to quickly copy the PR diff in a format optimized for Large Language Models.

Features

  • 📋 One-click copy of PR diff to clipboard
  • ⚡ Works on any GitHub PR page
  • 🔒 Works with private repositories
  • 🎨 Clean integration with GitHub's UI

Installation

Option 1: Load as Unpacked Extension (Recommended for Development)

  1. Clone or download this repository
  2. Open Chrome and navigate to chrome://extensions/
  3. Enable "Developer mode" in the top right
  4. Click "Load unpacked" and select the folder containing the extension files
  5. The extension should now be active on GitHub PR pages

Usage

  1. Navigate to any GitHub pull request page
  2. Click the "LLM Diff" button (appears near Edit/Code buttons)
  3. Paste the diff into your LLM conversation

Output Format

The extension formats the diff like this:

PR Diff: [PR Title] (#123)

[filename1.py]
+ added line content
- removed line content
  unchanged line content

[filename2.js]
+ another added line
- another removed line

Development

To modify the extension:

  1. Edit the relevant files (content.js for functionality, styles.css for appearance)
  2. Go to chrome://extensions/ and click the refresh icon for this extension
  3. Refresh the GitHub page to see changes

Contributing

Feel free to submit issues and enhancement requests!

About

chrome extension that makes it easy to copy context from PRs in an LLM friendly format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published