code-review-loop

code-review-loop is a skill for Claude Code, Codex from TheWayWithin/agent-11. It costs 76 tokens per session (2,110 once invoked), scanned A, original, MIT.

A repeated code-review process in which one read-only reviewer finds evidence-based issues, another step fixes only those issues, and the reviewer checks the result again. It repeats until the review is clean twice in a row or reaches its limit.

In plain words
What is it for?
Use it on pull requests or changed files when completion can be checked with tests, gates, or a defined review standard. It is not intended for designing new features.
Why use it?
A single review can leave comments unresolved or accept fixes without checking them again. Separating review from editing creates a clear cycle for addressing and re-verifying findings.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/thewaywithin/agent-11/code-review-loop
Any agent
npx skills add TheWayWithin/agent-11 --skill code-review-loop
Clone the repo
git clone --depth 1 https://github.com/TheWayWithin/agent-11

Made for: Claude Code, Codex.

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-review-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/thewaywithin/agent-11/code-review-loop.svg)](https://agentmods.dev/skills/thewaywithin/agent-11/code-review-loop)
Your own site
<a href="https://agentmods.dev/skills/thewaywithin/agent-11/code-review-loop"><img src="https://agentmods.dev/badge/skills/thewaywithin/agent-11/code-review-loop.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,110 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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 $0.00076 $0.02110
Opus 5 $0.00038 $0.01055
Sonnet 5 $0.00015 $0.00422
Haiku 4.5 $0.00008 $0.00211

Measured today against content hash 43568bfa0317, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-review-loop 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 today.

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.

project/skills/code-review-loop/SKILL.md · 164 lines

How it starts

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

Code Review Loop

Capability

Run the canonical working loop from the loops/autoresearch research: a read-only critic scores a diff and raises evidence-backed findings, a read-write fixer addresses ONLY those findings, then the critic re-audits. Repeat until two consecutive clean rounds or a cap. The separation is the whole point — the thing that judges the code cannot edit the code, so it cannot pass the review by loosening it (the Sprint 6a read-only principle, applied to review).

Use Cases

  • Reviewing a pull request to a converged, clean state.
  • Hardening one changed file or surface before merge.
  • Turning a pile of review comments into addressed-and-re-verified findings.
  • Any "iterate until clean" task where "clean" is a checkable signal, not a vibe.

When NOT to use this skill

  • No checkable signal for "done". If "good" is subjective taste with no test, gate, or rubric, a loop just burns tokens. Do a single review pass instead.
  • Green-field authoring. This loop reviews and fixes an existing diff; it does not design features from scratch.
  • Structural rewrites. The fixer addresses raised findings on a named surface. A loop will not invent an architecture change that needs a step backwards first.
  • Unbounded scope. If every round surfaces a brand-new area, the surface is too big. Narrow it first.

The two roles (never the same agent on the same turn)

Role Tools Model Job
Critic Read-only (Read, Grep, Bash for running checks — NO Edit/Write) A different model to the fixer Score the diff, raise findings with file:line + evidence. Never edits code.
Fixer Read-write (Edit/Write on the named surface only) The session default Address ONLY the raised findings. Never edits the gate, the test, or the critic's rubric.

Run the critic on a different model to the fixer. Read-only separates the incentives; a different model separates the blind spots. A critic sharing the generator's weights inherits the same assumptions and tends to return agreement rather than verification, so a same-model critic scoring its own family's work is closer to a consistency check than a review. Switch with /model between roles, set CLAUDE_CODE_SUBAGENT_MODEL, or pass opts.model if you are driving the loop from a script. If only one model is available the loop still works and is still worth running: note in the log that critic and fixer shared weights, and treat a clean round as weaker evidence.

Read the full file on GitHub · 164 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. today First seen · 164 lines · 76 tokens per session scan A 43568bfa0317

Subscribe to this mod's changes

code-review-loop is a skill published in the GitHub repository TheWayWithin/agent-11 (15 stars, last pushed 12d ago), licensed MIT. It adds 76 tokens to every session and 2,110 once invoked, about $0.0004 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-04.

Related

Other skills, from other repositories

verify

Grade work that already exists and decide whether it can merge. Runs the project's current unit, integration, and E2E suites plus security scanning and type checking, scores every dimension 0-10, and returns a merge verdict with a VERIFIED-vs-CLAIMED evidence manifest. Writes no test files and edits no source. Use…

yonatangross/orchestkit · 92 tokens

assess

Assesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use…

yonatangross/orchestkit · 72 tokens

review-pr

PR review using parallel specialized agents for code quality, security, testing, architecture, and performance analysis. Synthesizes findings into a review report with conventional comments (praise/issue/suggestion/nitpick) and approve or request-changes verdict. Use when reviewing pull requests, conducting security…

yonatangross/orchestkit · 69 tokens

quality-gates

Use when assessing task complexity, before starting complex tasks, when stuck after multiple attempts, or reviewing code against best practices. Provides quality-gates scoring (1-5), escalation workflows, and pattern library management.

yonatangross/orchestkit · 46 tokens

code-review-playbook

Structured review processes, conventional comments, language-specific checklists, and feedback templates. Use when reviewing PRs, conducting code review, or standardizing review practice.

yonatangross/orchestkit · 37 tokens

golden-dataset

Golden dataset lifecycle patterns for curation, versioning, quality validation, and CI integration. Use when building evaluation datasets, managing dataset versions, validating quality scores, or integrating golden tests into pipelines.

yonatangross/orchestkit · 44 tokens