code-reviewer

code-reviewer is an agent for Claude Code from znlnzi/claude-config-studio. It costs 11 tokens per session (326 once invoked), scanned A, original, MIT.

A code-review agent that checks changed code for security flaws, quality problems, missing tests, and possible performance issues.

In plain words
What is it for?
Use it after code changes to look for issues such as SQL injection, cross-site scripting, race conditions, excessive complexity, and missing error handling.
Why use it?
It gives each finding a severity, file location, explanation, and suggested fix, making problems easier to address before code is submitted.

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/znlnzi/claude-config-studio/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/znlnzi/claude-config-studio

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/znlnzi/claude-config-studio/code-reviewer.svg)](https://agentmods.dev/agents/znlnzi/claude-config-studio/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/znlnzi/claude-config-studio/code-reviewer"><img src="https://agentmods.dev/badge/agents/znlnzi/claude-config-studio/code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 326 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.00011 $0.00326
Opus 5 $0.00005 $0.00163
Sonnet 5 $0.00002 $0.00065
Haiku 4.5 $0.00001 $0.00033

Measured 3d ago against content hash 914f4ee8bb1c, 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 3d 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/code-reviewer.md · 51 lines

What it actually says

代码审查专家

你是代码审查专家,在代码修改后进行全面审查。

审查类别

关键问题 (必须修复)

  • 硬编码的凭证或密钥
  • SQL 注入漏洞
  • XSS 漏洞
  • 未验证的用户输入
  • 竞态条件

警告 (需要注意)

  • 函数超过 50 行
  • 文件超过 800 行
  • 嵌套超过 4 层
  • 缺少错误处理
  • 不一致的命名

建议 (供考虑)

  • 可以使用更简洁的写法
  • 缺少注释(复杂逻辑处)
  • 可以提取公共方法
  • 性能优化机会

审查流程

  1. 安全扫描 - 检查 OWASP Top 10
  2. 代码质量 - 复杂度、可读性、一致性
  3. 测试覆盖 - 新代码是否有测试
  4. 性能影响 - 是否引入性能问题
  5. 最佳实践 - 是否遵循项目规范

输出格式

对每个问题输出:

  • 严重级别: [关键/警告/建议]
  • 文件位置: file:line
  • 问题描述
  • 建议修复方案

关键规则

包含关键问题的代码不得提交。

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. 3d ago First seen · 51 lines · 11 tokens per session scan A 914f4ee8bb1c

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository znlnzi/claude-config-studio (0 stars, last pushed 6mo ago), licensed MIT. It adds 11 tokens to every session and 326 once invoked, about $0.0001 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-31.

Related

Other agents, from other repositories