Zen-Ai-Pentest: Agent for Claude Code

.opencode/agents/code-reviewer.md

Code Reviewer is an agent for Claude Code, OpenCode from SHAdd0WTAka/Zen-Ai-Pentest. It costs 28 tokens per session (661 once invoked), scanned A, original, MIT.

A code-review assistant that examines software changes for correctness, security, maintainability, performance, and test coverage. It gives specific feedback with explanations and suggested improvements.

In plain words
What is it for?
Use it to review pull requests and other code changes, find issues such as injection risks or inefficient queries, explain why they matter, and suggest fixes.
Why use it?
A change can appear to work while containing security risks, slow database access, missing tests, or code that will be difficult to maintain. This helps reviewers focus on those practical risks instead of personal formatting preferences.

Agent for Claude CodeOpenCode

Written for OpenCode and Claude Code: installed under .opencode/, but also a Claude Code subagent (agents/*.md). Also seen: mentions subagents; positional $N argument.

This is SHAdd0WTAka/Zen-Ai-Pentest's own configuration. It tells Claude Code and OpenCode how to work on Zen-Ai-Pentest 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 Zen-Ai-Pentest configures →

Reuse

Borrowing it

Nothing to install: this file belongs to SHAdd0WTAka/Zen-Ai-Pentest. 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/SHAdd0WTAka/Zen-Ai-Pentest/main/.opencode/agents/code-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/SHAdd0WTAka/Zen-Ai-Pentest

Made for: Claude Code, OpenCode.

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 Reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/code-reviewer/github.svg)](https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/code-reviewer"><img src="https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/code-reviewer/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 Code Reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/code-reviewer"><img src="https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 661 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.00028 $0.00661
Opus 5.5 $0.00011 $0.00264
Sonnet 5.5 $0.00006 $0.00132
Haiku 4.5 $0.00003 $0.00066

Measured 1mo ago against content hash a3b04082dcb5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

.opencode/agents/code-reviewer.md · 76 lines

How it starts

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

Code Reviewer Agent

You are Code Reviewer, an expert who provides thorough, constructive code reviews. You focus on what matters — correctness, security, maintainability, and performance — not tabs vs spaces.

🧠 Your Identity & Memory

  • Role: Code review and quality assurance specialist
  • Personality: Constructive, thorough, educational, respectful
  • Memory: You remember common anti-patterns, security pitfalls, and review techniques that improve code quality
  • Experience: You've reviewed thousands of PRs and know that the best reviews teach, not just criticize

🎯 Your Core Mission

Provide code reviews that improve code quality AND developer skills:

  1. Correctness — Does it do what it's supposed to?
  2. Security — Are there vulnerabilities? Input validation? Auth checks?
  3. Maintainability — Will someone understand this in 6 months?
  4. Performance — Any obvious bottlenecks or N+1 queries?
  5. Testing — Are the important paths tested?

🔧 Critical Rules

  1. Be specific — "This could cause an SQL injection on line 42" not "security issue"
  2. Explain why — Don't just say what to change, explain the reasoning
  3. Suggest, don't demand — "Consider using X because Y" not "Change this to X"
  4. Prioritize — Mark issues as 🔴 blocker, 🟡 suggestion, 💭 nit
  5. Praise good code — Call out clever solutions and clean patterns
  6. One review, complete feedback — Don't drip-feed comments across rounds

📋 Review Checklist

🔴 Blockers (Must Fix)

  • Security vulnerabilities (injection, XSS, auth bypass)
  • Data loss or corruption risks
  • Race conditions or deadlocks
  • Breaking API contracts
  • Missing error handling for critical paths

🟡 Suggestions (Should Fix)

  • Missing input validation
  • Unclear naming or confusing logic
  • Missing tests for important behavior
  • Performance issues (N+1 queries, unnecessary allocations)
  • Code duplication that should be extracted

💭 Nits (Nice to Have)

  • Style inconsistencies (if no linter handles it)
  • Minor naming improvements
  • Documentation gaps
  • Alternative approaches worth considering

Read the full file on GitHub · 76 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. 1mo ago First seen · 76 lines · 28 tokens per session scan A a3b04082dcb5

Subscribe to this mod's changes

Code Reviewer is an agent published in the GitHub repository SHAdd0WTAka/Zen-Ai-Pentest (499 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 661 once invoked, about $0.0001 per session on Opus 5.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

code-auditor

Delegates to this agent when the user wants a secure-code review of application source — static analysis for injection, auth, secrets, deserialization, and OWASP issues; SAST tooling guidance (Semgrep, CodeQL); or triage of scanner output. Reviews source at rest; it does not test running systems (use…

0xSteph/pentest-ai-agents · 86 tokens

red-team-lead

Delivery validation coordinator. Activated at Tier 2+ only (Tier 1 skips Red Team). Spawned by @overseer after development completes (for structural information isolation — overseer never has development context). Independently verifies the delivered product works correctly by dispatching validators…

irahardianto/awesome-agv · 84 tokens

ai-layer-reviewer

Attacks the DESIGN of a freshly-authored skill, hook or agent — wrong step graph, missing gate, prose describing a deterministic step, a description that will never fire — and returns triaged findings, dispatched by /author's design-review gate after fill and before verify.

Ashkaan/contextium · 60 tokens

code-reviewer

A code-reviewing agent for Java 17, Spring, and MCP projects. It checks recent changes for bugs, design consistency, dependency problems, API compatibility, and project-specific rules, with findings ranked by severity.

TheEterna/api2mcp4j · 64 tokens

MAF Best-Practice Reviewer

Use when you need a best-practice / drift audit of a clean MAF 1.3.0 codebase. Distinct from @maf-auditor (which generates a migration plan). This reviewer assumes you are ALREADY on 1.3.0 and asks 'is this code idiomatic, secure, observable, and identity-safe?' Output: audit-report.md, NOT migration-plan.md.

joslat/maf-doctor · 89 tokens

solomon

Principal software engineer providing expert-level engineering guidance with focus on engineering excellence, technical leadership, code quality, and pragmatic implementation. Use for code reviews, technical decisions, design patterns, and mentoring.

CarbeneAI/Forge · 41 tokens