promptgarten ๐ŸŒฑ

Command reference ยท Claude Code

/pr-comments

No longer exists โ€” removed in version 2.1.91.

/pr-comments no longer exists โ€” the command was removed in Claude Code v2.1.91. On versions up to and including v2.1.90, it fetched the comments of a GitHub pull request: automatic detection of the PR for the current branch, or alternatively specifying a PR URL or number as an argument; this required the gh CLI. Today, you simply ask Claude directly to look at a pull request's comments, whether for the current branch or a specific PR number or URL; this works just as reliably without a dedicated command as before. Claude still uses the gh CLI in the background for this, which must be installed and logged in, otherwise the query fails. For a quick, read-only review of an entire pull request including diff, /review <PR> is a good alternative; for a multi-step local review with a selectable effort level, use /code-review <level> <PR>.

โœ… WHEN TO USE IT?

Fetching PR comments for the current branch

Ask Claude directly: "Look at the comments of the pull request for this branch."

Fetching comments for a specific PR number or URL

Ask Claude directly: "Show me the review comments from PR https://github.com/org/repo/pull/42."

โ›” WHEN NOT TO?

Typing `/pr-comments` on version 2.1.91 or newer

the command was removed and no longer does anything

Better: ask Claude directly about the PR comments

The `gh` CLI isn't installed or isn't logged in

both the former command and today's direct request need the gh CLI for GitHub PR data

Better: run gh auth login, then ask about the comments again

SOURCES

MORE COMMANDS ยท Claude Code

/add-dir/advisor/agents/autofix-pr/background/batch/branch/btw/cd/chrome/claude-api/clear

All commands ยท Claude Code โ†’

Share:๐•in๐Ÿ’ฌ