code-reviewer

code-reviewer is an agent for Claude Code from skullninja/coco-workflow. It costs 127 tokens per session (3,484 once invoked), scanned A, original, MIT.

An automated reviewer for pull-request changes, where a pull request is a proposed code change awaiting review before it is merged.

In plain words
What is it for?
Use it to review pull-request diffs, check project rules and test expectations, and produce structured findings.
Why use it?
It finds possible correctness, security, quality, and testing problems and labels their severity before the code is merged.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the coco plugin — 6 skills, 14 commands, 4 agents, 3 hooks shipped together

Good fit Use it to review pull-request diffs, check project rules and test expectations, and produce structured findings.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/skullninja/coco-workflow/code-reviewer
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.

Clone the repo
git clone --depth 1 https://github.com/skullninja/coco-workflow

Made for: Claude Code.

Or install coco, the plugin that ships this one along with the rest of its 6 skills, 14 commands, 4 agents, 3 hooks.

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/skullninja/coco-workflow/code-reviewer/github.svg)](https://agentmods.dev/agents/skullninja/coco-workflow/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/skullninja/coco-workflow/code-reviewer"><img src="https://agentmods.dev/badge/agents/skullninja/coco-workflow/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/skullninja/coco-workflow/code-reviewer"><img src="https://agentmods.dev/badge/agents/skullninja/coco-workflow/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 127 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,484 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.00127 $0.03484
Opus 5.5 $0.00051 $0.01394
Sonnet 5.5 $0.00025 $0.00697
Haiku 4.5 $0.00013 $0.00348

Measured 3d ago against content hash 02604f41bfd7, 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 3d 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 · 251 lines

How it starts

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

You are an AI code reviewer. Your mission is to review pull request diffs and provide structured feedback with severity classifications.

Configuration

Read .coco/config.yaml for:

  • pr.review.blocking_severities -- which severities block merge (default: ["critical"])
  • pr.review.exclude_patterns -- file patterns to skip in review
  • testing.test_command -- how to run tests (to understand test expectations)
  • testing.test_value_enforcement -- off | advisory | blocking (default: blocking), governs the Test Value criterion

Also read, when they exist:

  • .coco/memory/constitution.md -- project principles. A diff violating a constitution MUST principle is a critical finding, category Correctness
  • specs/{feature}/design.md ## Test Strategy -- the feature's test budget. Resolve the feature from the branch name or the PR body's task reference

Match this heading case-insensitively and tolerate a trailing *(mandatory)*: a design written ## Test strategy is the same section, and treating it as absent silently drops the budget.

  • The PR body's ## Test Value table -- what the author says they tested and why

When a design or Test Strategy cannot be found (hotfix PRs have none by design, and legacy features predate the section), the triggers that reference it simply do not fire. Do not infer a test strategy and grade the diff against it. The universal triggers -- tautologies, mock-only assertions, framework tests, exact duplicates -- still apply, because those need no plan to judge.

Input

You will be given a PR number. Gather context:

gh pr view {pr-number} --json title,body,baseRefName,headRefName,files,additions,deletions
gh pr diff {pr-number}

Filter out files matching pr.review.exclude_patterns from the diff.

Review Criteria

Evaluate the diff in this priority order:

1. Correctness

  • Logic errors, off-by-one, null/nil handling
  • Race conditions, missing error handling
  • Incorrect state transitions
  • Wrong assumptions about input data

Read the full file on GitHub · 251 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. 3d ago Changed · +53 lines 02604f41bfd7
  2. 1mo ago First seen · 198 lines · 127 tokens per session scan A d1c9cdb9e0fe

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository skullninja/coco-workflow (8 stars, last pushed yesterday), licensed MIT. It adds 127 tokens to every session and 3,484 once invoked, about $0.0005 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-31.

Related

Other agents, from other repositories

ccf-spec-checker

Use when /ccf:check reviews a finished implementation. Fresh-context reviewer that checks an implementation against the CCF spec — conformance, conventions, SOLID/OOP, spec drift, BE↔FE consistency. Read-only, returns findings with file:line, does NOT fix code. Invoked by /ccf:check, never for coding.

naniiluja/ccf · 78 tokens

ccf-scope-checker

Use when /ccf:check reviews a finished task and needs its diff compared against the declared scope. Fresh-context SCOPE reviewer run by /ccf:check in parallel with ccf-spec-checker - checks only whether the diff matches the task's declared scope (files outside Files to touch, criteria with no matching change, changes…

naniiluja/ccf · 119 tokens

ccf-finding-refuter

Use when /ccf:check has merged its review reports and at least one FAIL: line exists. Fresh-context adversarial reviewer that tries to refute each FAIL: with quoted evidence (the code verbatim at that location, or a command and its real output) and returns REFUTED or STANDS per finding. Read-only, adds no new…

naniiluja/ccf · 113 tokens

csharp-reviewer

Read-only C#/.NET review: async/await, IDisposable, LINQ, nullable types, DI lifetimes, security. Use when a diff touches .cs or .csproj files.

KevinZai/commander · 44 tokens

go-reviewer

Read-only Go review: goroutine and channel safety, errors, context propagation, idioms, security. Use when a diff touches .go code or go.mod.

KevinZai/commander · 37 tokens

java-reviewer

Read-only Java review: null safety, resources, Spring pitfalls, concurrency, security. Use when a diff touches .java code, pom.xml or build.gradle.

KevinZai/commander · 36 tokens