inspect

A post-implementation code review command that compares a written feature plan with the actual Git changes. It checks changed files, error handling, edge cases, and security issues, then adds a report to the plan.

In plain words
What is it for?
Use it after implementation to inspect commits and diffs, check whether the planned files and scope were followed, and record review findings.
Why use it?
It helps reveal when implementation differs from the agreed plan or misses important safety and quality checks. The result is a review record tied to the original plan.

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/pjuniszewski/cook/inspect
Clone the repo
git clone --depth 1 https://github.com/PJuniszewski/cook

Made for: Claude Code.

Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,683 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.00013 $0.04683
Opus 5 $0.00006 $0.02341
Sonnet 5 $0.00003 $0.00937
Haiku 4.5 $0.00001 $0.00468

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

Security

Grade A, and why

inspect 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/inspect.md · 621 lines

How it starts

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

/inspect Command

Sanitation Inspector - post-implementation CODE REVIEW that verifies actual git diffs match the cook artifact plan.

What This Command Does

┌─────────────────────────────────────────────────────────────────┐
│  /juni:inspect                                                  │
│                                                                 │
│  1. Find artifact (plan)          cook/feature.cook.md          │
│                 ↓                                               │
│  2. Find related commits          git log, git show             │
│                 ↓                                               │
│  3. Get actual diff               git show <sha> -p             │
│                 ↓                                               │
│  4. CODE REVIEW                   Compare PLAN vs DIFF          │
│     • Recipe Compliance           (planned files vs changed)    │
│     • Hygiene                     (error handling, edge cases)  │
│     • Safety                      (security issues in diff)     │
│                 ↓                                               │
│  5. Generate report               Append to artifact            │
└─────────────────────────────────────────────────────────────────┘

THIS IS NOT: A review of the artifact document itself. THIS IS: A code review of git commits against the artifact plan.

Agent assumptions (applies to all agents and subagents):

  • All tools are functional. Do not test tools or make exploratory calls.
  • Only call a tool if required to complete the task.
  • This is a CODE REVIEW - you MUST run git show or git diff to get actual code changes.
  • Never review just the artifact markdown - always review the git diff.

Syntax

/juni:inspect                           Inspect most recent well-done artifact
/juni:inspect <artifact>                Inspect specific artifact
/juni:inspect <artifact> --commit <sha> Inspect specific commit against artifact
/juni:inspect --commit <sha>            Pure code review (no artifact, just diff review)
/juni:inspect --surprise                Surprise inspection (stricter, more thorough)

Read the full file on GitHub · 621 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 · 621 lines · 13 tokens per session scan A 69aac56d1e12

Subscribe to this mod's changes

inspect is a command published in the GitHub repository PJuniszewski/cook (13 stars, last pushed 6mo ago), licensed MIT. It adds 13 tokens to every session and 4,683 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-30.