matcha:review

matcha:review is a command for Claude Code from plumpslabs/matcha. It costs 20 tokens per session (1,453 once invoked), scanned A, original, MIT.

A risk-based code review command that checks whether a change is ready to ship, from simple output checks to expert review and threat modeling. Threat modeling means examining how a change could be abused or attacked.

In plain words
What is it for?
It is for reviewing disposable scripts, low-risk files, product features, APIs, authentication, payments, database changes, and cryptographic code.
Why use it?
It matches the depth of review to the type of change and can block merging when critical problems are found.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents).

Part of the matcha plugin — 1 skill, 7 commands, 6 agents, 3 hooks shipped together

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 commands/plumpslabs/matcha/matcha-review
Clone the repo
git clone --depth 1 https://github.com/plumpslabs/matcha

Made for: Claude Code.

Or install matcha, the plugin that ships this one along with the rest of its 1 skill, 7 commands, 6 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 matcha:review

README.md
[![agentmods](https://agentmods.dev/badge/commands/plumpslabs/matcha/matcha-review.svg)](https://agentmods.dev/commands/plumpslabs/matcha/matcha-review)
Your own site
<a href="https://agentmods.dev/commands/plumpslabs/matcha/matcha-review"><img src="https://agentmods.dev/badge/commands/plumpslabs/matcha/matcha-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,453 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.1 $0.00020 $0.01453
Opus 5 $0.00010 $0.00727
Sonnet 5 $0.00004 $0.00291
Haiku 4.5 $0.00002 $0.00145

Measured 5d ago against content hash ad7830582826, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

matcha:review 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 5d 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/commands/matcha:review.md · 151 lines

How it starts

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

/matcha:review

The gate between code and "done". Nothing ships until this passes.

Risk-Based Routing

Not all code needs the same review. Matcha auto-detects risk tier and routes accordingly:

Tier Risk What Review
L0 Disposable Spikes, scripts, temp Output check only
L1 Low Copy, fixtures, UI text Lint + typecheck
L2 Product Logic Features, API, business logic Full review (9 categories)
L3 High Risk Auth, payments, DB, crypto Expert review + threat model

Auto-Detection

Risk tier is detected via trigger packs — domain-specific signal rules.

Default signals (no pack loaded):

Signal Tier
Files in security-sensitive paths L3 (use trigger pack for specifics)
Keywords: credentials, tokens, secrets L3
Database schema changes L3
New public API endpoints L2
Test files, fixtures, mocks L1
Documentation, comments L1
Files in disposable paths L0
// matcha:explain with justification L0

Diff-size heuristic: tiny diffs (≤10 lines) stay low; large diffs (>100 lines or many files) escalate a tier.

Review Checklists by Tier

L0 — Output Check

  • Does it run without errors?
  • In the right temp directory?
  • Verdict: PASS if runs.

L1 — Lint + Typecheck

  • Lint passes
  • Typecheck passes
  • No obvious issues
  • Verdict: PASS if clean.

L2 — Full Review (9 categories)

Every category must be addressed explicitly — PASS or FINDINGS with file:line evidence. No category may be silently skipped. Run matcha_review_validate on the final verdict (rejects missing tier/scope/evidence/counts).

🔴 Must Fix
  1. Correctness — Logic changed intentionally? Edge cases? Off-by-one? Race conditions? Dead code?
  2. Performance — O(n²+)? N+1 queries? Unbatched I/O? Unbounded operations? Memory leaks?
  3. Security — Trust boundaries? AuthN/AuthZ + IDOR? Output encoding? Secrets in code/logs/responses? Fail-closed?

Read the full file on GitHub · 151 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. 5d ago First seen · 151 lines · 20 tokens per session scan A ad7830582826

Subscribe to this mod's changes

matcha:review is a command published in the GitHub repository plumpslabs/matcha (1 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 1,453 once invoked, about $0.0001 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-31.