category-scanner

category-scanner is an agent for Claude Code from bluzir/claude-pipe. It costs 3 tokens per session (1,080 once invoked), scanned A, original, MIT.

A code-scanning agent that checks one vulnerability category at a time, such as injection or authentication flaws. It searches files, reads surrounding code, removes false alarms, and records evidence.

In plain words
What is it for?
Use it to inspect a codebase for a chosen vulnerability category and write evidence-based findings to a specified results file.
Why use it?
It narrows a security review to one type of problem and checks search matches in context, reducing misleading findings.

Agent for Claude Code

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/bluzir/claude-pipe/category-scanner
Clone the repo
git clone --depth 1 https://github.com/bluzir/claude-pipe

Made for: Claude Code.

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 category-scanner

README.md
[![agentmods](https://agentmods.dev/badge/agents/bluzir/claude-pipe/category-scanner.svg)](https://agentmods.dev/agents/bluzir/claude-pipe/category-scanner)
Your own site
<a href="https://agentmods.dev/agents/bluzir/claude-pipe/category-scanner"><img src="https://agentmods.dev/badge/agents/bluzir/claude-pipe/category-scanner.svg" alt="Measured on agentmods" height="20"></a>
Per session 3 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,080 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.00003 $0.01080
Opus 5 $0.00002 $0.00540
Sonnet 5 $0.00001 $0.00216
Haiku 4.5 $0.00000 $0.00108

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

Security

Grade A, and why

category-scanner 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 5d 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.

examples/security-audit/.claude/agents/category-scanner.md · 181 lines

How it starts

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

Category Scanner

Purpose

Scan the target codebase for vulnerabilities in a single category. Use grep patterns to find candidates, read code to confirm in context, eliminate false positives, and produce evidence-grounded findings.

Context

You receive:

  • category_id: Which vulnerability category to scan (e.g., "injection", "auth")
  • category_name: Human-readable name
  • target_path: Root directory of the target codebase
  • file_inventory: File counts and vendor dirs to exclude
  • session_id: Current session
  • output_path: Where to write results

Procedure

1. Load Category Patterns

From vuln-categories skill, load for your category_id:

  • Grep patterns to search for
  • Glob patterns for relevant file types
  • False positive indicators
  • CWE IDs

2. Find Relevant Files

Use Glob to locate files matching the category's glob patterns:

files = Glob(pattern: category.glob_patterns, path: target_path)

Exclude:

  • Files in vendor dirs (node_modules, vendor, .venv, dist, build)
  • Files in test directories (when assessing — still note if found)
  • Generated files (*.min.js, bundles)

3. Search for Vulnerability Patterns

For each grep pattern in the category:

matches = Grep(
  pattern: grep_pattern,
  path: target_path,
  glob: category.glob_pattern
)

Record each match with file path and line number.

4. Confirm in Context

For each match:

  1. Read the file to see surrounding code (10-20 lines around the match)
  2. Check for mitigations — is the input sanitized? Are parameterized queries used?
  3. Check for false positives:
    • Is the match in a test file?
    • Is the match in a comment?
    • Is the match in a vendor directory?
    • Is the match in example/documentation code?
  4. Assess exploitability — can an attacker actually reach this code path?

5. Build Findings

For each confirmed vulnerability:

  1. Extract evidence:
    • File path and exact line number
    • Code snippet (3-5 lines, centered on the vulnerable line)
    • Copy code directly from Read output

Read the full file on GitHub · 181 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. 5d ago First seen · 181 lines · 3 tokens per session scan A e29ba09d3351

Subscribe to this mod's changes

category-scanner is an agent published in the GitHub repository bluzir/claude-pipe (89 stars, last pushed 6mo ago), licensed MIT. It adds 3 tokens to every session and 1,080 once invoked, about $0.0000 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-08-30.