branch-reviewer

branch-reviewer is an agent for Claude Code from mthines/agent-skills. It costs 248 tokens per session (5,192 once invoked), scanned C, original, MIT.

A read-only reviewer for a local branch or working tree that has no pull request. It examines the local difference from a base and writes findings to a file instead of posting GitHub review comments.

In plain words
What is it for?
Use it to inspect a local diff, identify likely issues, verify them with local checks, and save the results for another workflow to apply.
Why use it?
It provides code-review findings before a pull request exists and avoids GitHub API calls. It also keeps reviewing separate from applying fixes, so the reviewer does not edit the work it examines.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md; mentions subagents.

Part of the mthines-agent-skills plugin — 57 skills, 5 agents shipped together

Good fit Use it to inspect a local diff, identify likely issues, verify them with local checks, and save the results for another workflow to apply.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mthines/agent-skills/branch-reviewer
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/mthines/agent-skills

Made for: Claude Code.

Or install mthines-agent-skills, the plugin that ships this one along with the rest of its 57 skills, 5 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 branch-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/mthines/agent-skills/branch-reviewer/github.svg)](https://agentmods.dev/agents/mthines/agent-skills/branch-reviewer)
Your own site
<a href="https://agentmods.dev/agents/mthines/agent-skills/branch-reviewer"><img src="https://agentmods.dev/badge/agents/mthines/agent-skills/branch-reviewer/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 branch-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/mthines/agent-skills/branch-reviewer"><img src="https://agentmods.dev/badge/agents/mthines/agent-skills/branch-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 248 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,192 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00248 $0.05192
Opus 5.5 $0.00099 $0.02077
Sonnet 5.5 $0.00050 $0.01038
Haiku 4.5 $0.00025 $0.00519

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

Security

Grade C, and why

branch-reviewer scanned grade C with 1 finding 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 19d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

`rm -rf` anywhere in your operation.
agents/branch-reviewer.md · 333 lines

How it starts

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

branch-reviewer Agent — PR-less review over a local diff

You review a local diff and write findings to a file. You make no GitHub API calls — not to read the diff, not to post a finding, not to check CI.

You exist because pr-reviewer scopes branch-only review out by design (its own § Out of scope: "this agent operates on PRs (draft PRs are fine); branch-only review without a PR is out of scope"), and because the pipeline behind it turned out to be almost entirely local already: the finders read a workdir, the verifier runs tsc and tests, and the impact graph resolves consumers with rg and reads dependency versions out of a lockfile. Only two things in that pipeline actually needed GitHub — the code, and the place to put the findings. This agent supplies both locally and changes nothing else.

You are read-only. You never edit a file, stage, commit, push, or create a branch. The loop that dispatched you applies what you find; mixing the two roles is what makes a reviewer agree with itself.


The one rule that governs every other

Reuse the detection core by reference. Never restate it, never adapt it, never "port" it.

The rule files below are the same bytes pr-reviewer runs and the same bytes the bug-detection L2 eval reads as its live rubric. A copy here would fork the detection core into two homes, and the eval would measure one of them while you ran the other — the repo's own mock-that-reimplements-the-thing-under-test failure, at the worst possible place.

Phase Rule file — read it, do not summarize it What you change
A materialize workspace.md Replaced. See Phase A′
B impact graph impact-graph.md Nothing — same script, local input
C depth routing depth-routing.md One input substituted, see Phase C′
D finders finders.md, finder-consumer-impact.md, finder-dependency.md One input dropped, see Phase D′
E verify finding-verifier.md, verification-receipt.md Nothing. Tier 3 is always available — this is your own work, on your own machine
F shape comment-shape.md Prose rules unchanged; rendering replaced, see Phase F′

Read the full file on GitHub · 333 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. 19d ago Changed · +101 lines 862e2d1726c6
  2. 1mo ago First seen · 232 lines · 248 tokens per session scan C 33def3506a0f

Subscribe to this mod's changes

branch-reviewer is an agent published in the GitHub repository mthines/agent-skills (19 stars, last pushed today), licensed MIT. It adds 248 tokens to every session and 5,192 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-13.

Related

Other agents, from other repositories

scope-guard

Passive scope monitor — compares git changes against plan, flags out-of-scope files. Advisory only (does not block). Auto-triggered by L1 orchestrators when changes exceed plan.

Rune-kit/rune · 41 tokens

git-history

Review a change against the history of the code it touches. Use git blame and log to catch changes that contradict why the surrounding code exists — reintroducing a fixed bug, removing a guard that was added on purpose, or undoing a deliberate decision. Reports only high-confidence findings backed by a specific past…

ronaknnathani/relay · 66 tokens

prior-pr-history

Review a change against prior pull requests. Use the PR/commit history to catch an approach that was already tried, discussed, or reverted — so the change does not re-litigate a settled decision or redo work that was rejected. Reports only high-confidence findings backed by a specific prior PR or revert.

ronaknnathani/relay · 65 tokens

historical-context

Uses git history to identify high-risk patterns in changed files.

andyzengmath/soliton · 15 tokens

ralph-reviewer

Critique a recent diff or implementation choice during the Ralph loop with a fresh, untainted context. Invoke when the parent agent has just made a non-trivial change (architectural decision, complex refactor, change touching unfamiliar code, change to security-sensitive paths) and wants a second opinion before…

javi22020/ralph · 69 tokens

design-reviewer

Adversarial design critique on a diff, file, or rendered surface. Use to review UI/design quality or audit a diff/PR for design issues. One of a parallel verify team alongside a11y-auditor.

educlopez/ui-craft · 49 tokens