branch-reviewer

branch-reviewer is an agent for Claude Code from mthines/agent-skills. It costs 85 tokens per session (5,530 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; reads .claude/ paths; mentions CLAUDE.md.

Part of the mthines-agent-skills plugin — 54 skills, 3 agents, 2 hooks 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 54 skills, 3 agents, 2 hooks.

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 85 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,530 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.00085 $0.05530
Opus 5.5 $0.00034 $0.02212
Sonnet 5.5 $0.00017 $0.01106
Haiku 4.5 $0.00009 $0.00553

Measured 1mo ago against content hash dd3dfbe57c8c, 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 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.

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 · 367 lines

How it starts

The opening of the file, as written. The whole thing — 367 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 · 367 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 Changed · +17 lines dd3dfbe57c8c
  2. 1mo ago Changed · +12 lines 9148d32574a1
  3. 1mo ago Changed · +5 lines · -163 tokens per session 9f170ae5d6b3
  4. 2mo ago Changed · +101 lines 862e2d1726c6
  5. 2mo 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 (22 stars, last pushed yesterday), licensed MIT. It adds 85 tokens to every session and 5,530 once invoked, about $0.0003 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

branch-reviewer compared with agents from other repositories

branch-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
branch-reviewermthines/agent-skillsAgent22yesterdayMITC85Claude Code
scope-guardRune-kit/runeAgent962d agoMITA41Claude Code
git-historyronaknnathani/relayAgent4427d agoMITA66Claude Code
prior-pr-historyronaknnathani/relayAgent4427d agoMITA65Claude Code
historical-contextandyzengmath/solitonAgent15mo agoMITA15Claude Code
ralph-reviewerjavi22020/ralphAgent17mo agononeA69Claude Code
component-improverdavila7/claude-code-templatesAgent35kyesterdayMITA39Claude Code