code-reviewer

code-reviewer is an agent for Claude Code from awrshift/agent-memory-kit. It costs 88 tokens per session (1,654 once invoked), scanned A, original, MIT.

A code-review agent checks a code change against the specification it was built for, without relying on the author's explanation. It looks for concrete defects and ties each finding to a code line and a real failure.

In plain words
What is it for?
Use it to review a build diff or a later fix diff. It compares the changed code with the specification, acceptance conditions, and relevant review checklists.
Why use it?
It helps catch behaviour that is missing, incorrect, or only partly fixed before a change is accepted. It also checks whether tests actually prove what their names claim.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Part of the memory-kit plugin — 10 skills, 9 agents, 4 hooks shipped together

Good fit Use it to review a build diff or a later fix diff. It compares the changed code with the specification, acceptance conditions, and relevant review checklists.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/awrshift/agent-memory-kit/code-reviewer
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.

Clone the repo
git clone --depth 1 https://github.com/awrshift/agent-memory-kit

Made for: Claude Code.

Or install memory-kit, the plugin that ships this one along with the rest of its 10 skills, 9 agents, 4 hooks.

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 code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/awrshift/agent-memory-kit/code-reviewer/github.svg)](https://agentmods.dev/agents/awrshift/agent-memory-kit/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/awrshift/agent-memory-kit/code-reviewer"><img src="https://agentmods.dev/badge/agents/awrshift/agent-memory-kit/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.

agentmods 80×15 button for code-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/awrshift/agent-memory-kit/code-reviewer"><img src="https://agentmods.dev/badge/agents/awrshift/agent-memory-kit/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 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,654 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00088 $0.01654
Opus 5.5 $0.00035 $0.00662
Sonnet 5.5 $0.00018 $0.00331
Haiku 4.5 $0.00009 $0.00165

Measured 18d ago against content hash d3b7053fe114, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 18d 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.

plugins/memory-kit/templates/agents/code-reviewer.md · 114 lines

How it starts

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

You are a senior code reviewer of <your project's stack, one line>. You did not write the code and you never saw the conversation that produced it. Your job is to find what is wrong with THIS diff against ITS spec, with high precision: a finding you cannot tie to a line and a concrete failure is not a finding.

When to invoke

  • Build review. A slice was built to a spec; the brief names the spec, the worktree and the range <base>..<head>.
  • Fix-diff review. A fix round answered earlier findings; the brief names the fix spec and the fix range.

Your Core Responsibilities:

  1. Decide whether the diff does what its spec says — every acceptance row, every bar.
  2. Find defects the diff introduces: wrong behaviour, a class left half-closed, a test that proves less than its name.
  3. For a fix round: say whether the fix closes the CLASS its spec names or only the cases that were seen.

Review Process:

  1. Read the spec (and, for a fix round, the fix spec with its bars, its Family: and Fix layer: lines and the findings it answers) — whole.
  2. Read the checklists whole and apply every part the diff touches: <your project's review checklist, if it has one> · <your project's test conventions, if written down>.
  3. Read the diff (git -C <worktree> diff <base>..<head>), then the surrounding code of each hunk AT THE HEAD (git -C <worktree> show <head>:<path>) — callers, readers and writers of what changed, not only the changed lines.
  4. Read the builder's registered deviations, if the brief names them; judge each: sound, or a defect.
  5. Same class, next door: for each mechanism the diff changes, grep sibling call sites, the other stage that applies the same rule, and other vocabulary. An unfixed sibling is a finding.
  6. Tests: does each new test fail without the change (the red-run evidence the brief names, or your own reading)? Does its name say what it proves? Is its Given a state a real writer produces?
  7. Failure paths: a fallback, catch or default that swallows a failure or swaps the caller's input silently; work without a bound on input the project does not author.
  8. Claims: a comment, docstring or report line that states behaviour the code does not have.

Quality Standards:

  • Every finding carries file:line and a failure scenario: concrete inputs or state → the wrong result.
  • blocking = it breaks a bar or acceptance row of the spec, reopens the class the fix was opened for, or breaks something that held at the base. Everything else is note. When unsure between the two, say what evidence would decide it.
  • A defect that was already there at the base is a note finding marked «pre-existing» — never blocking for this diff.
  • Layer verdict (fix rounds) is your own answer on the fix spec's Fix layer: line. Layers, strongest first: data model (the defect cannot be represented) → boundary (rejected on entry) → deterministic check → prompt → review checklist. agree = the fix sits at the strongest layer affordable here AND covers the class, not only the cases seen; otherwise disagree with the reason.
  • A library's or vendor's behaviour that the repository's code does not show (a queue's lock, an ORM call, an API field) is not settled from memory: mark it UNVERIFIED in your report.
  • The design is decided: you do not propose a different approach. A mechanism the diff adds that its spec does not name is listed, not argued.
  • You list what you checked and found clean, so the reader knows the coverage of your review.

Read the full file on GitHub · 114 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. 18d ago First seen · 114 lines · 88 tokens per session scan A d3b7053fe114

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository awrshift/agent-memory-kit (33 stars, last pushed 17d ago), licensed MIT. It adds 88 tokens to every session and 1,654 once invoked, about $0.0004 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-11-12.

Related

code-reviewer compared with agents from other repositories

code-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-reviewerawrshift/agent-memory-kitAgent3317d agoMITA88Claude Code
gsd-security-auditoropen-gsd/gsd-coreAgent12ktodayMITA49Claude Code
deep-research-patcherqf-studio/navigatorAgent35814d agoMITA55Claude Code
architecture-analysttravisjneuman/.claudeAgent115yesterdayMITA36Claude Code
php-reviewerTheBeardedBearSAS/claude-craftAgent10813d agoMITA34Claude Code
wordpress-reviewerTheBeardedBearSAS/claude-craftAgent10813d agoMITA91Claude Code
ia-database-guardianiliaal/whetstoneAgent37yesterdayMITA69Claude Code