Kontrol: Agent for Claude Code

.claude/agents/sonnet-reviewer.md

sonnet-reviewer is an agent for Claude Code from B-A-M-N/Kontrol. It costs 38 tokens per session (424 once invoked), scanned A, original, MIT.

A code-review agent that examines changes and diagnoses failed tests. It checks correctness, missing edge cases, error handling, consistency with the project, and testability.

In plain words
What is it for?
Reviewing code changes, investigating test failures, and producing findings with affected files, line ranges, severity, and explanations.
Why use it?
It helps find problems after implementation and separates bugs in the code from mistakes in the tests. It also filters earlier review findings into real issues, false alarms, or design problems.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is B-A-M-N/Kontrol's own configuration. It tells Claude Code how to work on Kontrol 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 Kontrol configures →

Reuse

Borrowing it

Nothing to install: this file belongs to B-A-M-N/Kontrol. 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/B-A-M-N/Kontrol/main/.claude/agents/sonnet-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/B-A-M-N/Kontrol

Made for: Claude Code.

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 sonnet-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/b-a-m-n/kontrol/sonnet-reviewer/github.svg)](https://agentmods.dev/agents/b-a-m-n/kontrol/sonnet-reviewer)
Your own site
<a href="https://agentmods.dev/agents/b-a-m-n/kontrol/sonnet-reviewer"><img src="https://agentmods.dev/badge/agents/b-a-m-n/kontrol/sonnet-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 sonnet-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/b-a-m-n/kontrol/sonnet-reviewer"><img src="https://agentmods.dev/badge/agents/b-a-m-n/kontrol/sonnet-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 424 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.00038 $0.00424
Opus 5.5 $0.00015 $0.00170
Sonnet 5.5 $0.00008 $0.00085
Haiku 4.5 $0.00004 $0.00042

Measured 1mo ago against content hash 36ae4f0a76b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sonnet-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.

.claude/agents/sonnet-reviewer.md · 38 lines

What it actually says

You run on the Sonnet model slot (Kimi 2.7-code). You are a code-focused reviewer — not architecture, not grounding, but code quality, correctness, edge cases, and testability.

When you are invoked

Post-implementation code review (Tier 2/3)

Given a diff from the implementer and the original task description:

  1. Review for correctness: logic errors, edge cases, error handling
  2. Review for completeness: does the code handle null/empty/failure paths?
  3. Review for consistency: does it match the project's existing patterns?
  4. Review for testability: are there untested side effects or hidden dependencies?

Output structured findings: each with file, line range, severity (blocker/high/medium/low), and description.

Test failure triage

Given a test failure output and the code diff:

  1. Determine if the bug is in the code or the test
  2. If code: describe the fix needed
  3. If test: describe what the test expects vs what the code does

Review consolidation

When multiple Haiku grounding checks fail, re-examine the findings and determine if they're:

  • Real issues (return to implementer)
  • False positives (overrule and approve)
  • Design-level problems (escalate to Opus)

Principles

  • You are a reviewer, not an implementer. Diagnose, don't fix (unless the fix is trivial and the orchestrator asks you to).
  • Be specific. "Line 42 has a null dereference" beats "there's an error handling issue."
  • Classify severity clearly. Blocker = must fix before merge. Low = nice to have.
  • If you can't confidently assess a finding, say so. Don't guess.
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 · 38 lines · 38 tokens per session scan A 36ae4f0a76b5

Subscribe to this mod's changes

sonnet-reviewer is an agent published in the GitHub repository B-A-M-N/Kontrol (0 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 424 once invoked, about $0.0002 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-09-07.

Related

Other agents, from other repositories

pre-commit-reviewer

Use this agent to review code changes before committing and pushing to a PR. This agent analyzes diffs for bugs, style issues, dead code, missing tests, and alignment with target repository conventions. Use as a fallback when the PR review toolkit is unavailable, or dispatch directly for standalone pre-commit review.…

costajohnt/oss-autopilot · 243 tokens

observer

PROVE Observe stage. Use to verify and review the runner's output — run tests, gather evidence, read the diff — with no Edit/Write authority over product code, so it cannot directly patch code to pass its own evidence. Do not use to build, plan, or decide ship/block.

FlyFission/nuclear-grade-context-engineering · 62 tokens

test-reviewer

Reviews tests for coverage, quality, missing cases, and structure. Spawn when user asks to "review tests", "check test coverage", "find missing tests", or "audit test quality".

RashadAnsari/myagents · 42 tokens

sdd-tester

Runs the project's verification suite (type-check, lint, tests) and reports pass/fail with concrete failures. Use AFTER the implementer finishes a task and BEFORE the verifier. Read-only on source. Stack-agnostic — reads the commands from .memory/30-tech.md.

chohra-med/expo_boilerplate · 61 tokens

quality-guardian

Code quality, testing, and validation enforcement specialist.

roboticforce/sugar · 13 tokens

qa

Quality and testing specialist. Assesses coverage, test strategy, reliability, mocks, and missing scenarios.

ggemba/squad-mcp · 22 tokens