arn-code-batch-pr-analyzer

arn-code-batch-pr-analyzer is an agent for Claude Code from AppsVortex/arness. It costs 269 tokens per session (2,740 once invoked), scanned A, original, MIT.

A coding agent that reviews several open batch pull requests, which are proposed code changes grouped for review. It compares their checks, reviews, changed files, conflicts, and shared patterns.

In plain words
What is it for?
Use it to summarize the state of multiple pull requests, map file conflicts, identify cross-request issues, and recommend an order for merging them.
Why use it?
It helps reveal problems that may only appear when multiple changes are considered together, such as overlapping files or an unsafe merge order.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the arn-code plugin — 37 skills, 18 agents shipped together

Good fit Use it to summarize the state of multiple pull requests, map file conflicts, identify cross-request issues, and recommend an order for merging them.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add AppsVortex/arness
Claude Code
/plugin install arn-code

Made for: Claude Code.

Or install arn-code, the plugin that ships this one along with the rest of its 37 skills, 18 agents.

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 arn-code-batch-pr-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/appsvortex/arness/arn-code-batch-pr-analyzer/github.svg)](https://agentmods.dev/agents/appsvortex/arness/arn-code-batch-pr-analyzer)
Your own site
<a href="https://agentmods.dev/agents/appsvortex/arness/arn-code-batch-pr-analyzer"><img src="https://agentmods.dev/badge/agents/appsvortex/arness/arn-code-batch-pr-analyzer/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 arn-code-batch-pr-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/agents/appsvortex/arness/arn-code-batch-pr-analyzer"><img src="https://agentmods.dev/badge/agents/appsvortex/arness/arn-code-batch-pr-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 269 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,740 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.00269 $0.02740
Opus 5.5 $0.00108 $0.01096
Sonnet 5.5 $0.00054 $0.00548
Haiku 4.5 $0.00027 $0.00274

Measured 1mo ago against content hash 3f14848cad85, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

arn-code-batch-pr-analyzer 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.

plugins/arn-code/agents/arn-code-batch-pr-analyzer.md · 239 lines

How it starts

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

Arness Batch PR Analyzer

Analyze all open batch PRs and produce a concise cross-PR report covering CI/review status, file conflicts, cross-PR patterns, and recommended merge order. This agent is spawned by arn-code-batch-merge to keep the heavy analysis (reading 8+ PR diffs, comparing files, checking CI/reviews) out of the main session context.

You are a background agent. You have no user interaction. Do not use AskUserQuestion.

You are NOT a merge executor (that is arn-code-batch-merge) and you are NOT a code reviewer (that is arn-code-task-reviewer). Your job is narrower: given a list of open batch PRs, produce a structured summary that batch-merge can display and act on.

Input

You receive a structured context block from the batch-merge orchestrator:

--- BATCH PR LIST ---
PR #42: F-003 Auth
  URL: https://github.com/org/repo/pull/42
  CHANGE_RECORD: .arness/plans/auth-system/CHANGE_RECORD.json

PR #43: F-005 API Layer
  URL: https://github.com/org/repo/pull/43
  CHANGE_RECORD: .arness/plans/api-layer/CHANGE_RECORD.json
--- END BATCH PR LIST ---

--- ANALYSIS CONTEXT ---
Platform: {platform} (github or bitbucket)
Code patterns path: {code_patterns_path}
Conflict classification reference: ${CLAUDE_PLUGIN_ROOT}/skills/arn-code-batch-merge/references/conflict-classification.md
--- END ANALYSIS CONTEXT ---

Parse:

  • PR list: Each entry has a PR number, feature name, URL, and CHANGE_RECORD path
  • Platform: github or bitbucket — determines which CLI tool to use
  • Code patterns path: Directory containing code-patterns.md for cross-PR pattern checking
  • Conflict classification reference: Path to the conflict classification taxonomy

Step 1: Gather PR Intelligence

For each PR in the list, fetch status data using the appropriate platform CLI.

GitHub

gh pr view {url} --json state,mergeable,reviews,reviewRequests,statusCheckRollup,headRefName,files,additions,deletions,changedFiles

Extract from the response:

  • State: open, closed, merged
  • CI status: Aggregate statusCheckRollup into pass / fail / pending. If all checks pass, report "pass". If any check fails, report "fail" and note the failing check name. If any check is pending and none fail, report "pending".
  • Review status: Aggregate reviews into approved / changes-requested / pending. Use the latest review from each reviewer. If reviewRequests has outstanding entries with no corresponding review, report "pending".
  • Mergeable: The mergeable field — MERGEABLE / CONFLICTING / UNKNOWN
  • Head branch: The headRefName field
  • Files changed: The changedFiles count, additions, deletions

Read the full file on GitHub · 239 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. 1mo ago First seen · 239 lines · 269 tokens per session scan A 3f14848cad85

Subscribe to this mod's changes

arn-code-batch-pr-analyzer is an agent published in the GitHub repository AppsVortex/arness (33 stars, last pushed 2mo ago), licensed MIT. It adds 269 tokens to every session and 2,740 once invoked, about $0.0011 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.

Related

Other agents, from other repositories

plan-synthesizer

Synthesizes cross-specialist input into a plan the team can commit to, recording decisions, rejected alternatives with reasons, the evidence behind each call, and the items still open. Reads the inputs from every specialist who contributed, reconciles their recommendations, and applies an evidence standard to each …

testdouble/han · 159 tokens

evolve-merge-to-main-gate

Merge-to-main promotion-readiness gate for the Evolve Loop (Evaluate archetype). The campaign executor invokes this at milestone/wave boundaries to verify a completed milestone's already-integrated work is ready to be promoted to main, emitting a PASS/WARN/FAIL verdict plus mergegate. signals. READ-ONLY — it never…

mickeyyaya/evolve-loop · 88 tokens

git-historian

Git history analyst for blame analysis, past decision context recovery, change pattern detection, and refactoring impact assessment. Use when reviewing changes to existing code that may break established patterns or when historical context is needed.

restarter/lets-workflow · 46 tokens

cad-reviewer-low

The low rung of cad-reviewer; bin/route.mjs picks it, not the user.

crenshawdev/cadence · 30 tokens

git-flow

An agent that coordinates a Git change from branch creation through commits and pull-request preparation, with release tagging when needed.

jtprogru/bear-skills · 83 tokens

sealer

The final, independent guarantor. Spawn once per ready pull request, after the review rounds settle, the pull request body and the changelog fragment are written, and the orchestrator has run the broad gate: it reads the gate's record, re-runs a sample of the smith's claims, reads every party's account against the…

MichaelYcJo/SpecSeal · 110 tokens