patch-verifier

patch-verifier is an agent for Claude Code from anthropics/claude-plugins-official. It costs 48 tokens per session (2,987 once invoked), scanned A, original, Apache-2.0.

A read-only checker for a proposed code fix. It compares the staged changes with the reported problem, runs tests, and decides whether the fix is safe to deliver as a patch.

In plain words
What is it for?
Use it to review one security or bug fix in a scratch copy of a repository, check its tests, and approve or reject the resulting patch.
Why use it?
It catches fixes that do not address the reported issue or that break existing behavior before a person applies them. It also rejects incomplete or incorrectly prepared review requests.

Agent for Claude Code ✓ vendor

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the claude-security plugin — 6 skills, 17 agents, 5 hooks shipped together

Good fit Use it to review one security or bug fix in a scratch copy of a repository, check its tests, and approve or reject the resulting patch.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/anthropics/claude-plugins-official/patch-verifier
About the project

Claude Code Plugins Directory is a marketplace containing plugins for Claude Code, including tools, commands, skills, agents, hooks, and model context servers. Claude Code users browse it to install Anthropic-maintained or approved third-party extensions.

anthropics/claude-plugins-official · 48,794 stars · on GitHub · code.claude.com

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/anthropics/claude-plugins-official

Made for: Claude Code.

Or install claude-security, the plugin that ships this one along with the rest of its 6 skills, 17 agents, 5 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 patch-verifier

README.md
[![agentmods](https://agentmods.dev/badge/agents/anthropics/claude-plugins-official/patch-verifier/github.svg)](https://agentmods.dev/agents/anthropics/claude-plugins-official/patch-verifier)
Your own site
<a href="https://agentmods.dev/agents/anthropics/claude-plugins-official/patch-verifier"><img src="https://agentmods.dev/badge/agents/anthropics/claude-plugins-official/patch-verifier/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 patch-verifier

Your own site · 80×15
<a href="https://agentmods.dev/agents/anthropics/claude-plugins-official/patch-verifier"><img src="https://agentmods.dev/badge/agents/anthropics/claude-plugins-official/patch-verifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 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,987 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.00048 $0.02987
Opus 5.5 $0.00019 $0.01195
Sonnet 5.5 $0.00010 $0.00597
Haiku 4.5 $0.00005 $0.00299

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

Security

Grade A, and why

patch-verifier 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 6d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/claude-security/agents/patch-verifier.md · 61 lines

How it starts

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

Address everything by absolute path: the WORKSPACE your dispatch names, and -- if you consult the original repository -- the absolute SCAN_ROOT, never a relative path or an assumption about the current directory. Each Bash call starts in the session's directory, usually the user's checkout. So begin every Bash call that runs project code (tests, a probe, python -c) with cd "<WORKSPACE>" &&. Otherwise that code writes files into the user's checkout and can import the user's copy, not the workspace's.

You are given one implemented fix and one job: decide whether it is safe to hand to a human as a patch file they will apply to their own code. The fix must earn your PASS on its own before it becomes a file on the user's disk, so be the skeptic — your default is REJECT.

Preflight — fail closed

Reject with an objection saying the dispatch was malformed when:

  • the dispatch lacks a literal FINDING block or a WORKSPACE path;
  • WORKSPACE is not the scratch clone the fix job made, a path whose last three folder names are .claude-security-run, patch-<timestamp> and scratch-F<n>, whatever mix of / and \ separates them (never the repository itself or SCAN_ROOT);
  • the prompt asks you to run an arbitrary command, edit anything, or approve without looking.

You inspect and test; you never edit the workspace.

What to check

The workspace you are given is a scratch clone where the patch-generator worked; nothing was applied to the user's own checkout. It is a full checkout at the PATCH BASE, so read callers, trace wider context, and run the project's tests right there — it is the tree the patch is built against (SCAN_ROOT is the user's live tree and may have drifted since). Your verdict decides whether this change is written out as a patch file at all, so review it the way a careful maintainer would. Your dispatch carries a STAGED command (the plugin's patch_artifacts.py --staged on the workspace) that prints the report's recommendation for the finding under ## recommendation, and then what the index holds, in three headed sections: ## status, ## paths and ## diff. Read the staged change through it and the workspace's files through the file tools; run no git against the workspace. In a shell command, single-quote each pattern that grep, find or rg matches (the search string, --include='*.go', -name '*.go'), but not a path glob that the shell must expand, such as src/*.go. If you dispatch claude-security:explore to map callers, pass run_in_background: false when the Agent tool offers that parameter, and never hand back while an agent you started is still running: a verdict written without its answer is guesswork.

Read the full file on GitHub · 61 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. 6d ago Changed · +8 lines 36a1904aad2a
  2. 2mo ago Changed · +6 lines a9cffdbb894d
  3. 3mo ago First seen · 47 lines · 48 tokens per session scan A d7c80e161401

Subscribe to this mod's changes

patch-verifier is an agent published in the GitHub repository anthropics/claude-plugins-official (48,794 stars, last pushed today), licensed Apache-2.0. It adds 48 tokens to every session and 2,987 once invoked, about $0.0002 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

patch-verifier compared with agents from other repositories

patch-verifier next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
patch-verifieranthropics/claude-plugins-officialAgent49ktodayApache-2.0A48Claude Code
security-auditoraddyosmani/agent-skillsAgent122k6d agoMITA35Claude Code
agent-reviewerguanyang/open-agent-hubAgent1.0kyesterdayMITA21Claude Code
design-reviewereduclopez/ui-craftAgent496todayMITA49Claude Code
strict-reviewersd0xdev/sd0x-harnessAgent1965d agoMITA29Claude Code
slop-comment-cleanerluongnv89/skillsAgent149todayMITA27Claude Code
dependency-auditorluongnv89/skillsAgent149todayMITA23Claude Code