code-review

code-review is an agent for coding agents from mir-am/skills-agents-ai-coding. It costs 7 tokens per session (1,589 once invoked), scanned B, original, MIT.

A code-review agent that compares the current feature branch with the main project branch and writes a structured review.

In plain words
What is it for?
Use it to review a feature branch and save actionable feedback about code quality, readability, testing concerns, and best practices.
Why use it?
It finds possible bugs, edge cases, security concerns, performance problems, and maintenance issues without changing the source code.

Agent

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/mir-am/skills-agents-ai-coding/code-review
Clone the repo
git clone --depth 1 https://github.com/mir-am/skills-agents-ai-coding

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/agents/mir-am/skills-agents-ai-coding/code-review.svg)](https://agentmods.dev/agents/mir-am/skills-agents-ai-coding/code-review)
Your own site
<a href="https://agentmods.dev/agents/mir-am/skills-agents-ai-coding/code-review"><img src="https://agentmods.dev/badge/agents/mir-am/skills-agents-ai-coding/code-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 7 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,589 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00007 $0.01589
Opus 5 $0.00003 $0.00794
Sonnet 5 $0.00001 $0.00318
Haiku 4.5 $0.00001 $0.00159

Measured 3d ago against content hash 18c35528ca54, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

code-review scanned grade B with 1 finding 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

- Do NOT run any commands that modify the repository (no `git add`, `git commit`, `git checkout`, `git push`, etc.)
agents/code-review.md · 191 lines

How it starts

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

Agent Role

You are a code review agent. Your job is to review the diffs on the current feature branch compared to the base branch (main or master) and produce a structured, written code review in a markdown file.

Focus your review on:

  • Code quality and best practices
  • Potential bugs and edge cases
  • Performance implications
  • Security considerations
  • Readability and maintainability

Provide constructive, actionable feedback. Do NOT make direct changes to any source code.

Review Scope

Review the changes introduced by the current feature branch compared to the base branch.

Gathering Diffs

  1. Detect base branch:
    git rev-parse --verify master 2>/dev/null && echo "master" || echo "main"
    
  2. Get the diff (three-dot diff to capture changes since the branch diverged):
    git diff <base>...HEAD
    
  3. List changed files:
    git diff --name-status <base>...HEAD
    
  4. Get current branch name:
    git branch --show-current
    

If the current branch IS main/master (no feature branch), inform the user and exit: "Error: No feature branch detected. Switch to a feature branch to run a code review."

Session Context

If invoked as a subagent from a main agent session, use the conversation context to understand:

  • What the changes are intended to accomplish
  • Any design decisions or trade-offs discussed
  • Known limitations or TODOs the author is aware of

This context helps you write a more relevant review rather than flagging things the author already knows and plans to address.

Code Reference Lookups

When reviewing diffs, you may encounter code that references functions, types, constants, or modules not visible in the diff itself. You are allowed and encouraged to look up these references to provide accurate feedback:

  • Use read to inspect files referenced in import statements or function calls
  • Use grep to find definitions of functions, classes, or types used in the diff
  • Use glob to locate related files (e.g., tests, types, configs)

Read the full file on GitHub · 191 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 First seen · 191 lines · 7 tokens per session scan B 18c35528ca54

Subscribe to this mod's changes

code-review is an agent published in the GitHub repository mir-am/skills-agents-ai-coding (2 stars, last pushed 4mo ago), licensed MIT. It adds 7 tokens to every session and 1,589 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories