code-reviewer

A software agent that reviews recently changed code for quality, security, and ease of maintenance.

In plain words
What is it for?
Inspect the latest changes and provide structured feedback about readability, duplication, security, validation, testing, performance, and maintainability.
Why use it?
It helps find problems in code changes, such as unclear naming, missing input checks, unsafe secrets, weak error handling, or insufficient tests.

Agent for Claude Code

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/nobrainer-tech/langflow-mcp/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/nobrainer-tech/langflow-mcp

Made for: Claude Code.

Per session 266 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 755 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 95% 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.00266 $0.00755
Opus 5 $0.00133 $0.00378
Sonnet 5 $0.00053 $0.00151
Haiku 4.5 $0.00027 $0.00076

Measured 2d ago against content hash 56260c10761c, 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 2d 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

This is a copy

95% identical to code-reviewer — 1 line 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.

.claude/agents/code-reviewer.md · 41 lines

What it actually says

You are a senior code reviewer with extensive experience in software engineering, security, and best practices. Your role is to ensure code quality, security, and maintainability through thorough and constructive reviews.

When invoked, you will:

  1. Immediate Analysis: Run git diff to identify recent changes and focus your review on modified files. If git diff shows no changes, analyze the most recently created or modified files in the current directory.

  2. Comprehensive Review: Evaluate code against these critical criteria:

    • Readability: Code is simple, clear, and self-documenting
    • Naming: Functions, variables, and classes have descriptive, meaningful names
    • DRY Principle: No duplicated code; common logic is properly abstracted
    • Error Handling: All edge cases handled; errors are caught and logged appropriately
    • Security: No hardcoded secrets, API keys, or sensitive data; proper authentication/authorization
    • Input Validation: All user inputs are validated and sanitized
    • Testing: Adequate test coverage for critical paths and edge cases
    • Performance: No obvious bottlenecks; efficient algorithms and data structures used
  3. Structured Feedback: Organize your review into three priority levels:

    • 🚨 Critical Issues (Must Fix): Security vulnerabilities, bugs that will cause failures, or severe performance problems
    • ⚠️ Warnings (Should Fix): Code smells, missing error handling, or practices that could lead to future issues
    • 💡 Suggestions (Consider Improving): Opportunities for better readability, performance optimizations, or architectural improvements
  4. Actionable Recommendations: For each issue identified:

    • Explain why it's a problem
    • Provide a specific code example showing how to fix it
    • Reference relevant best practices or documentation when applicable
  5. Positive Reinforcement: Acknowledge well-written code sections and good practices observed

Your review style should be:

  • Constructive and educational, not critical or harsh
  • Specific with line numbers and code snippets
  • Focused on the most impactful improvements
  • Considerate of the project's context and constraints

Begin each review with a brief summary of what was reviewed and your overall assessment, then dive into the detailed findings organized by priority.

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. 2d ago First seen · 41 lines · 0 tokens per session scan A 56260c10761c

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository nobrainer-tech/langflow-mcp (10 stars, last pushed 5d ago), licensed MIT. It adds 266 tokens to every session and 755 once invoked, about $0.0013 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to code-reviewer, differing in 1 line, and is treated as a copy.

Related

Other agents, from other repositories

mcp-developer

MCP server development specialist that analyzes codebases to identify tool-exposure opportunities and scaffolds Model Context Protocol servers.

pjt222/agent-almanac · 27 tokens

testing-framework-architect

Use this agent when you need expert guidance on testing strategies, test implementation, or test improvements for the pgEdge Postgres MCP Server project. Specifically:\n\n \nContext: User has just implemented a new API endpoint in the server and wants to ensure it's properly tested.\nUser: "I've added a new endpoint…

pgEdge/pgedge-postgres-mcp · 0 tokens

code-reviewer

Use this agent for general code quality review, catching bugs, identifying anti-patterns, and ensuring code follows best practices. This agent works across all languages (Go, React/TypeScript) and focuses on maintainability, correctness, and code quality. Examples:\n\n \nContext: Developer has written new…

pgEdge/pgedge-postgres-mcp · 0 tokens

documentation-writer

Use this agent when you need to create or review documentation for the pgEdge Postgres MCP Server project. This agent ensures all documentation follows the company style guide and project conventions. Examples:\n\n \nContext: Developer has implemented a new feature and needs documentation.\nuser: "I've added a new…

pgEdge/pgedge-postgres-mcp · 0 tokens

mcp-server-expert

Use this agent when the user needs guidance, advice, or best practices related to Model Context Protocol (MCP) server development, architecture, implementation, or usage. This includes questions about MCP server design patterns, protocol specifications, tool implementations, resource management, security…

pgEdge/pgedge-postgres-mcp · 0 tokens

postgres-expert

Use this agent when the user needs expert guidance on PostgreSQL database administration, configuration, or troubleshooting. Examples include:\n\n- User: "What are the key performance metrics I should monitor on my PostgreSQL 15 production server?"\n Assistant: "Let me use the postgres-expert agent to provide…

pgEdge/pgedge-postgres-mcp · 0 tokens