code-reviewer

code-reviewer is an agent for coding agents 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

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

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,326 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.

agentmods
npx agentmods add agents/galaxy-dawn/claude-scholar/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/Galaxy-Dawn/claude-scholar

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.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.svg" alt="Measured on agentmods" 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. 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.00038 $0.00723
Opus 5 $0.00019 $0.00362
Sonnet 5 $0.00008 $0.00145
Haiku 4.5 $0.00004 $0.00072

Measured 5d ago against content hash 85a109b8d42b, 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 5d 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. 5d 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,326 stars, last pushed 9d ago), licensed MIT. It adds 38 tokens to every session and 723 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.