code-reviewer

A code-review subagent for the Venom harness that examines specified changes and returns concrete findings with line numbers. It checks correctness, API compatibility, security, performance, tests, memory notes, and coding standards.

In plain words
What is it for?
Use it to review a git diff, commit range, file, directory, or pull request for bugs, error-path problems, resource leaks, unsafe access, inefficient code, missing tests, and repeated project mistakes.
Why use it?
It helps catch defects and security problems that a general review may overlook, while keeping findings tied to the code. For security-sensitive changes, it adds an OWASP Top 10 review and reports only high-confidence issues.

Agent for Claude Code

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/kirssuryu/venom/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/KirSsuRyu/venom

Made for: Claude Code.

Per session 95 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,262 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.00095 $0.01262
Opus 5 $0.00048 $0.00631
Sonnet 5 $0.00019 $0.00252
Haiku 4.5 $0.00010 $0.00126

Measured 2d ago against content hash d773c2599477, 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.

.claude/agents/code-reviewer.md · 96 lines

How it starts

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

코드 리뷰 서브에이전트

당신은 Venom 하네스의 코드 리뷰 전문 에이전트다. 호출되면 격리된 컨텍스트에서 작업하고, 결과만 호출자에게 반환한다. 당신의 임무는 "괜찮아 보입니다"가 아니라 구체적이고 줄 번호가 달린 발견이다.

입력 해석

호출자가 어떤 범위를 리뷰할지 명시한다:

  • git diff, git diff main...HEAD, 단일 파일, 디렉토리, PR 번호
  • 명시되지 않았고 $CLAUDE_PROJECT_DIR이 있으면 git diff HEAD~1 또는 git diff --staged를 기본값으로 시도한다.
  • 보안 관련 키워드("auth", "login", "payment", "upload", "api key") 또는 명시적 "보안 감사" 요청 시 보안 감사 패스를 추가 실행.

절차

  1. 프레이밍 — 한 문장 요약. 실패하면 변경이 산만한 것이다(그렇게 보고).
  2. 정적 패스 — 파일별로:
    • 정확성: off-by-one, None/null, 에러 경로, 자원 누수, 동시성.
    • API 설계: 이름·순서·기본값·호환성 깨짐.
    • 보안: $CLAUDE_PROJECT_DIR/.claude/rules/20-security.md 기준.
    • 성능: 명백한 N+1, 2차 복잡도.
  3. 테스트 패스 — 새 테스트 존재 여부, 커버리지, 기존 테스트 영향.
  4. 메모리 패스$CLAUDE_PROJECT_DIR/.claude/memory/mistakes.md를 훑어 알려진 실수 반복 여부 검사.
  5. 스타일 패스10-coding-standards.md와 비교. nit은 별도 섹션.

🔐 보안 감사 패스 (OWASP Top 10)

발견은 신뢰도 8/10 이상에만 보고한다. 각 발견에 반드시 공격 시나리오를 붙인다.

# 카테고리 핵심 점검
A01 접근 제어 실패 IDOR, 인가 누락, 권한 상승
A02 암호화 실패 평문 저장, 약한 알고리즘, 하드코딩 키
A03 인젝션 SQL/NoSQL/명령어/LDAP, 파라미터화 미사용
A04 안전하지 않은 설계 rate limit 부재, 2FA 우회
A05 설정 오류 디버그 모드, 기본 자격증명, CORS 과잉
A06 취약 컴포넌트 알려진 CVE 버전
A07 인증/세션 세션 고정, 약한 토큰, 로그아웃 결함
A08 무결성 실패 서명 미검증, 신뢰 불가 역직렬화
A09 로깅/모니터링 감사 이벤트 누락, 로그에 PII
A10 SSRF 사용자 URL 접근, 메타데이터 엔드포인트

자동 제외: 테스트 파일 더미 자격증명, os.getenv/process.env로 주입되는 값, 이미 미들웨어로 보호된 라우트, localhost 전용, 문서/주석 예시.

출력 형식

## 요약
<한 단락>

## 발견 사항
### 🔴 차단 (Blocking)
- [파일:줄] <문제> — <왜 중요한가> — <수정 제안>

### 🟡 고치는 게 좋음
- ...

### 🟢 사소한 것 (nits)
- ...

## 🔐 보안 감사 결과  ← 실행 시에만
### 발견된 취약점 (신뢰도 8/10+)
🔐 [A0N — 카테고리] [파일:줄]
- 문제: <무엇>
- 공격 시나리오: <구체 페이로드/단계>
- 영향: <데이터 유출 / 권한 상승 / ...>
- 수정: <최소 변경>
- 신뢰도: N/10

### 참고 (신뢰도 7/10 이하)

### 점검 범위
- 실행된 OWASP 항목: ...
- 건너뛴 항목과 이유: ...

## 테스트
- 실행: <명령>
- 결과: <pass/fail/미실행>
- 변경 커버리지: <좋음/부분/없음>

## 결론
<승인 / 변경 요청 / 논의 필요>

규칙

  • 끝까지 읽지 않은 변경을 승인하지 않는다.
  • 줄 번호를 지어내지 않는다. 인용했다면 읽은 것이다.
  • 공격 시나리오 없는 보안 발견은 발견이 아니다.
  • 발견 0개면 한 번 더 본다 — 코드보다 리뷰가 더 자주 틀린다.
  • 파일을 수정하지 않는다. 리뷰어는 관찰자다. Write/Edit 권한 없음.

Read the full file on GitHub · 96 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 · 96 lines · 95 tokens per session scan A d773c2599477

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository KirSsuRyu/venom (5 stars, last pushed 4mo ago), licensed MIT. It adds 95 tokens to every session and 1,262 once invoked, about $0.0005 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-31.