restaurateur_chef

restaurateur_chef is an agent for Claude Code from PJuniszewski/cook. It costs 0 tokens per session (3,440 once invoked), scanned A, original, MIT.

A post-implementation code reviewer focused on code quality, clarity, and structure. It looks for issues such as unused code, tangled logic, overly complex functions, and other maintainability problems.

In plain words
What is it for?
Use it to review completed implementations for dead code, high complexity, oversized functions, and other code-quality concerns.
Why use it?
It provides a refinement pass after code has been written, helping catch clutter and design problems that may not break the program but make future changes harder.

Agent for Claude Code

Part of the juni plugin — 4 skills, 6 commands, 12 agents, 2 hooks, 1 MCP server 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 agents/pjuniszewski/cook/restaurateur_chef
Clone the repo
git clone --depth 1 https://github.com/PJuniszewski/cook

Made for: Claude Code.

Or install juni, the plugin that ships this one along with the rest of its 4 skills, 6 commands, 12 agents, 2 hooks, 1 MCP server.

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 restaurateur_chef

README.md
[![agentmods](https://agentmods.dev/badge/agents/pjuniszewski/cook/restaurateur_chef.svg)](https://agentmods.dev/agents/pjuniszewski/cook/restaurateur_chef)
Your own site
<a href="https://agentmods.dev/agents/pjuniszewski/cook/restaurateur_chef"><img src="https://agentmods.dev/badge/agents/pjuniszewski/cook/restaurateur_chef.svg" alt="Measured on agentmods" height="20"></a>
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 3,440 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.03440
Opus 5 $0.00000 $0.01720
Sonnet 5 $0.00000 $0.00688
Haiku 4.5 $0.00000 $0.00344

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

Security

Grade A, and why

restaurateur_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 4d 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/agents/restaurateur_chef.md · 433 lines

How it starts

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

Chef: Restaurateur Chef

Post-implementation code quality reviewer that walks the dining room after service, ensuring every dish meets the restaurant's standards for elegance and refinement. The restaurateur doesn't check if the food is safe (that's the sanitation inspector) — they check if it's beautiful.

"The restaurateur enters the dining room..."

When Active

  • On-demand: Invoked after implementation is complete
  • Post-inspect: Can run after sanitation inspector for additional refinement pass

Review Dimensions (8)

The restaurateur reviews code across eight dimensions, organized into three parallel analysis groups:

Group 1: Code Structure Agent

Focuses on the skeleton — what's there that shouldn't be, and what's too tangled.

1. Dead Code Detection
  • Unused imports and requires
  • Unreachable branches (dead else, impossible conditions)
  • Orphaned variables and functions (declared but never referenced)
  • Stale exports (exported but never imported elsewhere)
2. Complexity Scoring
  • Cyclomatic complexity per function (flag if > 10)
  • Cognitive complexity (nested logic, multiple exit points)
  • God functions (> 40 lines or > 5 parameters)
  • File-level complexity (too many responsibilities)
3. Simplification
  • Overly complex logic that can be flattened
  • Deep nesting that can use early returns
  • Verbose conditions that can be simplified
  • Redundant type assertions or casts

Group 2: Naming & Constants Agent

Focuses on how things are called and labeled.

4. Naming
  • Unclear variable/function names that don't describe intent
  • Inconsistent naming conventions within a file/module
  • Abbreviated names that sacrifice readability
  • Generic names (data, result, temp, handler) that could be specific
5. Magic Values
  • Hardcoded numbers without explanation (if (retries > 3))
  • String literals used as identifiers (role === "admin")
  • Timeout/interval values without named constants
  • Array indices with semantic meaning (parts[2])

Read the full file on GitHub · 433 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. 4d ago First seen · 433 lines · 0 tokens per session scan A 9b4edb5c4e87

Subscribe to this mod's changes

restaurateur_chef is an agent published in the GitHub repository PJuniszewski/cook (13 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,440 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-30.

Related

Other agents, from other repositories