resolve-pr-comments

resolve-pr-comments is a command for GitHub Copilot from microsoft/copilot-for-eclipse. It costs 13 tokens per session (1,221 once invoked), scanned A, original, MIT.

A sequential procedure for resolving all review comments on a pull request. It includes checking out the correct branch, collecting paginated comments, tracking progress, and waiting for confirmation for each comment.

In plain words
What is it for?
Use it to process a pull request's review feedback one comment at a time.
Why use it?
It avoids skipping comments, working on the wrong branch, or making several unapproved changes at once.

Command for GitHub Copilot ✓ vendor

Written for GitHub Copilot: a Copilot chat mode or prompt. Also seen: agent in frontmatter.

Good fit Use it to process a pull request's review feedback one comment at a time.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/microsoft/copilot-for-eclipse/resolve-pr-comments
About the project

GitHub Copilot for Eclipse is an Eclipse IDE plugin that adds AI-assisted code completion, edit suggestions, conversational agent support, and connections to external tools through MCP. Eclipse developers use it for coding assistance and more autonomous, project-aware development tasks. The catalogue entries provide skills and instructions for working with Copilot in Eclipse.

microsoft/copilot-for-eclipse · 122 stars · on GitHub · marketplace.eclipse.org

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.

Clone the repo
git clone --depth 1 https://github.com/microsoft/copilot-for-eclipse

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for resolve-pr-comments

README.md
[![agentmods](https://agentmods.dev/badge/commands/microsoft/copilot-for-eclipse/resolve-pr-comments.svg)](https://agentmods.dev/commands/microsoft/copilot-for-eclipse/resolve-pr-comments)
Your own site
<a href="https://agentmods.dev/commands/microsoft/copilot-for-eclipse/resolve-pr-comments"><img src="https://agentmods.dev/badge/commands/microsoft/copilot-for-eclipse/resolve-pr-comments.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 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,221 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00013 $0.01221
Opus 5 $0.00006 $0.00611
Sonnet 5 $0.00003 $0.00244
Haiku 4.5 $0.00001 $0.00122

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

Security

Grade A, and why

resolve-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.

.github/prompts/resolve-pr-comments.prompt.md · 103 lines

How it starts

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

PR Review Comment Resolution

Resolve PR review comments for PR #${input:pr_number:Enter PR number}

Critical Rules

SEQUENTIAL PROCESSING IS MANDATORY: You MUST fully complete ALL steps for one comment before starting the next.

CONFIRMATION GATES ARE BLOCKING: You MUST wait for explicit user confirmation at each gate. Do NOT proceed without user approval.

TODO TRACKING: Use the todo list to track progress. Only ONE comment should be "in-progress" at a time.

Workflow

1. Verify Branch

  • Check current branch: git branch --show-current
  • If not on the PR's source branch, switch to it: gh pr checkout ${input:pr_number}

2. Get All Review Comments and Save to File

Use pagination to retrieve all comments (gh CLI defaults to 30 results) and save to a file for reference:

mkdir -p .github/pullrequests/${input:pr_number}
gh api repos/microsoft/copilot-for-eclipse/pulls/${input:pr_number}/comments --paginate --jq '.[] | {id: .id, path: .path, line: .line, body: .body, in_reply_to_id: .in_reply_to_id, user: .user.login}' > .github/pullrequests/${input:pr_number}/comments.json

Note: The line field from the API points directly to the line in the current file where the comment was made. No diff parsing is needed - just read the file at that line number to see the code context.

3. Filter and Classify Comments

After fetching comments:

  1. Identify resolved comments - If a comment has replies (other comments with in_reply_to_id matching its id) from the PR author starting with "Done." or similar, it's already resolved
  2. Skip reply comments - Comments with in_reply_to_id set are replies, not original review comments
  3. Focus on actionable review comments - Only create TODOs for original comments (no in_reply_to_id) that haven't been resolved

4. For Each Actionable Comment, Extract:

  • id: The comment ID (needed for replying)
  • path: The file path where the comment was made
  • line: The line number in the file (use this directly to read code context)
  • body: The actual review comment content
  • in_reply_to_id: If set, this is a reply to another comment (skip these)
  • user: The username who made the comment

Read the full file on GitHub · 103 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. yesterday First seen · 103 lines · 13 tokens per session scan A 705262d412e5

Subscribe to this mod's changes

resolve-pr-comments is a command published in the GitHub repository microsoft/copilot-for-eclipse (122 stars, last pushed yesterday), licensed MIT. It adds 13 tokens to every session and 1,221 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-09-07.