GitHub’s official CLI (`gh`) does not provide a built-in way to view or interact with inline pull request review comments or review threads. The available command (`gh pr view --comments`) only shows top-level discussion, not the line-level feedback most reviews depend on.
Inline comments can be accessed via the raw GitHub REST API, but doing so requires multiple separate calls (list reviews -> list review comments -> fetch thread comments -> merge and reconstruct). This is fragile for CLI workflows and especially problematic for automation and LLM-based agents.
We built a community GitHub CLI extension to simplify this:
https://github.com/agynio/gh-pr-review
The extension allows users and agents to:
- view inline PR review threads with file and line context - filter unresolved review comments - submit replies to review threads - resolve review conversations from the CLI - export compact, deterministic JSON for automation and LLM workflows
Example:
gh extension install agynio/gh-pr-review
gh pr-review review view <pr-number> --unresolved
This returns the full inline review context in a single command, without stitching together fragmented API responses.Feedback is welcome, especially around CLI ergonomics, review submission flows, and agent or LLM-driven use cases.
0 comments