fix-pr-comments

A command that reads pull-request review comments, sorts them by urgency, applies the requested code changes, and runs quality checks. A pull request is a proposed change awaiting review.

In plain words
What is it for?
Use it to address blocking issues, bugs, quality suggestions, and questions raised on a GitHub pull request, then commit and notify reviewers.
Why use it?
It turns scattered review feedback into a tracked set of fixes and helps verify the updated code before pushing it.

Command

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/fusengine/agents/fix-pr-comments
Clone the repo
git clone --depth 1 https://github.com/fusengine/agents
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 397 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.00018 $0.00397
Opus 5 $0.00009 $0.00198
Sonnet 5 $0.00004 $0.00079
Haiku 4.5 $0.00002 $0.00040

Measured yesterday against content hash 19e48ebd1cef, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fix-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 yesterday.

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.

plugins/ai-pilot/commands/fix-pr-comments.md · 64 lines

What it actually says

Fix PR Comments

Systematically address all PR review comments:

  1. Fetch PR Comments:

    gh pr view [PR_NUMBER] --comments
    gh api repos/{owner}/{repo}/pulls/[PR_NUMBER]/comments
    
  2. Categorize Comments:

    • Must Fix: Blocking issues (security, bugs, breaking changes)
    • Should Fix: Code quality, performance, best practices
    • Nice to Have: Style preferences, minor suggestions
    • Questions: Clarifications needed
  3. Address Each Comment: For each comment:

    • Locate relevant file and line
    • Understand the requested change
    • Use research-expert if clarification needed on best practices

    • Apply fix following project patterns
    • Mark comment as resolved
  4. Run Quality Checks:

    Use sniper to ensure all changes maintain code quality

    bun run lint
    bun test
    
  5. Commit Fixes:

    git commit -m "$(cat <<'EOF'
    fix: Address PR review comments
    
    - [Comment 1 fix]
    - [Comment 2 fix]
    - [Comment 3 fix]
    
    
    EOF
    )"
    
  6. Push and Notify:

    git push
    gh pr comment [PR_NUMBER] --body "✅ All review comments addressed"
    

Arguments:

  • $ARGUMENTS specifies PR number or focuses on specific comment type

Example Usage:

  • /fix-pr-comments 123 → Fix all comments for PR #123
  • /fix-pr-comments → Fix comments for current PR
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. yesterday First seen · 64 lines · 18 tokens per session scan A 19e48ebd1cef

Subscribe to this mod's changes

fix-pr-comments is a command published in the GitHub repository fusengine/agents (25 stars, last pushed 28d ago), licensed MIT. It adds 18 tokens to every session and 397 once invoked, about $0.0001 per session on Opus 5. 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-30.