GitSniper is a browser extension that extracts code review comments from GitHub and GitLab, formatting them for AI tools like Claude, ChatGPT, and other LLMs.
What GitSniper Does
When you receive feedback on a pull request or merge request, GitSniper captures:
- Review comments with their full context
- Diff snippets showing the exact code being discussed
- Line numbers and file paths
- Threaded discussions with proper nesting
- Reviewer attribution for each comment
The output is structured text that AI tools can understand and act upon, allowing you to systematically address feedback without manual copy-pasting.
Key Features
| Feature | Description |
|---|---|
| Smart Extraction | Captures comments with surrounding diff context |
| Custom Preambles | Add instructions to guide AI interpretation |
| Author Filtering | Exclude specific reviewers (bots, CI systems) |
| Clipboard History | Access previous extractions |
| Expand References | Fetch content from linked code |
Supported Platforms
GitSniper works with:
- GitHub - Public and private repositories
- GitLab - Including self-hosted instances
- Firefox and Chrome browsers
Getting Started
- Install the extension for your browser
- Follow the Quick Start guide to extract your first PR
- Explore Features to customise your workflow
Example Output
When you click the GitSniper button on a PR, you get structured output like this:
EXTRACTED: PR #123 COMMENTS
==================================================
FILE: src/auth/handler.ts
--------------------------------------------------
DIFF CONTEXT (lines 45-52):
- const token = getToken();
+ const token = await getTokenAsync();
COMMENT (@reviewer):
Consider adding error handling for the async call.
What happens if getTokenAsync() rejects?
---
This format gives AI tools the context they need to understand and implement the requested changes.