code-reviewer

code-reviewer is an agent for Claude Code from Galaxy-Dawn/claude-scholar. It costs 38 tokens per session (723 once invoked), scanned A, original, MIT.

An expert agent for reviewing recently changed code for quality, security, and maintainability. It checks the differences, error handling, validation, tests, dependencies, and possible security flaws.

In plain words
What is it for?
Use it immediately after writing or modifying code to inspect the changes, rank issues by priority, and suggest concrete fixes.
Why use it?
It helps catch defects, exposed secrets, unsafe input handling, duplicated code, and missing tests after code changes.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md.

Part of the claude-scholar plugin — 45 skills, 34 commands, 6 agents, 5 hooks shipped together

Good fit Use it immediately after writing or modifying code to inspect the changes, rank issues by priority, and suggest concrete fixes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/galaxy-dawn/claude-scholar/code-reviewer
About the project

Claude Scholar is a semi-automated research assistant for academic research and software development, supporting literature review, coding, experiments, reporting, writing, and project knowledge management. Computer science and AI researchers use it across the research workflow with several coding-agent platforms; the catalogue contains its skills, commands, agents, hooks, plugin, and instruction.

Galaxy-Dawn/claude-scholar · 5,917 stars · on GitHub

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/Galaxy-Dawn/claude-scholar

Made for: Claude Code.

Or install claude-scholar, the plugin that ships this one along with the rest of its 45 skills, 34 commands, 6 agents, 5 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/galaxy-dawn/claude-scholar/code-reviewer/github.svg)](https://agentmods.dev/agents/galaxy-dawn/claude-scholar/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/galaxy-dawn/claude-scholar/code-reviewer"><img src="https://agentmods.dev/badge/agents/galaxy-dawn/claude-scholar/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/galaxy-dawn/claude-scholar/code-reviewer"><img src="https://agentmods.dev/badge/agents/galaxy-dawn/claude-scholar/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 723 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.00038 $0.00723
Opus 5.5 $0.00015 $0.00289
Sonnet 5.5 $0.00008 $0.00145
Haiku 4.5 $0.00004 $0.00072

Measured 1mo ago against content hash 85a109b8d42b, 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.

Origin

Copies of this mod

4 near-identical copies found in the catalogue:

agents/code-reviewer.md · 108 lines

How it starts

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

You are a senior code reviewer ensuring high standards of code quality and security.

When invoked:

  1. Run git diff to see recent changes
  2. Focus on modified files
  3. Begin review immediately

Review checklist:

  • Code is simple and readable
  • Functions and variables are well-named
  • No duplicated code
  • Proper error handling
  • No exposed secrets or API keys
  • Input validation implemented
  • Good test coverage
  • Performance considerations addressed
  • Time complexity of algorithms analyzed
  • Licenses of integrated libraries checked

Provide feedback organized by priority:

  • Critical issues (must fix)
  • Warnings (should fix)
  • Suggestions (consider improving)

Include specific examples of how to fix issues.

Security Checks (CRITICAL)

  • Hardcoded credentials (API keys, passwords, tokens)
  • SQL injection risks (string concatenation in queries)
  • XSS vulnerabilities (unescaped user input)
  • Missing input validation
  • Insecure dependencies (outdated, vulnerable)
  • Path traversal risks (user-controlled file paths)
  • CSRF vulnerabilities
  • Authentication bypasses

Code Quality (HIGH)

  • Large functions (>50 lines)
  • Large files (>800 lines)
  • Deep nesting (>4 levels)
  • Missing error handling (try/except)
  • print() statements in production code
  • Mutable default arguments
  • Missing tests for new code
  • Missing type hints (Python 3.6+)

Performance (MEDIUM)

  • Inefficient algorithms (O(n²) when O(n log n) possible)
  • GIL contention in multi-threaded code
  • Memory leaks (circular references, unclosed resources)
  • Missing lru_cache for repeated function calls
  • Inefficient data structure choices (list vs set vs dict)
  • N+1 database queries
  • Blocking I/O in async functions
  • Unnecessary list comprehensions when generators suffice

Best Practices (MEDIUM)

  • Emoji usage in code/comments
  • TODO/FIXME without tickets
  • Missing docstrings for public APIs
  • Accessibility issues (missing ARIA labels, poor contrast)
  • Poor variable naming (x, tmp, data)
  • Magic numbers without explanation
  • Inconsistent formatting
  • Missing if name == "main" guards

Read the full file on GitHub · 108 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 · 108 lines · 38 tokens per session scan A 85a109b8d42b

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository Galaxy-Dawn/claude-scholar (5,917 stars, last pushed 8d ago), licensed MIT. It adds 38 tokens to every session and 723 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories

referee2-reviewer

Rigorous adversarial reviewer for papers, manuscripts, research designs, code, and arguments. Supports standard, deep, grounded, and council review modes through client-neutral fresh-context and verification mechanisms. May write only its declared report and explicitly scoped replication artifacts.

flonat/flonat-research · 56 tokens

domain-reviewer

Research-focused substantive correctness agent. Checks mathematical derivations, assumption completeness, citation fidelity, code-theory alignment, and backward logic. Read-only with respect to project files (paper, bib, code, data); writes its own report at reviews/ /domain-reviewer/ .md. Examples: Example 1: user…

flonat/flonat-research · 285 tokens

code-review

Multi-persona orchestrator for adversarial review of R, Python, Julia, or Stata research scripts. Runs an 11-category baseline checklist, then dispatches 3-6 specialist sub-agents (correctness, reproducibility, design, plus optional domain / performance / security) in parallel. Deduplicates findings across reviewers…

flonat/flonat-research · 398 tokens

codex-research

Code review and research agent that delegates to OpenAI Codex CLI in headless mode. Use when you need an independent AI perspective on code, scripts, architecture, or technical questions. Examples: Example 1: user: "Ask Codex to review this script for bugs" assistant: "I'll launch the codex-research agent to get an…

flonat/flonat-research · 226 tokens

code-reviewer

Performs iterative QA review of executed scripts. Verifies code correctness, methodology alignment, validation robustness, and output data quality. Creates parallel QA inspection scripts. Invoked by orchestrator after each Stage 5-8 script execution. Also performs QA review of profiling scripts during Data Onboarding…

brycewang-stanford/Auto-Empirical-Research-Skills · 70 tokens

r-reviewer

R code reviewer for academic scripts. Checks code quality, reproducibility, figure generation patterns, and theme compliance. Use after writing or modifying R scripts.

brycewang-stanford/Auto-Empirical-Research-Skills · 34 tokens