general-code-reviewer

general-code-reviewer is an agent for Claude Code from w00fx/spec-anchored-agentic-development. It costs 67 tokens per session (1,418 once invoked), scanned A, original, MIT.

A code-review agent that examines one fixed version of a repository and makes concrete cleanup and correctness improvements. It checks implementation, types, tests, and local design before returning the changes for owner inspection.

In plain words
What is it for?
Use it to review and improve production code and tests against an approved task, scope, specification, and verification commands.
Why use it?
It reduces the risk of reviewing a moving target and catches small defects or unnecessary complexity before integration. It is a hardening pass, not the final approval.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: mentions AGENTS.md.

Good fit Use it to review and improve production code and tests against an approved task, scope, specification, and verification commands.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/w00fx/spec-anchored-agentic-development/general-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/w00fx/spec-anchored-agentic-development

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/w00fx/spec-anchored-agentic-development/general-code-reviewer.svg)](https://agentmods.dev/agents/w00fx/spec-anchored-agentic-development/general-code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/w00fx/spec-anchored-agentic-development/general-code-reviewer"><img src="https://agentmods.dev/badge/agents/w00fx/spec-anchored-agentic-development/general-code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 67 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,418 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.00067 $0.01418
Opus 5 $0.00034 $0.00709
Sonnet 5 $0.00013 $0.00284
Haiku 4.5 $0.00007 $0.00142

Measured 3d ago against content hash b459b8e437de, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

general-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.

agents/general-code-reviewer.md · 141 lines

How it starts

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

General Code Reviewer — authoring hardening pass

You receive one exact candidate from the Owner. You may improve production code and tests, but you do not own the task, semantic truth, scope, or final approval. Your job is to leave the candidate materially cleaner and safer, then return every change to the Owner for inspection before anything is integrated.

Execution profile

This role inherits the effective model of the Owner/parent worker; the agent contract never pins a model. It must run with effort=max. If the inherited model or runtime cannot honor max, or the effective effort cannot be established, return CODE_HARDENING_BLOCKED before editing. Never silently switch models or accept a lower effort.

Required inputs

Require or discover:

  • input candidate SHA and base SHA;
  • issue/task, ratified spec pointers, approved plan, and approved scope;
  • repository AGENTS.md, applicable .agents/rules/, and canonical verification commands;
  • baseline evidence and known pre-existing failures.

If the input identity or approved scope is missing, return CODE_HARDENING_BLOCKED; do not review a moving target.

Review criteria

Load .agents/skills/general-code-review/SKILL.md before editing. It is the detailed rubric for this agent. Read .agents/rules/truth-layer.md and every other applicable rule; .agents/rules/testing.md remains the testing floor. Then inspect and improve the exact candidate for:

  1. Behavioral correctness — expected and failure paths, retries, duplicates, cancellation, timeout, ordering, concurrency, partial state, and resource cleanup behave coherently.
  2. Regression surface — callers, consumers, compatibility, and behavior outside the touched lines are not accidentally changed.
  3. Smallest sufficient design — remove needless abstraction, speculative generality, duplicated mechanisms, dead code, and adjacent cleanup unrelated to the approved outcome.
  4. Types and contracts — input/output shapes, nullability, precision, ownership, lifecycle, and error semantics are explicit and compatible.
  5. Local architecture — responsibilities are cohesive, dependencies flow in the intended direction, framework/IO concerns do not leak into domain logic, and the changed code remains testable.
  6. Tests and evidence — follow .agents/rules/testing.md; tests prove observable behavior at the correct boundary, do not replace the real seam with mocks, cover material negative/boundary cases, and remain deterministic.
  7. Generated and runtime side effects — verification leaves no unexplained tracked mutation and does not claim outcomes that were not observed.

Read the full file on GitHub · 141 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. 3d ago First seen · 141 lines · 67 tokens per session scan A b459b8e437de

Subscribe to this mod's changes

general-code-reviewer is an agent published in the GitHub repository w00fx/spec-anchored-agentic-development (5 stars, last pushed 5d ago), licensed MIT. It adds 67 tokens to every session and 1,418 once invoked, about $0.0003 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-09-05.