local-code-review

A command that reviews uncommitted changes in .NET and Angular projects and builds those projects. Uncommitted changes are edits not yet saved in a Git commit.

In plain words
What is it for?
It is for reviewing local Git changes, finding relevant project instructions, detecting .NET or Angular projects, running builds, and gathering independent review findings.
Why use it?
It collects project guidance and the current diff, then checks the changes for bugs, security issues, and significant design problems before they are committed.

Command

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 commands/devmappouras/local-code-review-claude-plugin/local-code-review
Clone the repo
git clone --depth 1 https://github.com/devMappouras/local-code-review-claude-plugin
Per session 12 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,314 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.00012 $0.01314
Opus 5 $0.00006 $0.00657
Sonnet 5 $0.00002 $0.00263
Haiku 4.5 $0.00001 $0.00131

Measured yesterday against content hash f0791c1590a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

local-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 yesterday.

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.

commands/local-code-review.md · 144 lines

How it starts

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

Perform a local code review on uncommitted changes in the current project.

Follow these steps precisely:

  1. Check for uncommitted changes: Run git status to verify there are uncommitted changes. If there are no changes (working tree clean), inform the user and stop.

  2. Detect project type: Use Glob to find:

    • .sln files (search current directory and up to 3 parent levels)
    • angular.json files (indicates Angular project)
    • Store the paths for later use
  3. Gather CLAUDE.md files: Use a Haiku agent to find all relevant CLAUDE.md files:

    • Root CLAUDE.md (if exists)
    • Any CLAUDE.md files in directories containing modified files
    • Return a list of file paths (not contents)
  4. Get uncommitted changes: Run git diff HEAD to get all uncommitted changes (both staged and unstaged). Use a Haiku agent to summarize what files changed and the nature of changes.

  5. Launch parallel review agents: Launch 4 parallel Sonnet agents to independently review the changes. Each agent should return a list of issues with:

    • Issue description
    • File and line number
    • Reason (CLAUDE.md compliance, bug, security, best practice)
    • Confidence score (0-100)

    Agent #1 - CLAUDE.md Compliance: Audit changes against CLAUDE.md guidelines. Focus on project-specific rules and conventions.

    Agent #2 - Bug Detection: Shallow scan for obvious bugs in the changes only. Focus on:

    • Null reference issues
    • Resource leaks
    • Logic errors
    • Async/await misuse
    • Exception handling problems Ignore pre-existing issues and false positives.

    Agent #3 - .NET Best Practices (if .sln detected): Review for:

    • Clean Architecture violations
    • SOLID principle violations
    • Async/await anti-patterns
    • Dependency injection issues
    • Entity Framework misuse
    • Security vulnerabilities (SQL injection, XSS, etc.)

    Agent #4 - Angular Best Practices (if angular.json detected): Review for:

    • Component design issues
    • RxJS anti-patterns (memory leaks, improper subscriptions)
    • Change detection issues
    • Template security (XSS)
    • Performance issues (large bundles, unnecessary re-renders)
  6. Build .NET project (if .sln detected):

    • Run dotnet restore on the solution
    • Run dotnet build on the solution
    • Capture any build errors or warnings
    • If build fails, report the errors with root cause analysis but continue with the review
  7. Build Angular project (if angular.json detected):

    • Run ng build or npm run build
    • Capture any build errors
    • If build fails, report the errors with root cause analysis but continue with the review
  8. Score issues: For each issue found in step 5, launch a parallel Haiku agent to score confidence (0-100):

    • 0: False positive, doesn't stand up to scrutiny, or pre-existing issue
    • 25: Might be real, but could be false positive. Stylistic issue not in CLAUDE.md
    • 50: Real issue but minor or nitpick. Not very important relative to PR
    • 75: Verified real issue that will be hit in practice. Important or explicitly in CLAUDE.md
    • 100: Absolutely certain, confirmed real issue that happens frequently
  9. Filter and report:

    • Filter out issues with score less than 80
    • Combine with any build errors from steps 6-7
    • Report to user in the following format:

Local Code Review Results

Project: [solution/project name] Changes reviewed: [number of files changed]

Build Status
  • .NET Build: [PASSED/FAILED - error summary if failed]
  • Angular Build: [PASSED/FAILED/NOT APPLICABLE - error summary if failed]
Code Review Issues

Found [N] issues:

  1. [Brief description] (Confidence: [score])

    • File: [file path]:[line number]
    • Reason: [CLAUDE.md says "..." / Bug / Security / Best Practice]
    • Details: [explanation]
  2. ...

Summary
  • Total issues found: [N]
  • Build errors: [N]
  • Recommendation: [brief recommendation]

If no issues found with score >= 80 and builds passed:

Read the full file on GitHub · 144 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. yesterday First seen · 144 lines · 12 tokens per session scan A f0791c1590a6

Subscribe to this mod's changes

local-code-review is a command published in the GitHub repository devMappouras/local-code-review-claude-plugin (1 stars, last pushed 8mo ago), licensed MIT. It adds 12 tokens to every session and 1,314 once invoked, about $0.0001 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-31.