Workflow Tools20261 week

GitHub PR Comments Retriever

A specialized VS Code extension to archive full GitHub Pull Request discussions—including reviews, metadata, and AI-generated comments—into structured local Markdown and JSON files.

GitHub PR Comments Retriever

Project Details

Role

Lead Developer

Client

Client

Duration

1 week

Year

2026

Tech Stack

TypeScriptVS Code Extension APIGitHub OctokitNode.js FSPNPM
The Challenge

GitHub’s web interface is excellent for active reviews, but extracting that data for offline documentation, compliance audits, or feeding into LLMs for context is difficult. Navigating deeply nested comments and multiple review threads via the UI makes it nearly impossible to get a "bird's-eye view" of a PR's history in a portable format.

The Approach

I built a streamlined retriever that uses the GitHub Octokit API to traverse PR data. It intelligently handles pagination for high-volume threads and categorizes different comment types (Review, Issue, and Description) into a structured folder system. It even captures comments from AI agents (like CodeRabbit or Claude), making it a valuable tool for tracking AI-assisted development cycles.

Key Features
  • Comprehensive Data Extraction: Captures metadata, line-level comments, and general discussions.
  • AI-Agent Support: Specifically designed to preserve context from AI code reviewers.
  • Structured Local Storage: Automatically organizes data into ~/github-prs/ by project title.
  • Smart Authentication: Supports Personal Access Tokens (PAT) with secure VS Code settings storage.
  • Pagination Logic: Robustly fetches data for massive PRs without missing threads.
  • Portable Formats: Exports to standard Markdown (.md) and JSON for easy sharing or processing.
GitHub PR Comments Retriever - approach
GitHub PR Comments Retriever - result
GitHub PR Comments Retriever - additional