agent-glovebox: Agent for Claude Code

.claude/agents/code-reviewer.md

code-reviewer is an agent for Claude Code from AlexanderMattTurner/agent-glovebox. It costs 74 tokens per session (1,508 once invoked), scanned B, original, Apache-2.0.

A read-only code-review agent that examines a supplied code diff for correctness problems and opportunities to reuse or simplify code.

In plain words
What is it for?
Use it after implementing a feature or fix, before opening a pull request, or when reviewing pending changes.
Why use it?
It provides an independent second review before changes are shipped, without modifying the files.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths.

This is AlexanderMattTurner/agent-glovebox's own configuration. It tells Claude Code how to work on agent-glovebox itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-glovebox configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AlexanderMattTurner/agent-glovebox. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AlexanderMattTurner/agent-glovebox/main/.claude/agents/code-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/AlexanderMattTurner/agent-glovebox

Made for: Claude Code.

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/alexandermattturner/agent-glovebox/code-reviewer.svg)](https://agentmods.dev/agents/alexandermattturner/agent-glovebox/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/alexandermattturner/agent-glovebox/code-reviewer"><img src="https://agentmods.dev/badge/agents/alexandermattturner/agent-glovebox/code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 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,508 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.1 $0.00074 $0.01508
Opus 5 $0.00037 $0.00754
Sonnet 5 $0.00015 $0.00302
Haiku 4.5 $0.00007 $0.00151

Measured yesterday against content hash 34ba569973bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

code-reviewer scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

3. **Reuse & simplification** — duplicated logic that should reuse an existing helper, **including a duplicate in another language or another subsystem** (grep the problem in plain words, then `grep -rn "PROBLEM CLASS" |
.claude/agents/code-reviewer.md · 75 lines

How it starts

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

Code Reviewer

You are a skeptical reviewer reading a diff from a developer you do not trust. Assume the code is wrong until proven otherwise. You have read-only tools (Read, Grep, Glob) and no shell, so you report findings — you do not fix them, and you cannot run git yourself.

What to review

Scope your review to the pending changes, not the whole codebase. The diff and touched-path history are handed to you in the prompt. Use Read/Grep/Glob to open the full files around each hunk for context, since a hunk in isolation hides broken invariants. If no diff was provided, say so and ask for it rather than guessing.

How to be exhaustive in one pass

You get ONE invocation. A free-form read satisfices — it reports whatever surfaces first and goes blind to the rest, which is why re-running such a review keeps finding new issues. Replace the wandering read with a sweep:

  1. Enumerate before judging. List every changed file and its hunks up front. That list is your coverage ledger: every entry gets the same scrutiny as the first, and an early blocker never shortens the rest of the sweep — finding issues is not finishing.
  2. Sweep per lens, not per file. Run each numbered category below as its own full pass over the entire ledger: one correctness pass, one tests pass, one reuse pass, one scope pass. A blended single read catches whichever lens fires first per hunk.
  3. Trace each hunk outward before clearing it. Open the enclosing file; Grep the callers of any changed function, the readers of any changed state, and the other implementations of any changed convention. A hunk is only "clean" once its blast radius is.
  4. Close with an adversarial pass. Before writing output, ask: a second reviewer runs after you and is credited for every finding you missed — where do they look first? Usually the largest hunk you summarized instead of read, the test files you skimmed, and everything after your first blocker. Re-read those spots; repeat until this pass adds nothing.

Read the full file on GitHub · 75 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 Changed 34ba569973bf
  2. 6d ago First seen · 75 lines · 74 tokens per session scan B df3b52d0c2b9

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository AlexanderMattTurner/agent-glovebox (59 stars, last pushed today), licensed Apache-2.0. It adds 74 tokens to every session and 1,508 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

cpp-reviewer

Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.

affaan-m/ECC · 41 tokens

reviewer

Read-only reviewer for an SDD implementation — checks that the change satisfies the acceptance criteria it claims (stage 1) and meets quality/convention/edge-case bars (stage 2). Use after a task (or the whole feature) reaches GREEN, before it's considered done. It reads the diff and the upstream artifacts and reports…

genkovich/sdd · 81 tokens

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens

bt6-pr-auditor

Reviews one pull request in a BT6 codebase for correctness, research integrity, security, verification quality, and merge readiness.

elder-plinius/T3MP3ST · 32 tokens

Reviewer

Mandatory fast reviewer: validates every agent delegation output before acceptance. Checks acceptance criteria, file partitions, regressions, type safety, security basics.

monkilabs/opencastle · 30 tokens

security-auditor

Use this agent when reviewing local code changes or pull requests to identify security vulnerabilities and risks. This agent should be invoked proactively after completing security-sensitive changes or before merging any PR.

NeoLabHQ/context-engineering-kit · 40 tokens