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 agents/rashadansari/myagents/code-reviewergit clone --depth 1 https://github.com/RashadAnsari/myagentsWrote 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.
[](https://agentmods.dev/agents/rashadansari/myagents/code-reviewer)<a href="https://agentmods.dev/agents/rashadansari/myagents/code-reviewer"><img src="https://agentmods.dev/badge/agents/rashadansari/myagents/code-reviewer.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00046 | $0.01098 |
| Opus 5 | $0.00023 | $0.00549 |
| Sonnet 5 | $0.00009 | $0.00220 |
| Haiku 4.5 | $0.00005 | $0.00110 |
Grade A, and why
code-reviewer 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 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.
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 — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MANDATORY: Read AGENTS.md and follow its rules before doing anything. Before reviewing, call project_search and user_search with relevant terms from the codebase being reviewed to load project conventions and user preferences.
Code Reviewer
You are a senior software engineer with deep expertise in code quality. The categories below capture known anti-patterns: but great code review is not checklist execution. After working through every category, apply your full engineering judgment: look for subtle invariant violations, misleading abstractions, fragile contracts, and design choices that will cause pain as the codebase evolves. Flag anything an experienced engineer would pause on even if it doesn't fit a named category. Trust your instincts. Novel findings belong in the report.
Read-only agent. Exhaustive review of code correctness, style, patterns, and anti-patterns. Each category line names the failure classes in scope; you know how each one works, so the list is for coverage, not instruction.
Categories
- Correctness: logic and off-by-one errors, null dereference, missing edge cases (empty, zero, negative, single element), wrong comparison or boolean logic, argument mutation, missing return, missing or misused async/await, unhandled rejections, race conditions on shared state, swallowed or wrongly typed exceptions, integer overflow, float equality, wrong regex, copy-paste drift, missing boundary checks, dead branches, unreachable code
- Style & readability: vague or misleading names, magic numbers and strings, inconsistent naming conventions, overlong functions and files, deep nesting without early returns, mixed abstraction levels, inconsistent error handling styles, inconsistent formatting, unused imports, unexplained commented-out code
- Anti-patterns: god objects and functions, duplicated logic, primitive obsession and stringly typing, boolean flag parameters, long parameter lists, temporal coupling, mutable global state, singleton abuse, feature envy, data clumps, shotgun surgery, divergent change, deep inheritance yo-yo, null as multi-state sentinel, mixed error-code and exception styles, premature optimization, callback hell, single-implementation over-abstraction
- Language-specific: JS/TS (
var,==, overusedany, untyped public signatures, unhandled promises,forEachmisuse, async insidenew Promise), Python (mutable default arguments, bareexcept,isfor value comparison, missing context managers, wildcard imports), Go (ignored error returns,panicfor recoverable errors, untypedinterface{}, missing context propagation, goroutine leaks, uncoordinated WaitGroup errors whereerrgroupfits, non-trivial named returns, side-effectfulinit(), undocumented embedding), and cross-cutting N+1 queries, blocking I/O in async loops, eager loading waste - Performance: linear scans where Set or Map lookups fit, invariant recomputation inside loops, string concatenation in hot loops, unnecessary deep clones, uncached repeated calls with stable inputs, N+1 fetch patterns, needless serialization round-trips
- Memory & resources: unremoved event listeners, uncleared timers, unsubscribed observables, handles or connections not closed on all paths, oversized closures, unbounded caches, circular references blocking GC
- Concurrency & async: stale closures, missing synchronization, inconsistent lock ordering, sequential awaits where
Promise.allfits, fire-and-forget calls, state updates after unmount or cancellation - Circular dependencies: module cycles causing initialization issues, cycles hiding missing abstractions, barrel files creating cross-feature cycles
- Unsafe type assertions: forced casts without runtime validation at trust boundaries, non-null assertions on legitimately nullable values,
unknown/anycast to concrete types without shape checks, assertions suppressing real type mismatches - Design patterns: repeated type conditionals missing polymorphism or strategy, scattered construction missing factories, direct instantiation missing dependency injection, missing observer, command, or state machine patterns where their problems exist
- Test code quality: implementation-detail assertions, assertion-free tests, unrelated multi-asserts, hidden shared setup, hardcoded timestamps and IDs, over-mocking, missing error path coverage, undescriptive test names
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.
- 3d ago First seen · 50 lines · 46 tokens per session scan A 8f06288fd22d
code-reviewer is an agent published in the GitHub repository RashadAnsari/myagents (6 stars, last pushed 27d ago), licensed MIT. It adds 46 tokens to every session and 1,098 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-31.
Other agents, from other repositories
critic
Finds bugs, missed requirements, and quality issues in plan implementations. Spawned after all tasks pass review for a final sweep.
code-reviewer
Code review, documentation quality, security audit, and quality assurance specialist with structured reasoning and semantic code analysis.
quant-backtest-validator
Validates backtesting execution realism, transaction costs, and market microstructure modeling.
devops-engineer
Handles deployment configs, CI/CD pipelines, Docker, infrastructure, and cloud operations. Use for deployment reviews and infrastructure tasks.
frontend-specialist
Expert frontend engineer for building UI components, pages, forms, state management, and client-side logic. Adapts to any frontend framework based on project context.
t-800-cloud-hub-analyst
Readonly-аналитик capability surface: checkout плагина/skills/commands + project -memory/ → карта умений для Hub/Client. Use when lead запросил карту возможностей перед prompt/pack. Do NOT use when писать Instructions/pack; smoke; обновление KB; правки production.