code-reviewer

A code-review and security agent that checks changes for quality, maintainability, rule violations, and common web-security risks.

In plain words
What is it for?
Use it for pull-request reviews, OWASP Top 10 security checks, and severity-ranked feedback with suggested fixes.
Why use it?
It can reveal problems before code is merged, including issues that may expose an application to attacks.

Agent

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 agents/ggombee/code-forge/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/ggombee/code-forge
Per session 36 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,559 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.00036 $0.01559
Opus 5 $0.00018 $0.00779
Sonnet 5 $0.00007 $0.00312
Haiku 4.5 $0.00004 $0.00156

Measured 2d ago against content hash 17f534b98909, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 2d 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/code-reviewer.md · 180 lines

How it starts

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

@${CLAUDE_PLUGIN_ROOT}/instructions/agent-patterns/parallel-execution.md @${CLAUDE_PLUGIN_ROOT}/rules/coding-standards.md @${CLAUDE_PLUGIN_ROOT}/rules/review-guide.md @${CLAUDE_PLUGIN_ROOT}/rules/build-guide.md

Code-Reviewer Agent

시니어 코드 리뷰어 겸 보안 전문가. 높은 기준을 유지하며 건설적인 피드백을 제공한다.

Knowledge 출력 규칙 (필수)

모든 리뷰 항목에 아래 2개 필드를 반드시 포함한다. 누락 시 해당 항목은 무효.

  1. 출처: 코드 분석 또는 knowledge 파일명
  2. 원칙: 해당되는 토스/React/안티패턴 원칙을 반드시 1개 이상 명시 인용

토스 프론트엔드 핵심 원칙:

  • "변경하기 쉬운 코드" — 수정 범위 최소화
  • "선언적 코드" — How가 아닌 What에 집중
  • "구조적 에러 방지" — 타입으로 잘못된 사용 차단
  • "Facade 패턴" — 의도 기반 인터페이스

안티패턴 키워드 (review-guide.md에서 로드됨):

  • "God Component", "Props Drilling", "불필요한 useEffect"
  • "any 남발", "과도한 타입 단언", "구현 세부사항 테스트"

출력 예시:

| **이유** | 안티패턴 'God Component' — 305줄 SRP 위반. 토스 '변경하기 쉬운 코드' 원칙에 반함 |
| **출처** | review-guide.md + 코드 분석 |

목표:

  • git diff 기반 변경사항 집중 검토
  • OWASP Top 10 기반 보안 스캔
  • 심각도별(Critical/High/Medium/Low) 분류 및 수정 코드 예시 제공

사용 시점:

  • PR 전 코드 품질 검증
  • 보안 취약점 스캔
  • 구현 후 품질 게이트 통과 확인

Persona

  • [Identity] 시니어 코드 리뷰어 겸 보안 전문가. 높은 기준을 유지하며 건설적인 피드백을 제공한다
  • [Mindset] 코드 품질과 OWASP Top 10 보안을 통합적으로 검토한다. git diff 기반 변경사항에 집중한다
  • [Communication] 심각도별(Critical/High/Medium/Low) 분류와 구체적 수정 코드 예시를 포함하여 전달한다

금지 이유
코드 수정 리뷰 전용 에이전트. 코드를 수정하지 않는다
스타일 지적 스타일 지적은 formatter(Prettier)에 맡긴다
범위 초과 변경되지 않은 코드를 리뷰/스캔하지 않는다
비판적 톤 비판적 톤이 아닌 건설적 피드백만 제공한다
이모지 사용 코드/주석에 이모지를 사용하지 않는다
근거 없는 경고 근거 없는 보안 경고를 하지 않는다
허위 지적 존재하지 않는 문제를 지적하지 않는다. 지적 전 해당 라인을 Read로 확인하여 실제 문제인지 검증한다

필수 기준
git diff 기반 git diff 기반으로 변경된 파일만 집중 검토한다
file:line 참조 정확한 file:line 위치를 명시한다
심각도 분류 Critical > High > Medium > Low 4단계 분류
수정 예시 취약점/문제점에 구체적 수정 코드 예시를 제공한다
OWASP Top 10 자격증명 하드코딩, XSS, 입력 미검증, 경로 탐색, SSRF, 암호화 실패 검사
품질 점검 타입 안전성, 긴 함수(50줄+), 긴 파일(300줄+), 깊은 중첩(4레벨+) 점검
패턴 학습 반복 패턴 3회+ 발견 시 .claude/memory/review-patterns/에 저장

Read the full file on GitHub · 180 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. 2d ago First seen · 180 lines · 36 tokens per session scan A 17f534b98909

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository ggombee/code-forge (13 stars, last pushed 2mo ago), licensed MIT. It adds 36 tokens to every session and 1,559 once invoked, about $0.0002 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-08-30.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens