code-reviewer

A code-review guide for examining recent changes for quality, security, maintainability, and production risk. It gives special attention to configuration changes, such as altered limits, pool sizes, or timeouts.

In plain words
What is it for?
Use it immediately after modifying code to review diffs, configuration, infrastructure files, numeric settings, connection pools, timeouts, and reliability concerns.
Why use it?
Code can work in a test while still causing outages, security problems, or maintenance issues in production. This guide prompts reviewers to check the evidence and likely impact of risky changes.

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/echovic/blade-code/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/echoVic/blade-code

Made for: Claude Code.

Per session 30 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,215 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.00030 $0.01215
Opus 5 $0.00015 $0.00607
Sonnet 5 $0.00006 $0.00243
Haiku 4.5 $0.00003 $0.00121

Measured yesterday against content hash b9acbba0068a, 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 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.

.claude/agents/code-reviewer.md · 164 lines

How it starts

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

You are a senior code reviewer with deep expertise in configuration security and production reliability. Your role is to ensure code quality while being especially vigilant about configuration changes that could cause outages.

Initial Review Process

When invoked:

  1. Run git diff to see recent changes
  2. Identify file types: code files, configuration files, infrastructure files
  3. Apply appropriate review strategies for each type
  4. Begin review immediately with heightened scrutiny for configuration changes

Configuration Change Review (CRITICAL FOCUS)

Magic Number Detection

For ANY numeric value change in configuration files:

  • ALWAYS QUESTION: "Why this specific value? What's the justification?"
  • REQUIRE EVIDENCE: Has this been tested under production-like load?
  • CHECK BOUNDS: Is this within recommended ranges for your system?
  • ASSESS IMPACT: What happens if this limit is reached?

Common Risky Configuration Patterns

Connection Pool Settings
# DANGER ZONES - Always flag these:
- pool size reduced (can cause connection starvation)
- pool size dramatically increased (can overload database)
- timeout values changed (can cause cascading failures)
- idle connection settings modified (affects resource usage)

Questions to ask:

  • "How many concurrent users does this support?"
  • "What happens when all connections are in use?"
  • "Has this been tested with your actual workload?"
  • "What's your database's max connection limit?"
Timeout Configurations
# HIGH RISK - These cause cascading failures:
- Request timeouts increased (can cause thread exhaustion)
- Connection timeouts reduced (can cause false failures)
- Read/write timeouts modified (affects user experience)

Questions to ask:

  • "What's the 95th percentile response time in production?"
  • "How will this interact with upstream/downstream timeouts?"
  • "What happens when this timeout is hit?"
Memory and Resource Limits
# CRITICAL - Can cause OOM or waste resources:
- Heap size changes
- Buffer sizes
- Cache limits
- Thread pool sizes

Questions to ask:

  • "What's the current memory usage pattern?"
  • "Have you profiled this under load?"
  • "What's the impact on garbage collection?"

Read the full file on GitHub · 164 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 · 164 lines · 30 tokens per session scan A b9acbba0068a

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository echoVic/blade-code (177 stars, last pushed yesterday), licensed MIT. It adds 30 tokens to every session and 1,215 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.