GitSniper Documentation

Learn how to extract PR and MR comments for AI-assisted code review workflows.

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

  1. Install the extension for your browser
  2. Follow the Quick Start guide to extract your first PR
  3. 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.