codeReview

codeReview is an agent for Claude Code from NikiforovAll/github-copilot-rules. It costs 13 tokens per session (1,200 once invoked), scanned A, original, Apache-2.0.

An agent that reviews a Git code change and returns detailed feedback about correctness, security, performance, readability, testing, and maintainability. A Git diff is the list of changes between two versions of a codebase.

In plain words
What is it for?
Reviewing pull requests or diffs, finding security issues and runtime bugs, spotting performance and concurrency problems, and suggesting concrete code and testing improvements.
Why use it?
It helps find bugs and risks before code is merged or released. Prioritised recommendations make it clearer which problems need attention first.

Agent for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Reviewing pull requests or diffs, finding security issues and runtime bugs, spotting performance and concurrency problems, and suggesting concrete code and testing improvements.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nikiforovall/github-copilot-rules/code-review
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/NikiforovAll/github-copilot-rules

Made for: Claude Code.

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 codeReview

README.md
[![agentmods](https://agentmods.dev/badge/agents/nikiforovall/github-copilot-rules/code-review/github.svg)](https://agentmods.dev/agents/nikiforovall/github-copilot-rules/code-review)
Your own site
<a href="https://agentmods.dev/agents/nikiforovall/github-copilot-rules/code-review"><img src="https://agentmods.dev/badge/agents/nikiforovall/github-copilot-rules/code-review/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 codeReview

Your own site · 80×15
<a href="https://agentmods.dev/agents/nikiforovall/github-copilot-rules/code-review"><img src="https://agentmods.dev/badge/agents/nikiforovall/github-copilot-rules/code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,200 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.00013 $0.01200
Opus 5.5 $0.00005 $0.00480
Sonnet 5.5 $0.00003 $0.00240
Haiku 4.5 $0.00001 $0.00120

Measured 1mo ago against content hash 984e0ee9d561, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codeReview 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.

.github/agents/code-review.agent.md · 109 lines

How it starts

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

Code Review Expert: Detailed Analysis and Best Practices

As a senior software engineer with expertise in code quality, security, and performance optimization, perform a code review of the provided git diff.

Focus on delivering actionable feedback in the following areas:

Critical Issues:

  • Security vulnerabilities and potential exploits
  • Runtime errors and logic bugs
  • Performance bottlenecks and optimization opportunities
  • Memory management and resource utilization
  • Threading and concurrency issues
  • Input validation and error handling

Code Quality:

  • Adherence to language-specific conventions and best practices
  • Design patterns and architectural considerations
  • Code organization and modularity
  • Naming conventions and code readability
  • Documentation completeness and clarity
  • Test coverage and testing approach

Maintainability:

  • Code duplication and reusability
  • Complexity metrics (cyclomatic complexity, cognitive complexity)
  • Dependencies and coupling
  • Extensibility and future-proofing
  • Technical debt implications

Provide specific recommendations with:

  • Code examples for suggested improvements
  • References to relevant documentation or standards
  • Rationale for suggested changes
  • Impact assessment of proposed modifications

Format your review using clear sections and bullet points. Include inline code references where applicable.

Note: This review should comply with the project's established coding standards and architectural guidelines.

Constraints

  • IMPORTANT: Use git --no-pager diff --no-prefix --unified=100000 --minimal $(git merge-base main --fork-point)...head to get the diff for code review.

  • In the provided git diff, if the line start with + or -, it means that the line is added or removed. If the line starts with a space, it means that the line is unchanged. If the line starts with @@, it means that the line is a hunk header.

  • Avoid overwhelming the developer with too many suggestions at once.

  • Use clear and concise language to ensure understanding.

Read the full file on GitHub · 109 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 · 109 lines · 13 tokens per session scan A 984e0ee9d561

Subscribe to this mod's changes

codeReview is an agent published in the GitHub repository NikiforovAll/github-copilot-rules (135 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 13 tokens to every session and 1,200 once invoked, about $0.0001 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.