review-loop

review-loop is a skill for Claude Code from stone16/harness-engineering-skills. It costs 22 tokens per session (4,943 once invoked), scanned C, original, Apache-2.0.

An automated code-review process where one AI agent reviews changes made by another, and the agents repeat the review until they agree.

In plain words
What is it for?
Use it to review a diff, branch, or pull request with Codex, Claude, or Gemini. It can either modify the code or produce a report only.
Why use it?
It reduces the need to coordinate reviews manually and helps catch and address issues across several review rounds.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Part of the harness-engineering-skills plugin — 2 skills, 5 agents shipped together

Good fit Use it to review a diff, branch, or pull request with Codex, Claude, or Gemini. It can either modify the code or produce a report only.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stone16/harness-engineering-skills/review-loop
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.

Any agent
npx skills add stone16/harness-engineering-skills --skill review-loop
Clone the repo
git clone --depth 1 https://github.com/stone16/harness-engineering-skills

Made for: Claude Code.

Or install harness-engineering-skills, the plugin that ships this one along with the rest of its 2 skills, 5 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/stone16/harness-engineering-skills/review-loop/github.svg)](https://agentmods.dev/skills/stone16/harness-engineering-skills/review-loop)
Your own site
<a href="https://agentmods.dev/skills/stone16/harness-engineering-skills/review-loop"><img src="https://agentmods.dev/badge/skills/stone16/harness-engineering-skills/review-loop/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 review-loop

Your own site · 80×15
<a href="https://agentmods.dev/skills/stone16/harness-engineering-skills/review-loop"><img src="https://agentmods.dev/badge/skills/stone16/harness-engineering-skills/review-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,943 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00022 $0.04943
Opus 5.5 $0.00009 $0.01977
Sonnet 5.5 $0.00004 $0.00989
Haiku 4.5 $0.00002 $0.00494

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

Security

Grade C, and why

review-loop scanned grade C with 2 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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/peer-invoke.sh, scripts/preflight.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

"$(find ~/.claude/plugins/cache -path "*/review-loop" -type d 2>/dev/null | head -1)" \

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

"$(find ~/.claude/skills -path "*/review-loop" -type d 2>/dev/null | head -1)" \
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/harness-engineering-skills/skills/review-loop/SKILL.md · 493 lines

How it starts

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

Review Loop — Cross-LLM Iterative Code Review

Spawns a peer reviewer (Codex, Claude, or Gemini) to independently review your code changes. The host agent evaluates findings, implements accepted fixes, and re-submits for peer re-review. Iterates until both agents agree on the final code state.

Key: You (the human) do NOT need to participate. Watch progress via .review-loop/<session>/rounds.json and summary.md.

Compatibility note: rounds.json keeps the historical field name claude_actions for backward compatibility. In Codex-hosted runs, that field still stores the host agent's decisions and code changes.

Prerequisites

  • Required: git CLI
  • Peer (one of): codex CLI (codex --version), claude CLI (claude --version), or gemini CLI (gemini --version)
  • Optional: gh CLI (for PR scope detection)

Configuration

Defaults

Setting Default Options
peer_reviewer codex codex, claude, gemini
max_rounds 5 1–10
timeout_per_round 600 seconds
scope_preference auto auto, diff, branch, pr
read_only false true = report-only, no code changes

The peer reviewer always runs with local repository access.

Read-only mode (read_only: true): Peer reviews code and the host agent evaluates findings, but NO code changes are made. Output is a findings report only — no fix commits, no code evolution loop. Useful when review-loop is used as a sensor by other skills (e.g., the bundled harness skill's Evaluator Tier 2). In read-only mode, Phase 2 (Code Evolution Loop) is skipped entirely — after Round 1 findings are evaluated, the loop goes directly to Phase 3 report generation with all findings classified as reported (not accepted/rejected).

Override via project config

Create .review-loop/config.json in the project root to override defaults:

{
  "peer_reviewer": "gemini",
  "max_rounds": 8
}

Read the full file on GitHub · 493 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · -7 lines · -108 tokens per session e7b3e489d561
  2. 1mo ago First seen · 500 lines · 130 tokens per session scan C d828f40219e5

Subscribe to this mod's changes

review-loop is a skill published in the GitHub repository stone16/harness-engineering-skills (31 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 22 tokens to every session and 4,943 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 2 findings (reads agent configuration directories, enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

logic-review

Find logic bugs in a single file or function via semi-formal execution tracing (Premises → Trace → Divergence → Trigger → Remedy). Trigger when a user shares code and suspects something is wrong without naming a concrete failure — phrases like "review this", "does this look right", "check this function", "audit this…

hyhmrright/logic-lens · 161 tokens

logic-fix-all

Autonomous repository-wide audit-and-fix pipeline: health → review → locate/explain → fix → diff-verify → iterate until clean. Starts with a mandatory consent prompt (token-intensive); after consent runs hands-free. Trigger when the user wants ALL logic issues found and fixed — "fix everything", "fix all logic…

hyhmrright/logic-lens · 211 tokens

logic-health

Sweep a directory, module, or full codebase for logic correctness and produce a scored health dashboard with systemic patterns. Trigger when the user requests a health view — "audit the whole codebase", "health check", "health overview", "logic health overview", "audit src/", "audit auth and payments modules", "where…

hyhmrright/logic-lens · 180 tokens

run-iteration-eval

Run the Logic-Lens content-eval pipeline for one iteration and produce a scored summary.json — use to measure a skill change. Wraps scripts/run-content-evals.sh (runner, costs tokens) and scripts/grade-iteration.py (grader, free, re-runnable). ALWAYS sync the plugin cache first. Use when the user wants to "run the…

hyhmrright/logic-lens · 108 tokens

new-skill

Scaffold a new logic- skill in the Logic-Lens repo and wire it into every place a skill must be registered, so no step is missed. Use when adding a seventh (or later) skill to Logic-Lens.

hyhmrright/logic-lens · 50 tokens

sync-skill-cache

Sync the Logic-Lens working-copy skills/ into the installed plugin cache so content-evals test the EDITED skill, not the last published one. ALWAYS run this after editing any skills//SKILL.md or guide/shared file and BEFORE running content-evals — otherwise the eval silently grades stale content and every token is…

hyhmrright/logic-lens · 103 tokens