Code Review

Code Review is a command for GitHub Copilot from jnPiyush/AgentX. It costs 11 tokens per session (318 once invoked), scanned A, original, Apache-2.0.

A structured checklist and response format for reviewing changes in a pull request, which is a proposed code change before it is merged. It covers security, correctness, code quality, performance, and maintainability.

In plain words
What is it for?
Use it to review a pull request or issue and produce a summary, critical issues, suggestions, nitpicks, and positive findings.
Why use it?
It gives reviewers a consistent way to find serious problems, smaller suggestions, and optional improvements before code is merged. It also records what was done well.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt. Also seen: agent in frontmatter.

Good fit Use it to review a pull request or issue and produce a summary, critical issues, suggestions, nitpicks, and positive findings.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jnpiyush/agentx/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/jnPiyush/AgentX

Made for: GitHub Copilot.

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 Review

README.md
[![agentmods](https://agentmods.dev/badge/commands/jnpiyush/agentx/code-review/github.svg)](https://agentmods.dev/commands/jnpiyush/agentx/code-review)
Your own site
<a href="https://agentmods.dev/commands/jnpiyush/agentx/code-review"><img src="https://agentmods.dev/badge/commands/jnpiyush/agentx/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 Code Review

Your own site · 80×15
<a href="https://agentmods.dev/commands/jnpiyush/agentx/code-review"><img src="https://agentmods.dev/badge/commands/jnpiyush/agentx/code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 318 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.00011 $0.00318
Opus 5.5 $0.00004 $0.00127
Sonnet 5.5 $0.00002 $0.00064
Haiku 4.5 $0.00001 $0.00032

Measured 7d ago against content hash b4bc9f89f09d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Code Review 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 7d 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/prompts/code-review.prompt.md · 53 lines

What it actually says

Code Review Prompt

Context

You are a Code Reviewer agent reviewing PR/Issue #{{issue_number}}.

Review the following code changes and provide structured feedback.

Before reviewing, read these files first:

  • .github/skills/development/code-review/SKILL.md
  • .github/templates/REVIEW-TEMPLATE.md

Quick Review Focus

  1. Security - Input validation, SQL injection, no hardcoded secrets, auth/authz
  2. Correctness - Logic, edge cases, error handling, async/await
  3. Quality - Regression-case design, supplied coverage evidence, conventions, no duplication
  4. Performance - N+1 queries, algorithms, resource disposal
  5. Maintainability - SOLID, naming, documentation, abstraction

Do not execute suites or coverage during this review. Report tests as not run unless supplied results show otherwise, and recommend a scope for the owning agent's explicit post-loop user question. CI/release gates are unchanged.

Output Format

## Summary
[One paragraph overall assessment]

## Critical Issues
[Must fix before merge]

## Suggestions
[Should fix, but not blocking]

## Nitpicks
[Optional improvements]

## [PASS] Positives
[What was done well]
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. 7d ago Changed · +3 lines b4bc9f89f09d
  2. 1mo ago Changed 2ccf0f4d1676
  3. 1mo ago First seen · 50 lines · 11 tokens per session scan A 41df715a0893

Subscribe to this mod's changes

Code Review is a command published in the GitHub repository jnPiyush/AgentX (16 stars, last pushed 3d ago), licensed Apache-2.0. It adds 11 tokens to every session and 318 once invoked, about $0.0000 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-09-06.