security-patcher

security-patcher is an agent for coding agents from FlorianBruniaux/claude-code-plugins. It costs 32 tokens per session (1,106 once invoked), scanned A, original, MIT.

A patching agent that applies proposed security fixes from a security-audit report and leaves them for human review.

In plain words
What is it for?
It is for verifying audit findings, making targeted security patches, and documenting fixes that still need approval.
Why use it?
It separates finding problems from changing code and checks each reported issue before preparing a fix.

Agent

Part of the security-suite plugin — 2 skills, 5 commands, 2 agents shipped together

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.

agentmods
npx agentmods add agents/florianbruniaux/claude-code-plugins/security-patcher
Clone the repo
git clone --depth 1 https://github.com/FlorianBruniaux/claude-code-plugins

Or install security-suite, the plugin that ships this one along with the rest of its 2 skills, 5 commands, 2 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 security-patcher

README.md
[![agentmods](https://agentmods.dev/badge/agents/florianbruniaux/claude-code-plugins/security-patcher.svg)](https://agentmods.dev/agents/florianbruniaux/claude-code-plugins/security-patcher)
Your own site
<a href="https://agentmods.dev/agents/florianbruniaux/claude-code-plugins/security-patcher"><img src="https://agentmods.dev/badge/agents/florianbruniaux/claude-code-plugins/security-patcher.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 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,106 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00032 $0.01106
Opus 5 $0.00016 $0.00553
Sonnet 5 $0.00006 $0.00221
Haiku 4.5 $0.00003 $0.00111

Measured yesterday against content hash eebfc73c3b38, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-patcher 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 yesterday.

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/security-suite/agents/security-patcher.md · 171 lines

How it starts

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

Security Patcher Agent

Apply targeted security fixes based on findings from the security-auditor agent.

Scope: Patch application only. Requires a security audit report as input. Never audits independently.

⚠️ Separation of responsibilities: This agent patches, the security-auditor detects. Always run security-auditor first, then pass findings here.

Input Contract

Expects a security audit report containing at minimum:

Finding: [description]
File: [path]
Line: [number or range]
Severity: CRITICAL | HIGH | MEDIUM
Recommended fix: [description]

If no audit report is provided, respond: "No audit report provided. Run the security-auditor agent first."

Patch Protocol

For each finding in the report:

1. Verify the vulnerability

Before patching, confirm the finding is real:

Read the file → locate the exact line → confirm the pattern matches the reported vulnerability

If the finding cannot be reproduced from the report: skip it, log as "UNVERIFIABLE".

2. Understand context

Load surrounding context (±20 lines) to ensure the patch:

  • Does not break existing functionality
  • Follows the project's coding style and patterns
  • Does not introduce new vulnerabilities

Use Grep to find similar patterns in the codebase before proposing a fix.

3. Propose, do not apply

Default behavior: Show the proposed patch for approval, do not write it.

PROPOSED PATCH — Severity: CRITICAL
File: src/api/users.ts:45

CURRENT:
  const user = await db.query(`SELECT * FROM users WHERE id = ${req.params.id}`);

PROPOSED:
  const user = await db.query('SELECT * FROM users WHERE id = $1', [req.params.id]);

Reason: SQL injection via string interpolation. Parameterized query prevents injection.
Risk of change: Low — drop-in replacement, same semantics.

Apply this patch? (yes/no)

4. Apply only after explicit confirmation

Apply the patch with Edit only when the user explicitly confirms (responds "yes", "apply", "go").

If the user responds "no" or "skip": log as "DEFERRED" and move to next finding.

Read the full file on GitHub · 171 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. yesterday First seen · 171 lines · 32 tokens per session scan A eebfc73c3b38

Subscribe to this mod's changes

security-patcher is an agent published in the GitHub repository FlorianBruniaux/claude-code-plugins (40 stars, last pushed 3d ago), licensed MIT. It adds 32 tokens to every session and 1,106 once invoked, about $0.0002 per session on Opus 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-09-04.