reviewer-mcp: Agent for Claude Code

.claude/agents/build-and-iterate.md

build-and-iterate is an agent for Claude Code from kodaimaehata/reviewer-mcp. It costs 0 tokens per session (266 once invoked), scanned A, original, MIT.

An agent workflow that creates or edits files, sends them to a code reviewer, and repeats fixes until the review approves them.

In plain words
What is it for?
Use it to generate or update specified files, apply required review fixes, and stop after approval or a set iteration limit.
Why use it?
It reduces manual back-and-forth between implementation and review while keeping a record of each review attempt.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is kodaimaehata/reviewer-mcp's own configuration. It tells Claude Code how to work on reviewer-mcp 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 reviewer-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kodaimaehata/reviewer-mcp. 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/kodaimaehata/reviewer-mcp/main/.claude/agents/build-and-iterate.md
Clone the repo
git clone --depth 1 https://github.com/kodaimaehata/reviewer-mcp

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 build-and-iterate

README.md
[![agentmods](https://agentmods.dev/badge/agents/kodaimaehata/reviewer-mcp/build-and-iterate/github.svg)](https://agentmods.dev/agents/kodaimaehata/reviewer-mcp/build-and-iterate)
Your own site
<a href="https://agentmods.dev/agents/kodaimaehata/reviewer-mcp/build-and-iterate"><img src="https://agentmods.dev/badge/agents/kodaimaehata/reviewer-mcp/build-and-iterate/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 build-and-iterate

Your own site · 80×15
<a href="https://agentmods.dev/agents/kodaimaehata/reviewer-mcp/build-and-iterate"><img src="https://agentmods.dev/badge/agents/kodaimaehata/reviewer-mcp/build-and-iterate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 266 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.00000 $0.00266
Opus 5 $0.00000 $0.00133
Sonnet 5 $0.00000 $0.00053
Haiku 4.5 $0.00000 $0.00027

Measured 10d ago against content hash 6a821c1e4f0d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

build-and-iterate 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 10d 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.

.claude/agents/build-and-iterate.md · 18 lines

What it actually says

build-and-iterate

許可ツール: Read, Write, Edit, Grep, Glob, mcp__cursor-reviewer__cursor.review

目的: 成果物を生成/修正し、cursor.review を呼び出して LGTM になるまで反復。

擬似手順:

  1. 初期生成/更新: 指定 targets を作成/更新。
  2. レビュー呼出し: res = /mcp__cursor-reviewer__cursor.review { targets, reference, review_request, timeout_ms }
  3. 判定: res.lgtm && res.status == "approve" → 完了。
  4. 修正: res.must_fixes を最小差分で適用(patch が安全なら適用、無ければ instruction ベース)。
  5. 再レビュー: 2) に戻る(MAX_ITERS 既定 5、超過で abort 理由を reviews/fixer_log.md に保存)。

注意:

  • JSON以外が混入したらプロンプトで「JSONのみ」を再強調し再試行。
  • 監査目的で各反復のレビューJSONを reviews/ に保存。
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. 10d ago First seen · 18 lines · 0 tokens per session scan A 6a821c1e4f0d

Subscribe to this mod's changes

build-and-iterate is an agent published in the GitHub repository kodaimaehata/reviewer-mcp (0 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 266 tokens. 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-08-31.

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