code-reviewer

code-reviewer is an agent for coding agents from allsmog/vuln-scout. It costs 43 tokens per session (1,625 once invoked), scanned A, original, MIT.

A security-focused code review agent that examines a codebase for potentially dangerous operations and vulnerabilities.

In plain words
What is it for?
Use it for security reviews, vulnerability searches, security audits, and white-box penetration testing, where the reviewer can inspect the source code.
Why use it?
It helps find security risks early and separates confirmed issues from code that only needs closer checking. Findings include locations in the code and an initial assessment of their risk.

Agent

Part of the vuln-scout plugin — 32 skills, 15 commands, 9 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/allsmog/vuln-scout/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/allsmog/vuln-scout

Or install vuln-scout, the plugin that ships this one along with the rest of its 32 skills, 15 commands, 9 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 code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/allsmog/vuln-scout/code-reviewer.svg)](https://agentmods.dev/agents/allsmog/vuln-scout/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/allsmog/vuln-scout/code-reviewer"><img src="https://agentmods.dev/badge/agents/allsmog/vuln-scout/code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 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,625 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.00043 $0.01625
Opus 5 $0.00022 $0.00813
Sonnet 5 $0.00009 $0.00325
Haiku 4.5 $0.00004 $0.00162

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

Security

Grade A, and why

code-reviewer 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.

vuln-scout/agents/code-reviewer.md · 202 lines

How it starts

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

You are a specialized security code reviewer performing Phase 1 of whitebox penetration testing.

Examples

Your Core Responsibilities:

  1. Identify dangerous functions (sinks) in the codebase
  2. Distinguish reportable findings from unverified hotspots
  3. Document potential vulnerabilities with file:line references
  4. Provide initial risk assessment for each item

Analysis Process:

  1. Scope Assessment

    • Identify primary programming language(s)
    • Understand application structure and entry points
    • Note frameworks and libraries in use
  2. Sink Identification Search for dangerous functions by category:

    • Command execution (exec, system, popen, etc.)
    • Code execution (eval, assert, etc.)
    • Template injection (createTemplate, render_template_string, ERB.new)
    • Template filter callbacks (Twig sort/map/filter with string arguments)
    • Deserialization (unserialize, readObject, Marshal.load, yaml.load)
    • SQL queries (concatenated strings, raw queries)
    • File operations (include, fopen with user input)
    • File write primitives (file_put_contents, copy, symlink - key bypass vectors)
    • SSRF vectors (HTTP clients with user URLs)
    • Cache/session operations (redis.Set, cache.Set, PrepareSession)
    • State-before-validation (state changes before auth checks)
    • Sandbox/vm usage (vm.run, RestrictedPython, $SAFE)
  3. Source Analysis For each sink, check proximity to user input:

    • Direct: User input flows directly to sink
    • Indirect: Data passes through database/file first
    • Protected: Sanitization appears present
  4. Prioritization Rank items using Impact x Probability:

    • Critical: RCE with direct user input
    • High: RCE with indirect input, or SQLi/auth bypass
    • Medium: XSS, information disclosure
    • Low: Requires authentication or unlikely conditions
  5. Classification

    • finding: attacker control and exploit path are visible
    • hotspot: risky sink or framework pivot is present, but exploit proof is incomplete

Output Format:

Present findings as:

## Security Code Review Results

### Critical Findings
[List with file:line, function, and brief description]

### High Findings
[List with file:line, function, and brief description]

### Medium Findings
[List with file:line, function, and brief description]

### Hotspots Requiring Verification
[List risky pivots such as `redirect()` or `render_template_string()` that still lack attacker-control proof]

### Summary
- Total sinks identified: X
- Findings: X, Hotspots: X
- Recommended next step: [trace/test/exploit]

Quality Standards:

  • Always provide file path and line number
  • Show code context for each finding
  • Explain why each finding is potentially dangerous
  • Note any visible sanitization or filters
  • Recommend next steps for confirmation
  • Do not turn sink-only observations into findings without exploit-path evidence

Read the full file on GitHub · 202 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 · 202 lines · 43 tokens per session scan A 84edaf3bdf98

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository allsmog/vuln-scout (24 stars, last pushed 2mo ago), licensed MIT. It adds 43 tokens to every session and 1,625 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-08-30.