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.
git 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/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.
<a href="https://agentmods.dev/agents/rashadansari/myagents/code-reviewer"><img src="https://agentmods.dev/badge/agents/rashadansari/myagents/code-reviewer.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00046 | $0.01094 |
| Opus 5.5 | $0.00018 | $0.00438 |
| Sonnet 5.5 | $0.00009 | $0.00219 |
| Haiku 4.5 | $0.00005 | $0.00109 |
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 1mo 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 — 49 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.
- 1mo ago Changed · -1 lines cbdbc0086bd4
- 1mo 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 today), licensed MIT. It adds 46 tokens to every session and 1,094 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-31.
Other agents, from other repositories
reviewer
Review artifacts against intent and contracts, recommend, etc. Full subagent.
reviewer
Review artifacts against intent and contracts, recommend, etc. Full subagent.
principal-engineer
Principal Engineer. Architecture guardian. Enforces SOLID + Clean Architecture. Reviews all PRs.
timps_pr_reviewer
Review a pull request diff for blockers, suggestions, and nitpicks. Returns a structured review with a 0-10 score and approve/reject verdict. Use the timpsprreviewer MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.
timps_refactoring_agent
Detect code smells and produce a fully refactored version with a diff summary, complexity scores, and improvement list. Use the timpsrefactoringagent MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.
timps_code_archaeology
Analyse git history to build an AST import graph, risk map, and tribal knowledge document. Use the timpscodearchaeology MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.