Roslyn-Backed-MCP: Agent for Claude Code

.claude/agents/pr-reconciler.md

pr-reconciler is an agent for Claude Code from darylmcd/Roslyn-Backed-MCP. It costs 0 tokens per session (1,849 once invoked), scanned A, original, MIT.

An agent for finishing one open GitHub pull request, a proposed code change, through checks, merge, and repository cleanup.

In plain words
What is it for?
It verifies pull-request readiness, waits for checks, squash-merges a clean request, removes its worktree, deletes the remote branch, and reports the result.
Why use it?
It handles the repetitive status checks and cleanup while refusing to merge when required checks fail or when a force merge would be needed.

Agent for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: model in frontmatter; mentions subagents.

This is darylmcd/Roslyn-Backed-MCP's own configuration. It tells Claude Code how to work on Roslyn-Backed-MCP 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 Roslyn-Backed-MCP configures →

Part of the roslyn-mcp plugin — 44 skills, 5 agents, 2 hooks, 2 MCP servers shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to darylmcd/Roslyn-Backed-MCP. 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/darylmcd/Roslyn-Backed-MCP/main/.claude/agents/pr-reconciler.md
Clone the repo
git clone --depth 1 https://github.com/darylmcd/Roslyn-Backed-MCP

Made for: Claude Code.

Or install roslyn-mcp, the plugin that ships this one along with the rest of its 44 skills, 5 agents, 2 hooks, 2 MCP servers.

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-reconciler

README.md
[![agentmods](https://agentmods.dev/badge/agents/darylmcd/roslyn-backed-mcp/pr-reconciler/github.svg)](https://agentmods.dev/agents/darylmcd/roslyn-backed-mcp/pr-reconciler)
Your own site
<a href="https://agentmods.dev/agents/darylmcd/roslyn-backed-mcp/pr-reconciler"><img src="https://agentmods.dev/badge/agents/darylmcd/roslyn-backed-mcp/pr-reconciler/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-reconciler

Your own site · 80×15
<a href="https://agentmods.dev/agents/darylmcd/roslyn-backed-mcp/pr-reconciler"><img src="https://agentmods.dev/badge/agents/darylmcd/roslyn-backed-mcp/pr-reconciler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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,849 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.00000 $0.01849
Opus 5 $0.00000 $0.00924
Sonnet 5 $0.00000 $0.00370
Haiku 4.5 $0.00000 $0.00185

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

Security

Grade A, and why

pr-reconciler 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/agents/pr-reconciler.md · 111 lines

How it starts

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

You reconcile ONE open PR through to merge and cleanup. Mechanical operations only — never bypass failing checks, never force-merge.

Not auto-spawned by /backlog-remediate. The current workflow lands PRs via /ship in the parent context — a cold subagent can't run the destructive cleanup commands (git push origin --delete, git worktree remove) without tripping PreToolUse SECURITY WARNINGs. This agent is retained for manual/standalone single-PR merge+cleanup, or for a future flow that invokes it explicitly.

Input contract

The orchestrator provides:

  • prNumberOrUrl — PR number or full URL
  • branch — typically remediation/<initiative.id>
  • worktreePath — typically .worktrees/<initiative.id> (or null if branch-only)

Legacy / accepted but ignored (kept for backwards compatibility with older orchestrator briefs that still pass them):

  • planPath — ignored; orchestrator owns plan.md edits.
  • initiativeId — ignored for state mutation; may appear in log output.

If any required field is missing, emit STATUS: error with the missing field named.

Steps

1. Verify PR is ready to merge

gh pr view <n> --json state,mergeable,mergeStateStatus,mergeCommit,statusCheckRollup,reviewDecision

Decision table:

Condition Action MERGED_BY in report
state == "OPEN" AND mergeable == "MERGEABLE" AND mergeStateStatus == "CLEAN" proceed to step 2 pr-reconciler
mergeStateStatus == "BLOCKED" due to pending checks wait 60s, retry up to 12 times (12-min ceiling) with a one-line progress notification between attempts (e.g. still pending after Nm — retry K/12); if still not green after 12 retries, emit STATUS: not-ready and exit. Any check transitioning to fail/error during the loop short-circuits to the failing-check row below — the 12×60s budget is ONLY for IN_PROGRESS / PENDING checks.
Any check is failing emit STATUS: not-ready with the failing check names and exit
reviewDecision == "CHANGES_REQUESTED" emit STATUS: not-ready (review gate) and exit
state == "MERGED" (pre-existing) skip the gh pr merge call entirely; proceed to step 3 (cleanup only) preexisting (capture mergeCommit.oid as MERGE_SHA)
state == "CLOSED" (not merged) emit STATUS: closed-without-merge and exit

Read the full file on GitHub · 111 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 Changed eeb8d4228010
  2. 10d ago First seen · 111 lines · 0 tokens per session scan A df0b2dcf82c7

Subscribe to this mod's changes

pr-reconciler is an agent published in the GitHub repository darylmcd/Roslyn-Backed-MCP (1 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,849 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.

Related

Other agents, from other repositories

deployment-specialist

Handles all deployment operations.

luongnv89/claude-howto · 8 tokens

geo-roadmap-release-manager

Manages SemVer decisions, package version bump proposals, roadmap alignment, release readiness, tag checklist, CI gate review, and post-merge release sequencing for GEO Optimizer and GeoReady.

Auriti-Labs/geo-optimizer-skill · 44 tokens

release-validator

Validates release readiness by checking tests, build, dependencies, and changelog. Use before creating a release.

rlajous/claude-code-commands · 25 tokens

pr-ghostwriter

Kod değişikliklerinden PR açıklaması, commit mesajı ve changelog üretir. Gerçek diff'i okuyarak değişikliğin ne, neden ve nasıl olduğunu açıklar. Kullanıcı PR açmak, commit mesajı yazmak veya release notu hazırlamak istediğinde kullanılır. Jenerik açıklama üretmez — her zaman gerçek değişikliğe özgü yazar.

komunite/kalfa · 81 tokens

iris

GitHub operations specialist — branches, pull requests, issues, releases, tags. Called by zeus after review. Never pushes or merges without explicit human approval. Integrates with VS Code GitHub Pull Requests extension.

ils15/pantheon-legacy · 45 tokens

shipper

Deployment pipeline agent that executes the full ship sequence: pre-ship checks, conventional commit, feature branch + PR, CI verification, and rollback documentation. Use in Phase 5 after Gate 2 passes. Never commits directly to main. Not for implementation or review approval.

ngocsangyem/MeowKit · 57 tokens