grill

A pre-pull-request review command that sends a code change or implementation approach to several independent reviewers for criticism.

In plain words
What is it for?
Use it to challenge an existing diff before a pull request, or to test an implementation plan before writing code; it also includes untracked files in the review.
Why use it?
It exposes correctness, security, testing, and design risks before the change reaches reviewers or users.

Command for Claude Code

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/cbmono/ai-setup/grill
Clone the repo
git clone --depth 1 https://github.com/cbmono/ai-setup

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,581 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.00000 $0.02581
Opus 5 $0.00000 $0.01290
Sonnet 5 $0.00000 $0.00516
Haiku 4.5 $0.00000 $0.00258

Measured yesterday against content hash 5f0edc8e5b71, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

.claude/commands/grill.md · 125 lines

How it starts

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

Grill the current changes before they become a PR. Fan out independent reviewers to attack your diff from every angle.

/grill reviews a diff — code you've already written, on its way to a PR. To grill an approach before any code exists, use /plan instead. (Same adversarial fan-out, different target: /plan attacks the reasoning, /grill attacks the change.)

Steps

  1. Read the working tree as one payload: git diff HEAD (staged and unstaged in a single patch — not git diff plus a separate git diff --cached, which splits a file that is staged and further edited into two half-patches no reviewer sees whole), then append the contents of every untracked, non-ignored file (git ls-files --others --exclude-standard) under a heading marking them as new files. An untracked file appears in no git diff output at all, so a whole new module would otherwise be grilled as if it didn't exist. Skip binaries; name anything you skip for size. If the diff is empty and there are no untracked files, say there's nothing to grill and stop.

  2. If that payload is only prose doc/config changes, skip the fan-out — there's nothing to attack. Note it and stop. Embedded code counts as executable — a changed .md carrying a fenced ```js/```ts/```sh block (e.g. a slash-command Workflow script) is in scope, even when every changed file is a .md.

  3. Grill the diff adversarially. Reviewing your own diff self-anchors — you defend the choices you just made. Instead, fan out independent reviewer subagents, each a fresh context with one lens, none of them attached to the code. Synthesis stays with you (the main loop).

    Size the grill to the diff — this is the cost dial; don't throw 8 Opus reviewers at a one-file change. Announce the setup in one line and let the user retune before launching. Invoking /grill is your opt-in to run the Workflow, so don't ask whether — only let them change the model or lens set:

    • Small (a focused change — one file or one concern) → the core 4 lenses (★) on Sonnet.
    • Large (cross-cutting, multiple files/subsystems, or security-sensitive) → all 8 lenses on Opus.
    • e.g. "Small diff → core 4 lenses on Sonnet. Say 'opus' or 'all 8' to widen, otherwise I'll launch."
    • Frontend diffs (changed .tsx/.jsx/.vue/.svelte/.html or component/page files) → invoke the test-locators skill first (it carries the authoritative convention), then add the locators lens below to whichever set you chose. Skip it for backend-only diffs.

    The lenses (core 4 marked ★) — each reviewer gets exactly one:

    • correctness — What input breaks this hunk? What edge case is assumed away (empty, null, boundary, large)?
    • failure_modes — What happens on network error, disk full, parse error, null? Any swallowed error or unhandled rejection?
    • tests — What does each test actually assert? Could it pass without the code under test doing anything? What path is untested?
    • architecture — Layering, naming, dependency choices, abstraction shape. Does this fight the grain of the surrounding code?
    • concurrency — What if two callers hit this simultaneously? What if the request is retried? Any shared mutable state?
    • observability — How would we notice if this silently misbehaved in prod? Are the new failure paths logged/measured?
    • scope — What was added that the task didn't require? A premature abstraction, an unrelated refactor bundled in?
    • security — Untrusted input reaching a sink (SQL, shell, fs, HTML)? A missing authz check? A secret logged or committed?
    • locators (frontend diffs only) — Apply the test-locators skill: every interactive or asserted element (button, link, input, select, checkbox, form, modal, list item) needs a stable data-testid/data-test; flag missing ones and brittle names (position/index/CSS-class/color, e.g. country-card-0). Names should be <feature>-<element>-<purpose>, kebab-case, by business meaning.

Read the full file on GitHub · 125 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 · 125 lines · 0 tokens per session scan A 5f0edc8e5b71

Subscribe to this mod's changes

grill is a command published in the GitHub repository cbmono/ai-setup (2 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,581 tokens. 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.