llm-tools: Command for GitHub Copilot

.github/prompts/pr-converge.prompt.md

pr-converge is a command for GitHub Copilot from chrisgleissner/llm-tools. It costs 10 tokens per session (1,033 once invoked), scanned A, original, Apache-2.0.

A command that takes an open GitHub pull request through review and checks until it is ready to merge.

In plain words
What is it for?
Use it to fix review feedback, run validation, push required commits, and resolve applicable review threads with GitHub's gh command-line tool.
Why use it?
It removes the need to track review comments, CI results, build status, coverage, commits, and unresolved discussion threads by hand.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

This is chrisgleissner/llm-tools's own configuration. It tells GitHub Copilot how to work on llm-tools itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything llm-tools configures →

Reuse

Borrowing it

Nothing to install: this file belongs to chrisgleissner/llm-tools. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/chrisgleissner/llm-tools/main/.github/prompts/pr-converge.prompt.md
Clone the repo
git clone --depth 1 https://github.com/chrisgleissner/llm-tools

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 pr-converge

README.md
[![agentmods](https://agentmods.dev/badge/commands/chrisgleissner/llm-tools/pr-converge/github.svg)](https://agentmods.dev/commands/chrisgleissner/llm-tools/pr-converge)
Your own site
<a href="https://agentmods.dev/commands/chrisgleissner/llm-tools/pr-converge"><img src="https://agentmods.dev/badge/commands/chrisgleissner/llm-tools/pr-converge/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pr-converge

Your own site · 80×15
<a href="https://agentmods.dev/commands/chrisgleissner/llm-tools/pr-converge"><img src="https://agentmods.dev/badge/commands/chrisgleissner/llm-tools/pr-converge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 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,033 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.00010 $0.01033
Opus 5.5 $0.00004 $0.00413
Sonnet 5.5 $0.00002 $0.00207
Haiku 4.5 $0.00001 $0.00103

Measured 26d ago against content hash 7808cc6de8cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pr-converge 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 26d 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.

.github/prompts/pr-converge.prompt.md · 217 lines

How it starts

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

Pull Request Convergence

Bring the current pull request to a merge-ready state.

This is an execution prompt, not an analysis prompt. Do not stop after identifying fixes, validation steps, or next actions. Carry the work through to completion unless genuinely blocked by missing permissions or an external outage.

This requires:

  1. Addressing all PR review comments.
  2. Ensuring all CI checks for the branch are green.
  3. Iterating until the pull request stabilizes.
  4. Pushing any required commits.
  5. Replying on and resolving every applicable review thread.
  6. Meeting repository coverage requirements.

Use the gh tool to interact with GitHub.


Convergence Loop

Work iteratively until all conditions are satisfied.

A PR is considered converged when:

  • all review comments have been addressed
  • all review threads are resolved
  • all CI checks for the branch are passing
  • the repository builds successfully

Continue iterating until this state is reached.

Do not end your run with phrases like:

  • "Remaining gap"
  • "Natural next steps"
  • "I did not push"
  • "I did not resolve threads"

If those items still remain, you are not done and must continue.


Step 1 — Review Comments

Using the gh tool:

  1. Retrieve all review comments on the pull request.
  2. Process each comment individually.

Default assumption:

Every comment is potentially valid.

For each comment:

  1. Read the comment and surrounding code.
  2. Investigate the concern raised.
  3. Determine whether the issue is:
  • a real defect
  • a valid improvement
  • a misunderstanding
  • already resolved
  • no longer applicable

Step 2 — Implement Fixes

If the comment identifies a real issue:

  1. Implement the fix.
  2. Keep the fix minimal and focused.
  3. Follow repository coding standards.
  4. Add a regression test if the issue represents a bug.

After implementing the fix:

  • respond to the review comment explaining the change
  • resolve the thread using the gh tool
  • if code changed, continue through validation, commit, push, and CI re-checks before stopping

Read the full file on GitHub · 217 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. 26d ago First seen · 217 lines · 10 tokens per session scan A 7808cc6de8cf

Subscribe to this mod's changes

pr-converge is a command published in the GitHub repository chrisgleissner/llm-tools (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 10 tokens to every session and 1,033 once invoked, about $0.0000 per session on Opus 5.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-10-03.