sous-chef

A command-line kitchen assistant for monitoring whether sensitive code changes followed the project’s planning process. It can detect changes made without a plan, compare a plan with implementation, and analyze incidents afterward.

In plain words
What is it for?
Use it to monitor recent changes, compare a planning artifact with a Git change set, perform a post-mortem after incidents, or suggest files that need review.
Why use it?
It helps find differences between what was planned and what was actually changed. It also highlights sensitive changes that may have bypassed the required review process.

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

Made for: Claude Code.

Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 690 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.00017 $0.00690
Opus 5 $0.00009 $0.00345
Sonnet 5 $0.00003 $0.00138
Haiku 4.5 $0.00002 $0.00069

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

Security

Grade A, and why

sous-chef 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.

.claude/commands/sous-chef.md · 120 lines

How it starts

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

/sous-chef Command

Kitchen assistant that monitors cooking discipline and detects issues.

Syntax

/sous-chef                    Run change monitor (default)
/sous-chef monitor            Detect uncooked sensitive changes
/sous-chef drift <artifact>   Compare plan vs implementation
/sous-chef postmortem <artifact>   Analyze pre-mortem accuracy
/sous-chef suggest            Suggest files needing governance

Options

Option Description
--since <ref> Git ref to start from (default: HEAD~10)
--range <range> Git range for drift detection
--incidents <list> Known incidents for postmortem

Execution

Monitor (default)

Run change monitor to find uncooked sensitive changes:

./scripts/sous-chef monitor

After running, analyze the output:

  • If uncooked changes found, ask user: "Found X commits with uncooked changes. Want me to /cook them?"
  • If clean, report: "Kitchen is clean - no uncooked sensitive changes."

Drift Detection

When user specifies an artifact:

./scripts/sous-chef drift "cook/<artifact>.cook.md"

After running, analyze:

  • If drift detected, list scope creep and missing files
  • Offer: "Want me to update the artifact with actual changes?"

Postmortem

Analyze pre-mortem predictions:

./scripts/sous-chef postmortem "cook/<artifact>.cook.md"

After running, summarize:

  • Which predictions came true
  • Which were false positives
  • Suggestions for future risk assessment

Suggest

Find files that need more governance:

./scripts/sous-chef suggest

After running, offer to create cook artifacts for suggested files.

Interactive Flow

After each command, offer relevant follow-up actions:

Monitor found issues:

Found 2 commits with uncooked sensitive changes:
  - abc1234: src/auth/login.ts
  - def5678: api/payments.ts

Options:
1. /cook the auth changes
2. /cook the payment changes
3. Ignore (add to exceptions)

Read the full file on GitHub · 120 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. 2d ago First seen · 120 lines · 17 tokens per session scan A 2e71b6ddfa6e

Subscribe to this mod's changes

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