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.
- 📋 One-click copy of PR diff to clipboard
- ⚡ Works on any GitHub PR page
- 🔒 Works with private repositories
- 🎨 Clean integration with GitHub's UI
- Clone or download this repository
- Open Chrome and navigate to
chrome://extensions/
- Enable "Developer mode" in the top right
- Click "Load unpacked" and select the folder containing the extension files
- The extension should now be active on GitHub PR pages
- Navigate to any GitHub pull request page
- Click the "LLM Diff" button (appears near Edit/Code buttons)
- Paste the diff into your LLM conversation
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
To modify the extension:
- Edit the relevant files (
content.js
for functionality,styles.css
for appearance) - Go to
chrome://extensions/
and click the refresh icon for this extension - Refresh the GitHub page to see changes
Feel free to submit issues and enhancement requests!