code-reviewer

An agent that reviews recent code and configuration changes for quality, security, maintainability, and production reliability.

In plain words
What is it for?
Use it immediately after changing code, infrastructure, or configuration, especially before deploying changes that affect production behavior.
Why use it?
It pays particular attention to configuration drift, including unexplained numeric limits, timeouts, and connection-pool changes that could cause failures.

Agent

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/nickcrew/claude-cortex/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/NickCrew/Claude-Cortex
Per session 47 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,676 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.00047 $0.01676
Opus 5 $0.00023 $0.00838
Sonnet 5 $0.00009 $0.00335
Haiku 4.5 $0.00005 $0.00168

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

agents/code-reviewer.md · 246 lines

How it starts

The opening of the file, as written. The whole thing — 246 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 · 246 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 · 246 lines · 47 tokens per session scan A ef089dc2e7cd

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository NickCrew/Claude-Cortex (36 stars, last pushed 2mo ago), licensed MIT. It adds 47 tokens to every session and 1,676 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.