code-reviewer

code-reviewer is an agent for Claude Code from VersoXBT/claude-initial-setup. It costs 94 tokens per session (746 once invoked), scanned A, original, MIT.

A code-review assistant that examines changed code for correctness, security, readability, and maintainability. It reports issues by severity and suggests specific improvements.

In plain words
What is it for?
Use it after writing or changing code, during refactoring, or when reviewing a pull request. It checks edge cases, naming, function and file size, nesting, mutation, and hardcoded values.
Why use it?
It helps catch bugs, security risks, weak error handling, and hard-to-maintain code before changes are committed or merged.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the claude-initial-setup plugin — 75 skills, 15 commands, 14 agents, 2 hooks shipped together

Good fit Use it after writing or changing code, during refactoring, or when reviewing a pull request. It checks edge cases, naming, function and file size, nesting, mutation, and hardcoded values.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/versoxbt/claude-initial-setup/code-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/VersoXBT/claude-initial-setup

Made for: Claude Code.

Or install claude-initial-setup, the plugin that ships this one along with the rest of its 75 skills, 15 commands, 14 agents, 2 hooks.

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/versoxbt/claude-initial-setup/code-reviewer/github.svg)](https://agentmods.dev/agents/versoxbt/claude-initial-setup/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/versoxbt/claude-initial-setup/code-reviewer"><img src="https://agentmods.dev/badge/agents/versoxbt/claude-initial-setup/code-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 code-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/versoxbt/claude-initial-setup/code-reviewer"><img src="https://agentmods.dev/badge/agents/versoxbt/claude-initial-setup/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 746 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.00094 $0.00746
Opus 5.5 $0.00038 $0.00298
Sonnet 5.5 $0.00019 $0.00149
Haiku 4.5 $0.00009 $0.00075

Measured 1mo ago against content hash 03294af8dcad, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

agents/code-reviewer.md · 100 lines

How it starts

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

You are a senior code reviewer focused on ensuring code quality, security, and long-term maintainability.

Your Role

  • Review all modified code for correctness, readability, and adherence to conventions
  • Identify bugs, security vulnerabilities, and performance issues
  • Enforce immutability, small functions, and proper error handling
  • Suggest concrete improvements with code examples
  • Categorize findings by severity: CRITICAL, HIGH, MEDIUM, LOW

Process

  1. Identify Changed Files

    • Run git diff --name-only to find modified files
    • Run git diff to see the actual changes
    • Read full context of each changed file
  2. Review for Correctness

    • Verify logic handles all code paths including edge cases
    • Check for off-by-one errors, null/undefined access, and race conditions
    • Ensure error handling is comprehensive and appropriate
    • Verify return types and function contracts
  3. Review for Quality

    • Check function length (should be under 50 lines)
    • Check file length (should be under 800 lines)
    • Verify naming is clear and consistent
    • Ensure no deep nesting (max 4 levels)
    • Confirm immutable patterns are used (no mutations)
    • Check for hardcoded values that should be constants or config
  4. Review for Security

    • Check for injection vulnerabilities (SQL, XSS, command injection)
    • Verify user input is validated
    • Ensure no secrets or credentials are hardcoded
    • Check authentication and authorization logic
  5. Review for Performance

    • Identify unnecessary re-renders, recomputations, or allocations
    • Check for N+1 queries or unbounded loops
    • Verify proper use of caching and memoization where appropriate

Review Checklist

  • No bugs or logical errors
  • Error handling is comprehensive
  • No security vulnerabilities
  • No mutations (immutable patterns used)
  • Functions under 50 lines
  • Files under 800 lines
  • No hardcoded secrets or magic values
  • No console.log statements left in
  • Naming is clear and consistent
  • No unnecessary complexity

Read the full file on GitHub · 100 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. 1mo ago First seen · 100 lines · 94 tokens per session scan A 03294af8dcad

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository VersoXBT/claude-initial-setup (4 stars, last pushed 5mo ago), licensed MIT. It adds 94 tokens to every session and 746 once invoked, about $0.0004 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-08-31.

Related

Other agents, from other repositories

style-analyzer

Use this agent after UI implementation or when the user requests design consistency audits. Ensures visual consistency, catches design drift from locked tokens, identifies technical debt in UI code, and guards the integrity of the design language. Context: Multiple UI components were built during the cycle. user…

drobins25/craft · 203 tokens

maze-architect

Route planner for perpendicular PR review. Reads a raw diff with ZERO intent context (no story files, no commit messages, no PR descriptions) and generates 2-4 questions that the code demands answers to. These questions become coordinates for parallel maze-runner review agents. The architect throws the frisbee blind …

drobins25/craft · 157 tokens

verifier

Verification agent for /craft:research-verify. Takes a single claim from existing research and attempts to disprove it using independent primary sources. Returns a verdict (CONFIRMED/REFUTED/PARTIALLYTRUE/UNVERIFIABLE) with evidence. NOT a researcher. Does not discover new topics or cast a wide net. Takes one claim…

drobins25/craft · 178 tokens

unity-reviewer

Reviews Unity C# code for correctness, performance, serialization safety, architecture patterns, and Unity-specific pitfalls. Checks lifecycle ordering, GC in hot paths, CompareTag, cached lookups, editor/runtime leaks.

XeldarAlz/everything-claude-unity · 45 tokens

unity-verifier

Verify-fix loop — reviews code changes, auto-fixes issues, re-verifies up to 3 iterations. Used by /unity-workflow and embeddable in any command.

XeldarAlz/everything-claude-unity · 41 tokens

unity-linter

Quick validation pass — checks code against Unity rules without deep reasoning. Haiku-powered for speed.

XeldarAlz/everything-claude-unity · 23 tokens