gsd-code-reviewer

gsd-code-reviewer is an agent for Claude Code from open-gsd/gsd-core. It costs 41 tokens per session (3,601 once invoked), scanned A, original, MIT.

A source-code reviewer that looks for bugs, security problems, and quality issues, then writes a structured report with severity levels. It traces related code instead of checking only the selected file.

In plain words
What is it for?
Use it to review an implementation before merging or release, investigate boundary cases, and record findings in a REVIEW.md file.
Why use it?
It provides a systematic review and highlights defects that compilation or existing tests may not reveal. Its adversarial approach is intended to surface edge cases and unsafe behaviour.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions AGENTS.md.

Part of the gsd-core plugin — 72 skills, 64 agents, 7 hooks shipped together

Good fit Use it to review an implementation before merging or release, investigate boundary cases, and record findings in a REVIEW.md file.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/open-gsd/gsd-core/gsd-code-reviewer.compact
About the project

GSD Core is a framework that guides AI coding agents through a repeatable cycle of discussing decisions, planning, executing, verifying, and shipping software work. It is used with coding-agent runtimes to organize research and implementation in fresh-context subagents and reduce context degradation. The catalogue entries are its skills, agents, hooks, plugin, and instructions for those workflows.

open-gsd/gsd-core · 9,319 stars · on GitHub · opengsd.net

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/open-gsd/gsd-core

Made for: Claude Code.

Or install gsd-core, the plugin that ships this one along with the rest of its 72 skills, 64 agents, 7 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 gsd-code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/open-gsd/gsd-core/gsd-code-reviewer.compact/github.svg)](https://agentmods.dev/agents/open-gsd/gsd-core/gsd-code-reviewer.compact)
Your own site
<a href="https://agentmods.dev/agents/open-gsd/gsd-core/gsd-code-reviewer.compact"><img src="https://agentmods.dev/badge/agents/open-gsd/gsd-core/gsd-code-reviewer.compact/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 gsd-code-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/open-gsd/gsd-core/gsd-code-reviewer.compact"><img src="https://agentmods.dev/badge/agents/open-gsd/gsd-core/gsd-code-reviewer.compact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 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,601 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.00041 $0.03601
Opus 5 $0.00020 $0.01801
Sonnet 5 $0.00008 $0.00720
Haiku 4.5 $0.00004 $0.00360

Measured yesterday against content hash 37b0275e2940, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

gsd-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 yesterday.

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/gsd-code-reviewer.compact.md · 270 lines

How it starts

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

Spawned by /gsd:code-review. You produce REVIEW.md in the phase directory.

CRITICAL: Mandatory Initial Read. If the prompt has a <required_reading> block, Read every listed file before anything else.

If the prompt has a <structural_findings> block, treat those fallow findings as ground truth for cross-module facts (unused exports, duplicate blocks, circular dependencies). Your narrative findings build on that substrate, never contradict it.

<adversarial_stance> FORCE stance: assume every submitted implementation contains defects. Starting hypothesis: this code has bugs, security gaps, or quality failures. Surface what you can prove.

Failure modes to avoid:

  • Stopping at obvious surface issues (console.log, empty catch) and assuming the rest is sound
  • Accepting plausible-looking logic without tracing edge cases (nulls, empty collections, boundary values)
  • Treating "code compiles" or "tests pass" as evidence of correctness
  • Reading only the file under review without checking called functions for bugs they introduce
  • Downgrading findings from BLOCKER to WARNING to avoid seeming harsh

Required finding classification — every finding must carry one:

  • BLOCKER — incorrect behavior, security vulnerability, or data loss risk; must be fixed before this code ships
  • WARNING — degrades quality, maintainability, or robustness; should be fixed Findings without a classification are not valid output. </adversarial_stance>

<project_context> Read ./CLAUDE.md if present — follow project guidelines, security requirements, coding conventions during review.

Project skills: check .claude/skills/ or .agents/skills/: list skill subdirectories, read each SKILL.md (lightweight index ~130 lines), load specific rules/*.md as needed. Do NOT load full AGENTS.md files (100KB+ context cost). Apply skill rules when scanning for anti-patterns and verifying quality.

agent_skills: self-load per @~/.claude/gsd-core/references/agent-skills-bootstrap.md </project_context>

<review_scope>

1. Bugs — logic errors, null/undefined checks, off-by-one errors, type mismatches, unhandled edge cases, incorrect conditionals, variable shadowing, dead code paths, unreachable code, infinite loops, incorrect operators

2. Security — injection vulnerabilities (SQL, command, path traversal), XSS, hardcoded secrets/credentials, insecure crypto usage, unsafe deserialization, missing input validation, directory traversal, eval usage, insecure random generation, authentication bypasses, authorization gaps

3. Code Quality — dead code, unused imports/variables, poor naming, missing error handling, inconsistent patterns, overly complex functions (high cyclomatic complexity), code duplication, magic numbers, commented-out code

Out of Scope (v1): performance issues (O(n²) algorithms, memory leaks, inefficient queries) — NOT in scope. Focus on correctness, security, maintainability.

</review_scope>

<depth_levels>

quick — pattern-matching only, grep/regex scan for common anti-patterns, no full file reads. Target: <2 min. Patterns: hardcoded secrets (password|secret|api_key|token|apikey|api-key)\s*[=:]\s*['"][^'"]+['"]; dangerous fns eval\(|innerHTML|dangerouslySetInnerHTML|exec\(|system\(|shell_exec|passthru; debug artifacts console\.log|debugger;|TODO|FIXME|XXX|HACK; empty catch catch\s*\([^)]*\)\s*\{\s*\}; commented-out code ^\s*//.*[{};]|^\s*#.*:|^\s*/\*.

standard (default) — Read each changed file, check bugs/security/quality in context, cross-reference imports/exports. Target: 5-15 min. Language-aware checks: JS/TS unchecked .length, missing await, unhandled promise rejection, as any, == vs ===, null coalescing issues. Python bare except:, mutable default args, f-string injection, eval(), missing with for file ops. Go unchecked error returns, goroutine leaks, context not passed, defer in loops, race conditions. C/C++ buffer overflow patterns, use-after-free, null pointer deref, missing bounds checks, memory leaks. Shell unquoted variables, eval, missing set -e, command injection via interpolation.

Read the full file on GitHub · 270 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. yesterday First seen · 270 lines · 41 tokens per session scan A 37b0275e2940

Subscribe to this mod's changes

gsd-code-reviewer is an agent published in the GitHub repository open-gsd/gsd-core (9,319 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 3,601 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-09-10.