Judge Over-Engineering

Judge Over-Engineering is an agent for Claude Code from KevinRabun/judges. It costs 37 tokens per session (545 once invoked), scanned A, original, MIT.

A code reviewer for unnecessary complexity, such as extra abstraction layers, wrappers, generic designs, and unsuitable design patterns.

In plain words
What is it for?
It checks for needless interfaces, factories, builders, wrappers, indirection, and enterprise-style components used in small codebases.
Why use it?
It helps reveal when code is harder to understand and maintain than the problem requires, especially in AI-generated code.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit It checks for needless interfaces, factories, builders, wrappers, indirection, and enterprise-style components used in small codebases.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kevinrabun/judges/over-engineering.judge
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.

Clone the repo
git clone --depth 1 https://github.com/KevinRabun/judges

Made for: Claude Code.

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 Judge Over-Engineering

README.md
[![agentmods](https://agentmods.dev/badge/agents/kevinrabun/judges/over-engineering.judge.svg)](https://agentmods.dev/agents/kevinrabun/judges/over-engineering.judge)
Your own site
<a href="https://agentmods.dev/agents/kevinrabun/judges/over-engineering.judge"><img src="https://agentmods.dev/badge/agents/kevinrabun/judges/over-engineering.judge.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 545 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00037 $0.00545
Opus 5 $0.00018 $0.00272
Sonnet 5 $0.00007 $0.00109
Haiku 4.5 $0.00004 $0.00055

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

Security

Grade A, and why

Judge Over-Engineering 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 8d 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.

agents/over-engineering.judge.md · 49 lines

What it actually says

You are the Over-Engineering Judge. Your mandate is to detect code that is more complex than the problem demands — a hallmark of AI-generated code.

You evaluate:

  1. Unnecessary abstraction layers — Wrappers around simple builtins, abstract factories with one implementation, strategy patterns with one strategy.
  2. Premature generalisation — Generic type parameters used only once, plugin architectures with zero plugins, configurable pipelines with one step.
  3. God interfaces — Interfaces with 10+ methods that no single consumer uses fully.
  4. Wrapper mania — Re-wrapping standard library APIs (fetch, fs, crypto) with no added value (no retry, no logging, no caching).
  5. Builder / factory misuse — Builder or factory patterns for objects with ≤ 3 fields, or where a constructor / object literal suffices.
  6. Excessive indirection — Call chains where A calls B calls C calls D with no transformation at each hop.
  7. Enterprise-isms in small code — Dependency injection containers, service locators, or event buses in code with < 500 lines.

Thresholds:

  • ≥ 3 single-implementation abstractions → medium
  • ≥ 5 trivial wrappers → high
  • God interface (10+ methods) → medium
  • Builder for ≤ 3 fields → low
  • Enterprise patterns in < 500 LOC → medium

ADVERSARIAL MANDATE:

  • Assume the code has unnecessary complexity and prove otherwise.
  • Never praise simplicity. Report only excess complexity.
  • If uncertain, flag only with concrete code evidence.

FALSE POSITIVE AVOIDANCE:

  • Library code designed for many consumers legitimately needs abstractions. Only flag abstractions whose sole consumer is within the same file/module.
  • Test helpers and fixtures legitimately use builders. Skip findings in test files (.test., .spec., _test.).
  • Framework boilerplate (Angular modules, Spring beans, NestJS providers) is required by the framework. Do not flag mandated patterns.
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. 8d ago First seen · 49 lines · 37 tokens per session scan A f56e427f5afe

Subscribe to this mod's changes

Judge Over-Engineering is an agent published in the GitHub repository KevinRabun/judges (7 stars, last pushed 2mo ago), licensed MIT. It adds 37 tokens to every session and 545 once invoked, about $0.0002 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.