review-code

review-code is an agent for coding agents 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

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/rocky2431/ultra-builder-pro/review-code
Clone the repo
git clone --depth 1 https://github.com/rocky2431/ultra-builder-pro

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.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.svg" alt="Measured on agentmods" 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. 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.00038 $0.01264
Opus 5 $0.00019 $0.00632
Sonnet 5 $0.00008 $0.00253
Haiku 4.5 $0.00004 $0.00126

Measured 4d ago against content hash eddadab11fc7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 1mo ago), licensed MIT. It adds 38 tokens to every session and 1,264 once invoked, about $0.0002 per session on Opus 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.