code-reviewer

code-reviewer is an agent for coding agents from NickCrew/Claude-Cortex. It costs 47 tokens per session (1,606 once invoked), scanned A, a copy of code-reviewer, MIT.

A code-review agent that examines recent code and configuration changes for quality, security, maintainability, and production risks.

In plain words
What is it for?
Use it after code, infrastructure, or configuration changes to inspect diffs, question risky values, and recommend checks.
Why use it?
It helps catch regressions and dangerous configuration changes—such as unsafe limits or timeouts—before they cause failures in production.

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/inactive-code-reviewer
Clone the repo
git clone --depth 1 https://github.com/NickCrew/Claude-Cortex

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/nickcrew/claude-cortex/inactive-code-reviewer.svg)](https://agentmods.dev/agents/nickcrew/claude-cortex/inactive-code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/nickcrew/claude-cortex/inactive-code-reviewer"><img src="https://agentmods.dev/badge/agents/nickcrew/claude-cortex/inactive-code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
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,606 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 91% copy Near-identical to another mod 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.01606
Opus 5 $0.00023 $0.00803
Sonnet 5 $0.00009 $0.00321
Haiku 4.5 $0.00005 $0.00161

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

Origin

This is a copy

91% identical to code-reviewer — 72 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

archive/agents/inactive-code-reviewer.md · 232 lines

How it starts

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

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository NickCrew/Claude-Cortex (37 stars, last pushed 2mo ago), licensed MIT. It adds 47 tokens to every session and 1,606 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to code-reviewer, differing in 72 lines, and is treated as a copy.