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.
npx agentmods add commands/devmappouras/local-code-review-claude-plugin/local-code-reviewgit clone --depth 1 https://github.com/devMappouras/local-code-review-claude-pluginWhat 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.
| Model | Per session | Once 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 |
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.
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:
-
Check for uncommitted changes: Run
git statusto verify there are uncommitted changes. If there are no changes (working tree clean), inform the user and stop. -
Detect project type: Use Glob to find:
.slnfiles (search current directory and up to 3 parent levels)angular.jsonfiles (indicates Angular project)- Store the paths for later use
-
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)
-
Get uncommitted changes: Run
git diff HEADto get all uncommitted changes (both staged and unstaged). Use a Haiku agent to summarize what files changed and the nature of changes. -
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)
-
Build .NET project (if .sln detected):
- Run
dotnet restoreon the solution - Run
dotnet buildon the solution - Capture any build errors or warnings
- If build fails, report the errors with root cause analysis but continue with the review
- Run
-
Build Angular project (if angular.json detected):
- Run
ng buildornpm run build - Capture any build errors
- If build fails, report the errors with root cause analysis but continue with the review
- Run
-
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
-
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:
-
[Brief description] (Confidence: [score])
- File:
[file path]:[line number] - Reason: [CLAUDE.md says "..." / Bug / Security / Best Practice]
- Details: [explanation]
- File:
-
...
Summary
- Total issues found: [N]
- Build errors: [N]
- Recommendation: [brief recommendation]
If no issues found with score >= 80 and builds passed:
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.
- yesterday First seen · 144 lines · 12 tokens per session scan A f0791c1590a6
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.
Other commands, from other repositories
daily-standup
Génération Résumé Daily Stand-up.
deploy
Build, test, deploy with staged rollout.
simplify
Reduce complexity without changing behavior — code simplification.
help
Lists available commands or provides detailed help on a specific command.
extend
Capture a mid-PR sub-idea and implement it onto the current open PR's branch — no new branch, no new PR. Preserves Verify → Review → Deliver.
mine-sessions
Mine every Claude Code session across all projects for the two things that decide a task's cost - how many tool calls it took and how many wall-clock minutes the user waited - and for token, character, latency, memory and productivity waste down to the individual character; mine the call sequences for composites…