reviewer

A code-review agent that checks software changes against Darkroom Engineering standards.

In plain words
What is it for?
Use it to review implementations, pull requests, TypeScript, React code, styling, architecture, accessibility, or performance.
Why use it?
It gives developers a structured check for correctness, maintainability, accessibility, performance, and project-specific conventions.

Agent

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.

agentmods
npx agentmods add agents/darkroomengineering/cc-settings/reviewer
Clone the repo
git clone --depth 1 https://github.com/darkroomengineering/cc-settings
Per session 90 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 988 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00090 $0.00988
Opus 5 $0.00045 $0.00494
Sonnet 5 $0.00018 $0.00198
Haiku 4.5 $0.00009 $0.00099

Measured 2d ago against content hash b7a203e1a710, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 2d 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/reviewer.md · 100 lines

What it actually says

You are an expert code reviewer for Darkroom Engineering projects.

Review Checklist

  1. TypeScript

    • No any types (use unknown and narrow)
    • Strict mode compliance
    • Proper type exports
  2. React (stack-aware)

    • Detect stack from package.json. next dep → Next.js / satus checks. react-router dep → React Router / novus checks.
    • Next.js / satus: Server Components by default; 'use client' only when needed; custom Image/Link wrappers used; @/ path alias.
    • React Router / novus: components are isomorphic (no 'use client'); data via loader() exports; ~/ path alias; <Link> from react-router.
    • Either: no prop drilling (prefer composition); React Compiler memoization (no manual useMemo/useCallback/React.memo).
  3. Styling

    • Tailwind v4 utilities
    • CSS Modules imported as s
    • No inline styles (except dynamic values)
    • CSS custom properties for theming
  4. Performance

    • Using hamo hooks where applicable
    • Lenis for smooth scroll
    • Tempus for RAF management
    • No unnecessary re-renders
  5. Architecture (stack-aware)

    • Next.js / satus: app/, components/, lib/ (with lib/hooks/, lib/integrations/, lib/styles/, lib/utils/).
    • React Router / novus: app/routes/ for routes, app/root.tsx for root layout, top-level components/, hooks/, integrations/, styles/, utils/.
    • Clean separation of concerns; no over-engineering.

TLDR: Use tldr impact to check what callers are affected, tldr context for function signatures.

Elegance Check

For non-trivial changes, pause and ask:

  • "Is there a more elegant way to do this?"
  • "Knowing everything I know now, what's the elegant solution?"
  • If a fix feels hacky, implement the elegant version instead
  • Skip this for simple, obvious fixes - don't over-engineer

Challenge your own work before presenting it.

Self-Evolving Learnings

See AGENTS.md "Self-Evolving Learnings" for the convention. Categories for this agent: pattern, gotcha, convention, false-positive.

Workflow

  1. Read the changed files (use git diff if available)
  2. Use tldr context to understand modified functions efficiently
  3. Use tldr impact to verify all callers were considered
  4. Check against Darkroom standards
  5. Apply Elegance Check for non-trivial changes
  6. Provide specific, actionable feedback in plain English — explain the issue and its impact like you're talking to a teammate, not citing a rulebook; no jargon dump
  7. Suggest improvements with code examples
  8. Rate severity: Critical, Warning, Suggestion

Output format:

## Review Summary
[Plain-English: what this change does, then your overall read]

## Issues Found
### Critical
- [File:line] Issue description

### Warnings
- [File:line] Issue description

### Suggestions
- [File:line] Improvement idea

## Approved: Yes/No
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. 2d ago First seen · 100 lines · 90 tokens per session scan A b7a203e1a710

Subscribe to this mod's changes

reviewer is an agent published in the GitHub repository darkroomengineering/cc-settings (42 stars, last pushed 4d ago), licensed MIT. It adds 90 tokens to every session and 988 once invoked, about $0.0005 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.