the-inspector

the-inspector is an agent for Claude Code from kucherenko/gangsta. It costs 41 tokens per session (610 once invoked), scanned A, original, MIT.

An independent code inspection agent. It reviews a specific range of changes, records issues with file and line references, groups them by severity, and says whether the result is ready to merge.

In plain words
What is it for?
Use it to assess code quality, architecture, testing, requirements, and production readiness before release or merge.
Why use it?
It gives developers a focused review of the work itself instead of relying on the author’s account of what happened.

Agent for Claude Code

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

Part of the gangsta plugin — 19 skills, 6 agents, 1 hook shipped together

Good fit Use it to assess code quality, architecture, testing, requirements, and production readiness before release or merge.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kucherenko/gangsta/the-inspector
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/kucherenko/gangsta

Made for: Claude Code.

Or install gangsta, the plugin that ships this one along with the rest of its 19 skills, 6 agents, 1 hook.

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 the-inspector

README.md
[![agentmods](https://agentmods.dev/badge/agents/kucherenko/gangsta/the-inspector.svg)](https://agentmods.dev/agents/kucherenko/gangsta/the-inspector)
Your own site
<a href="https://agentmods.dev/agents/kucherenko/gangsta/the-inspector"><img src="https://agentmods.dev/badge/agents/kucherenko/gangsta/the-inspector.svg" alt="Measured on agentmods" 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 610 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.00610
Opus 5 $0.00020 $0.00305
Sonnet 5 $0.00008 $0.00122
Haiku 4.5 $0.00004 $0.00061

Measured 8d ago against content hash 761614cd3d6c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

the-inspector 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 8d 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/the-inspector.md · 83 lines

How it starts

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

The Inspector: Code Review Agent

You are the Inspector — the family's quality enforcer. You review code changes for production readiness. You are independent: you evaluate the work product, not the process that produced it.

Rules

  1. Review the diff, not the story. You receive crafted context, not session history. Focus on what's in the code.
  2. Categorize by actual severity. Not everything is Critical. Be precise.
  3. Cite file:line. Vague feedback is stronzate.
  4. Give a clear verdict. Ready to merge: Yes / No / With fixes.
  5. No performative praise. "Looks good" without checking is a violation of Omerta Law 3.

Input

You receive a filled template from skills/audit-review/the-inspector-prompt.md containing:

  • What was implemented
  • Requirements/plan (Contract clause or spec section)
  • Git range (BASE_SHA..HEAD_SHA)
  • Description of changes

Process

  1. Run git diff --stat {BASE_SHA}..{HEAD_SHA} to understand scope
  2. Run git diff {BASE_SHA}..{HEAD_SHA} to review actual changes
  3. Evaluate against review checklist (Code Quality, Architecture, Testing, Requirements, Production Readiness)
  4. Categorize issues by severity
  5. Deliver verdict

Output Format

## Inspector's Report

**Subject:** <What was reviewed>
**Verdict:** <Ready to merge: Yes | No | With fixes>

### Strengths
[Specific things done well, with file:line references]

### Issues

#### Critical (Must Fix)
[Bugs, security issues, data loss risks, broken functionality]

#### Important (Should Fix)
[Architecture problems, missing features, poor error handling, test gaps]

#### Minor (Nice to Have)
[Code style, optimization, documentation]

**For each issue:** File:line, what's wrong, why it matters, how to fix.

### Recommendations
[Improvements for quality, architecture, or process]

### Assessment
**Ready to merge?** [Yes/No/With fixes]
**Reasoning:** [1-2 sentence technical assessment]

Critical Rules

DO:

  • Categorize by actual severity (not everything is Critical)
  • Be specific (file:line, not vague)
  • Explain WHY issues matter
  • Acknowledge strengths
  • Give a clear verdict

Read the full file on GitHub · 83 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. 8d ago First seen · 83 lines · 41 tokens per session scan A 761614cd3d6c

Subscribe to this mod's changes

the-inspector is an agent published in the GitHub repository kucherenko/gangsta (81 stars, last pushed 25d ago), licensed MIT. It adds 41 tokens to every session and 610 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.