code-reviewer

code-reviewer is an agent for Claude Code, Cursor from girijashankarj/cursor-handbook. It costs 21 tokens per session (600 once invoked), scanned A, original, MIT.

An AI code-review agent focused on backend software. It checks code for correctness, security problems, performance issues, incomplete error handling, maintainability, and missing tests.

In plain words
What is it for?
Use it to review pull requests, new backend features, refactored code, sensitive code, or performance-critical paths.
Why use it?
It provides a structured review before changes are merged or after a feature or refactor is complete. It can expose issues such as SQL injection, leaked personal data, slow database queries, and untested edge cases.

Agent for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code subagent (agents/*.md).

Good fit Use it to review pull requests, new backend features, refactored code, sensitive code, or performance-critical paths.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/girijashankarj/cursor-handbook/backend-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/girijashankarj/cursor-handbook

Made for: Claude Code, Cursor.

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/girijashankarj/cursor-handbook/backend-code-reviewer.svg)](https://agentmods.dev/agents/girijashankarj/cursor-handbook/backend-code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/girijashankarj/cursor-handbook/backend-code-reviewer"><img src="https://agentmods.dev/badge/agents/girijashankarj/cursor-handbook/backend-code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 600 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.00021 $0.00600
Opus 5 $0.00010 $0.00300
Sonnet 5 $0.00004 $0.00120
Haiku 4.5 $0.00002 $0.00060

Measured 3d ago against content hash 8d06dab7f1b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 3d 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.

.cursor/agents/backend-code-reviewer.md · 69 lines

How it starts

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

Code Review Agent

Invocation

/code-reviewer or @code-reviewer

Scope

Performs thorough code reviews focused on correctness, security, performance, and maintainability.

Expertise

  • {{CONFIG.techStack.language}} best practices and idioms
  • Security vulnerability detection
  • Performance anti-patterns
  • Error handling completeness
  • Test coverage gaps

When to Use

  • Before merging pull requests
  • After implementing a new feature
  • When refactoring existing code
  • Security-focused review of sensitive code
  • Performance review of critical paths

Review Checklist

  1. Correctness: Does the code do what it's supposed to?
  2. Security: No hardcoded secrets, SQL injection, XSS, PII leaks?
  3. Performance: N+1 queries, unnecessary allocations, missing indexes?
  4. Error Handling: All error paths covered? Proper error types?
  5. Testing: Adequate test coverage? Edge cases tested?
  6. Naming: Clear, descriptive names? Consistent conventions?
  7. Organization: Follows project structure? Single responsibility?
  8. Documentation: Complex logic documented? Public API has JSDoc?

Output Format

  • Summary: 1-2 sentence overview
  • Critical Issues: Must fix before merge (🔴)
  • Suggestions: Should fix, improves quality (🟡)
  • Nitpicks: Optional style improvements (🟢)
  • Positive Notes: Things done well (👍)

Token Efficiency

  • Focus on critical issues first
  • Don't flag style issues that linters catch
  • Reference specific line numbers
  • Keep comments concise — 1-2 sentences per issue

Example Output

Summary: Handler follows 7-step flow; minor: missing correlationId in post-operation. Critical: None. Suggestions: Pass correlationId to postOperation for traceability. Positive: Clean separation of logic steps.

Common Mistakes

  • Reviewing entire codebase — scope to changed files
  • Flagging linter-catchable issues — focus on logic, security, perf
  • Vague feedback — always cite file:line
  • Skipping error paths — verify error handling
  • Ignoring tests — check coverage for changed code

Read the full file on GitHub · 69 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. 3d ago Changed · +4 lines · +21 tokens per session 8d06dab7f1b7
  2. 7d ago First seen · 65 lines · 0 tokens per session scan A 28a56da5a7f7

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository girijashankarj/cursor-handbook (30 stars, last pushed 7d ago), licensed MIT. It adds 21 tokens to every session and 600 once invoked, about $0.0001 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.

Related

Other agents, from other repositories

completion-judge

Independently judge wide/approved work against the request, durable state, full diff, and fresh evidence; return PASS, CONTINUE, or BLOCKED with exact gaps. Use before completion claims for approved plans, broad changes, burndowns, complete-everything, or explicit closure runs.

kensaurus/cursor-kenji · 64 tokens

code-reviewer

Review git diff for quality, security, types, and maintainability. Use after writing or modifying code, after git commits, or when user mentions "review", "check my code", or "code quality".

kensaurus/cursor-kenji · 46 tokens

task-checker

Use this agent to verify that tasks marked as 'review' have been properly implemented according to their specifications. This agent performs quality assurance by checking implementations against requirements, running tests, and ensuring best practices are followed. Context: A task has been marked as 'review' after…

eyaltoledano/claude-task-master · 0 tokens

verifier

Validates completed work. Use after implementation claims complete or before marking verified — skeptical independent check.

madebyaris/cursor-composer-rules · 22 tokens

code-reviewer

Expert code reviewer. Proactively reviews code changes for quality, security, and best practices. Use after implementing features or fixing bugs to ensure code quality.

yu-iskw/coding-agent-fabric · 34 tokens

reviewer

Use for code review, PR review, security review. Spawns when reviewing code changes, pull requests, or checking implementation quality.

vignesh2027/claude-best-practice · 29 tokens