pr-comments

A command for finding, reviewing, fixing, and resolving unanswered comments on a GitHub pull request. Pull request comments are feedback left by reviewers on proposed code changes.

In plain words
What is it for?
Use it to list unresolved threads, analyze comments by file, reply to reviewers, and address feedback on the current branch’s pull request.
Why use it?
It gathers scattered review threads and groups them by file, making it easier to see which feedback remains and what needs attention.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/paulbreuler/limps/pr-comments
Clone the repo
git clone --depth 1 https://github.com/paulbreuler/limps

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,270 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01270
Opus 5 $0.00000 $0.00635
Sonnet 5 $0.00000 $0.00254
Haiku 4.5 $0.00000 $0.00127

Measured 2d ago against content hash f0fc3b752b83, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pr-comments scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/pr-comments.md · 173 lines

How it starts

The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PR Comments

Fetch, review, address, and resolve unresolved PR review comments using the scripts/helpers/pr-comments.ts helper.

Instructions for Claude

When this command is invoked:

  1. List unresolved threads: Use npx tsx scripts/helpers/pr-comments.ts list [pr_number]
    • Shows thread IDs, file paths, comments, and comment IDs
    • Optionally specify PR number, or omit to use current branch's PR
  2. Analyze by file: Use npx tsx scripts/helpers/pr-comments.ts analyze [pr_number]
    • Groups threads by file path
    • Shows which files exist vs. deleted
    • Helps prioritize which comments to address
  3. Address comments:
    • Before fixing: For architecture/maintainability concerns, run /branch-code-review to understand impact
    • Before fixing: For security/MCP concerns, run /mcp-code-review to identify risks
    • After fixing: If fixes were made, commit using conventional commits (use /git-commit-best-practices)
    • Commit message: Reference the comment/concern: fix(component): address review feedback on error handling
  4. Reply to comments: Use npx tsx scripts/helpers/pr-comments.ts reply [pr_number] <comment_id> <message>
    • See reply templates below for common responses
  5. Resolve threads: Use npx tsx scripts/helpers/pr-comments.ts resolve <thread_id>
    • Only after addressing and committing fixes (or explaining why no fix needed)

Quick Start

# List all unresolved threads on current PR
npx tsx scripts/helpers/pr-comments.ts list

# Analyze threads by file
npx tsx scripts/helpers/pr-comments.ts analyze

# Reply to a specific comment
npx tsx scripts/helpers/pr-comments.ts reply [pr_number] <comment_id> "Your reply message here"

# Resolve a thread after addressing
npx tsx scripts/helpers/pr-comments.ts resolve <thread_id>

Helper Script Commands

list [pr_number]

Lists all unresolved review threads with their comments.

npx tsx scripts/helpers/pr-comments.ts list

Read the full file on GitHub · 173 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 173 lines · 0 tokens per session scan A f0fc3b752b83

Subscribe to this mod's changes

pr-comments is a command published in the GitHub repository paulbreuler/limps (10 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,270 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.