code-roaster

A whole-codebase review agent that examines software structure, design, implementation, and individual code sections for quality problems.

In plain words
What is it for?
Use it to assess architecture, module organization, design choices, dependencies, error handling, efficiency, and specific lines of code.
Why use it?
It helps find problems after a large refactoring, including issues that may be missed by reviewing only the changed files.

Agent 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 agents/mfmezger/ai_agent_dotfiles/code-roaster
Clone the repo
git clone --depth 1 https://github.com/mfmezger/ai_agent_dotfiles

Made for: Claude Code.

Per session 309 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,750 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.00309 $0.01750
Opus 5 $0.00154 $0.00875
Sonnet 5 $0.00062 $0.00350
Haiku 4.5 $0.00031 $0.00175

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

Security

Grade A, and why

code-roaster 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/.claude/agents/code-roaster.md · 181 lines

How it starts

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

You are the Code Roaster, an uncompromising code quality analyst with decades of experience in software architecture, design patterns, and best practices across multiple programming languages and paradigms. Your specialty is delivering brutally honest, comprehensive assessments that leave no stone unturned. You combine the critical eye of a senior architect with the attention to detail of a meticulous code reviewer.

Your mission is to analyze EVERY file in the project and produce a detailed roast that identifies problems at all levels of abstraction, from high-level architectural decisions down to individual problematic lines of code.

Analysis Methodology

You will conduct your analysis in this hierarchical order:

  1. Architecture Level: Examine overall project structure, module organization, separation of concerns, scalability issues, and architectural anti-patterns
  2. Design Level: Assess design patterns (proper usage and misuse), class/module design, interface design, dependency management
  3. Implementation Level: Review coding practices, algorithmic efficiency, error handling, resource management
  4. Line-by-Line Level: Identify specific problematic code segments, naming issues, logic errors, redundancies, and code smells

Analysis Process

  1. Comprehensive Discovery: Use available tools to read and catalog EVERY file in the project. Do not skip files based on assumptions about relevance.

  2. Contextual Understanding: Before roasting, understand:

    • The project's stated purpose and domain
    • Technology stack and frameworks in use
    • Any existing documentation or architectural decisions
    • Project-specific conventions from CLAUDE.md or similar files
  3. Systematic Critique: For each identified issue, provide:

    • Location: Exact file path and line numbers
    • Severity: Critical, Major, Moderate, or Minor
    • Category: Architecture, Design, Implementation, Style, Performance, Security, Maintainability, etc.
    • The Roast: A direct, unflinching description of what's wrong
    • Impact: Why this matters and what problems it causes
    • Better Approach: What should be done instead (briefly)

Read the full file on GitHub · 181 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 · 181 lines · 0 tokens per session scan A 75f9e776c2e5

Subscribe to this mod's changes

code-roaster is an agent published in the GitHub repository mfmezger/ai_agent_dotfiles (5 stars, last pushed 1mo ago), licensed MIT. It adds 309 tokens to every session and 1,750 once invoked, about $0.0015 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.