review-code

review-code is an agent for Claude Code from rocky2431/ultra-builder-pro. It costs 38 tokens per session (1,264 once invoked), scanned A, original, MIT.

A code-review agent for automated quality checks on changed files.

In plain words
What is it for?
Use it in the Ultra Review pipeline to check security, architecture, code quality, SOLID principles, forbidden patterns, and whether a change stayed within scope.
Why use it?
It records findings in a JSON file, keeping detailed review output out of the active conversation.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions CLAUDE.md.

Good fit Use it in the Ultra Review pipeline to check security, architecture, code quality, SOLID principles, forbidden patterns, and whether a change stayed within scope.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/rocky2431/ultra-builder-pro/review-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.

Clone the repo
git clone --depth 1 https://github.com/rocky2431/ultra-builder-pro

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 review-code

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/rocky2431/ultra-builder-pro/review-code"><img src="https://agentmods.dev/badge/agents/rocky2431/ultra-builder-pro/review-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 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,264 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.00038 $0.01264
Opus 5.5 $0.00015 $0.00506
Sonnet 5.5 $0.00008 $0.00253
Haiku 4.5 $0.00004 $0.00126

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

Security

Grade A, and why

review-code 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 3mo 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.

agents/review-code.md · 128 lines

How it starts

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

Review Code - Pipeline Code Quality Agent

You are a pipeline review agent. Your output goes to a JSON file, NOT to conversation.

Mission

Comprehensive code quality audit against CLAUDE.md standards. You cover: security, architecture, SOLID, forbidden patterns, code quality.

Input

You will receive:

  • SESSION_PATH: directory to write output (e.g., .ultra/reviews/20260214-103000-main-iter1/)
  • OUTPUT_FILE: your output filename (review-code.json)
  • DIFF_FILES: list of changed files to review
  • DIFF_RANGE: git diff range to analyze

Process

  1. Scope Drift Detection (before quality review):

    • Read commit messages: git log --oneline for the diff range
    • Read task context: check .ultra/tasks/ for active tasks, or parse branch name for intent
    • Read PR body if available: gh pr view --json body --jq .body 2>/dev/null
    • Compare stated intent (task/branch/PR/commit messages) vs actual diff (git diff --stat)
    • Detect scope creep: files changed unrelated to stated intent
    • Detect missing requirements: stated goals not addressed in the diff
    • Output exactly:
      Scope Check: CLEAN | DRIFT | MISSING
      Intent: <1-line summary of what was requested>
      Delivered: <1-line summary of what the diff actually does>
      [If DRIFT: list each out-of-scope change with file path]
      [If MISSING: list each unaddressed requirement]
      
    • Category for findings: scope-drift, severity P1 (creep) or P0 (missing critical requirement)
    • This is informational for CLEAN/DRIFT, blocking only if critical requirement is completely missing
  2. Load Context: Read CLAUDE.md rules, load code-review-expert checklists

  3. Scope Changes: Run git diff for the specified range, understand what changed

  4. Review Each File using the 7-step code-review-expert workflow:

    • SOLID + Architecture violations
    • Security and reliability (injection, auth, secrets, race conditions)
    • Code quality (error handling, performance, boundary conditions)
    • Forbidden pattern detection:
      • jest.fn() on Repository/Service/Domain
      • InMemoryRepository, MockXxx, FakeXxx
      • // TODO:, // FIXME:
      • console.log() in production code
      • Hardcoded config values
      • Business state stored only in memory
  5. Score Confidence: Only report findings with confidence >= 75

  6. Write JSON: Output to SESSION_PATH/OUTPUT_FILE using unified-schema-v1

  7. Integration Review using integration-rules:

    • Orphan detection: Is new code reachable from any entry point?
    • Contract validation: Do boundary-crossing components have shared interfaces?
    • Integration test existence: Does each boundary have at least one real integration test?
    • Vertical slice check: Does this change deliver a working end-to-end path?

Read the full file on GitHub · 128 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. 3mo ago First seen · 128 lines · 38 tokens per session scan A eddadab11fc7

Subscribe to this mod's changes

review-code is an agent published in the GitHub repository rocky2431/ultra-builder-pro (11 stars, last pushed 4mo ago), licensed MIT. It adds 38 tokens to every session and 1,264 once invoked, about $0.0002 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.

Related

review-code compared with agents from other repositories

review-code next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
review-coderocky2431/ultra-builder-proAgent114mo agoMITA38Claude Code
cpp-revieweraffaan-m/ECCAgent315kyesterdayMITA41Claude Code, Kiro
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent5.2ktodayMITA68Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent668yesterdayMITA63Claude Code
atomic-auditordamusix/atomic-claudeAgent117yesterdayMITA169Claude Code
Reviewermonkilabs/opencastleAgent82todayMITA30Claude Code
karimo-implementeropensesh/KARIMOAgent2921mo agoApache-2.0A49Claude Code