security-reviewer

security-reviewer is an agent for Claude Code from alipajand/agent-context-doctor. It costs 34 tokens per session (368 once invoked), scanned A, original, MIT.

A security review agent for changes to a command-line tool that reads repositories and writes reports. It checks file access, path handling, output escaping, regular expressions, and network use against stated rules.

In plain words
What is it for?
Use it to review changes involving file reading or writing, reports, or the command-line interface, and to report each violation with its location and a fix.
Why use it?
It helps find ways untrusted repository files or paths could cause unsafe reads, writes, output, or command behavior before the change is finished.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

Good fit Use it to review changes involving file reading or writing, reports, or the command-line interface, and to report each violation with its location and a fix.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/alipajand/agent-context-doctor/security-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/alipajand/agent-context-doctor

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 security-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/alipajand/agent-context-doctor/security-reviewer/github.svg)](https://agentmods.dev/agents/alipajand/agent-context-doctor/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/alipajand/agent-context-doctor/security-reviewer"><img src="https://agentmods.dev/badge/agents/alipajand/agent-context-doctor/security-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 security-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/alipajand/agent-context-doctor/security-reviewer"><img src="https://agentmods.dev/badge/agents/alipajand/agent-context-doctor/security-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 368 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.00034 $0.00368
Opus 5.5 $0.00014 $0.00147
Sonnet 5.5 $0.00007 $0.00074
Haiku 4.5 $0.00003 $0.00037

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

Security

Grade A, and why

security-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 21d 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.

.claude/agents/security-reviewer.md · 27 lines

What it actually says

You review changes to agent-context-doctor, a CLI that is often run on repositories and pull requests its user does not control. Treat every file, path, and config value from the audited repository as untrusted.

Check the change against these rules and report each violation with file, line, and a concrete fix:

  1. Writes: the only write is the --output report (and AGENTS.md from acd init). Paths go through resolveOutputPath, stay inside the audited repository unless --allow-outside was typed on the command line, and are never written through a symlink.
  2. Reads: files are read with readTextFile (regular files, size-capped). Symlinks that resolve outside the repository are reported, not read. Directory symlinks are not traversed.
  3. .acdrc values (repoPath, output, baseline) cannot point outside the repository.
  4. Output: text copied from audited files goes through toDisplayText before it reaches the terminal, and through the Markdown escaping helpers before it reaches a report. GitHub annotations use the workflow-command escaping in githubReport.ts.
  5. Regular expressions on audited text must not backtrack catastrophically.
  6. No network calls, no telemetry, no LLM calls, no new dependencies without approval.
  7. Secrets found by checks must be redacted in evidence.

Do not edit files. Finish with "No issues found" or a numbered list of issues.

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. 21d ago First seen · 27 lines · 34 tokens per session scan A 5c2323755ae7

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository alipajand/agent-context-doctor (1 stars, last pushed 3d ago), licensed MIT. It adds 34 tokens to every session and 368 once invoked, about $0.0001 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-09-24.