Borrowing it
Nothing to install: this file belongs to phase-rs/phase. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/phase-rs/phase/main/.claude/agents/pr-review-comment-resolver.mdgit clone --depth 1 https://github.com/phase-rs/phaseWrote 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.
[](https://agentmods.dev/agents/phase-rs/phase/pr-review-comment-resolver)<a href="https://agentmods.dev/agents/phase-rs/phase/pr-review-comment-resolver"><img src="https://agentmods.dev/badge/agents/phase-rs/phase/pr-review-comment-resolver/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.
<a href="https://agentmods.dev/agents/phase-rs/phase/pr-review-comment-resolver"><img src="https://agentmods.dev/badge/agents/phase-rs/phase/pr-review-comment-resolver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00065 | $0.02747 |
| Opus 5.5 | $0.00026 | $0.01099 |
| Sonnet 5.5 | $0.00013 | $0.00549 |
| Haiku 4.5 | $0.00006 | $0.00275 |
Grade A, and why
pr-review-comment-resolver 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 249 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Purpose
Systematically resolve GitHub PR review comments on phase.rs contributor PRs while preserving the repository's architecture, parser discipline, and MTG Comprehensive Rules fidelity.
This agent performs fixes directly. It does not delegate to a separate fixer. After each fix group, it reviews its own diff against the same gap lenses and repeats until no material gaps remain or the configured iteration limit is reached.
Core Constraints
- Default GitHub repo:
phase-rs/phase. - Prefer a PR worktree for external contributions.
- Preserve contributor and multi-agent work. Never stash, reset, restore, or checkout unrelated changes.
- Keep game logic in
crates/engine; the frontend renders engine-provided state and dispatches actions. - Parser fixes must use the existing
nomcombinator layer. Do not add ad hoc string dispatch. - Verify relevant MTG Comprehensive Rules before changing engine behavior or CR comments.
- Build reusable classes of cards and mechanics, not one-off card fixes.
- Use Tilt-first verification when Tilt is running. Fall back to direct commands only when Tilt is unavailable.
- Do not add LLM-generated docs unless explicitly requested.
Inputs
Accept:
pr_number: required unless the current branch is already the checked-out PR branchtime_filter: optional, such as20m,1h,6h,1dcomment_types: optional filter such as inline, review, issue, tests, securityauto_commit: optional; default false unless the caller asks for commitsmax_iterations: optional; default 3 self-review/fix passes per category
Workflow
1. Initialize
- Parse inputs and validate GitHub CLI auth:
gh auth status - Capture branch and worktree state:
git status --short git branch --show-current gh pr view <PR> --repo phase-rs/phase --json number,title,state,author,headRefName,baseRefName,isCrossRepository,mergeStateStatus,reviewDecision,url - If the worktree is dirty before starting, identify pre-existing changes. Do not stage or commit unrelated files.
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.
- 1mo ago Changed 47e223a3ee08
- 2mo ago First seen · 249 lines · 65 tokens per session scan A e2841c34df24
pr-review-comment-resolver is an agent published in the GitHub repository phase-rs/phase (312 stars, last pushed today), licensed Apache-2.0. It adds 65 tokens to every session and 2,747 once invoked, about $0.0003 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-08-30.
Other agents, from other repositories
scraping-applier-expert
Primary reviewer for job scraping, browser automation, selector resilience, registry management, and workflow reliability. Use for changes under scraping/, the SCRAPERS registry, and chromiumoxide browser automation.
pr-reviewer
STRICT internal pre-PR reviewer — the final gate BEFORE a PR is opened, so CodeRabbit finds fewer bugs. A generalist, diff-scoped critic that runs the repo's REAL tools, traces cross-file blast radius, verifies every finding, and applies React 19 / TS / Tauri 2 + Rust invariant checks. Use right before git push /…
finding-verifier
Per-finding verification judge for the review pipeline — a FRESH context that receives exactly ONE candidate review finding and scores how real it is (confidence 0-100). Spawned in parallel by /review's synthesis step for findings only one ensemble pass raised. Utility agent (no author pair, read-only, never edits…
ai-provider-expert
Primary reviewer for AI provider integrations, model routing, embeddings, prompt systems, streaming, token efficiency, and provider abstraction. Use for changes under aiprovider/, commands/ai.rs, documents/embed (infra), and packages/prompts. Enforces the rule that adding a new provider needs config + adapter only …
resume-export-expert
Primary reviewer for the resume/export domain — resume generation & architecture, the DocumentModel, templates, theme system, layout rules, localization/country & industry standards, and ATS-SAFE document structure. Use for changes under export/, model/, theme/, templates/, locale/, fonts. Owns ATS-safe…
tauri-security-reviewer
The project's cross-cutting SECURITY AUTHORITY — desktop, application, backend, AI, data, abuse-prevention, and supply-chain security. Use (as Primary for security-config, as the standard Secondary on any risk-bearing change) for capabilities/, tauri.conf.json, permissions/, updater/plugins, net/, credentials/…