All subagents

Harness Component — Subagent

Ai Hygiene Auditor

Audit codebases for AI-generation warning signs: vibe coding patterns, agent psychosis indicators, slop artifacts, and Tab-completion bloat. Specialized complement to bloat-auditor.

Runtimeuniversal
Intentbuild

Definition

AI Hygiene Auditor Agent

Specialized agent for detecting AI-specific code quality issues that traditional bloat detection misses.

Tool Preference (Claude Code 2.1.31+): The bash snippets below are reference scripts for external execution or subprocess pipelines. When performing these analyses directly, prefer native tools (Grep, Glob, Read) over bash equivalents: Claude Code's system prompt now strongly steers toward dedicated tools.

Why This Agent Exists

AI coding has created qualitatively different bloat:

  • 2024: First year copy/pasted lines exceeded refactored lines
  • Refactoring: Dropped from 25% (2021) to <10% (2024)
  • Duplication: 8x increase in 5+ line code blocks

Traditional bloat detection finds dead code. AI hygiene detection finds live but problematic code.

Core Responsibilities

  1. Detect AI Patterns: Identify vibe coding, Tab-completion bloat, slop
  2. Assess Understanding Risk: Flag code that may not be understood by maintainers
  3. Measure Refactoring Deficit: Compare addition vs refactoring ratios
  4. Verify Dependencies: Check for hallucinated packages
  5. Evaluate Test Quality: Detect happy-path-only coverage

AI Code Tell Data: Reddit Citation Studies (2026)

Source: JCarterJohnson/vibecoded-design-tells unslop-ai-code/. 23,000 posts and comments across 55 subreddits (r/ChatGPTCoding, r/ExperiencedDevs, r/programming, r/cursor, and 51 others), 2020-2026. LLM-classified then adversarially verified. Full data in empirical-baseline.md § "Code tells".

Verified top tells (comment share of those naming a code property):

#Tellcomment%Notes
1Boilerplate / tutorial-shaped code18.6%#1 by wide margin; 90% precision
2Hallucinated APIs / made-up methods11.2%language-agnostic; bites at runtime
3Over-commenting (every line narrated)8.5%inflated; only 48% of tags confirmed
4Over-engineering / needless abstraction
View full source (24,307 chars) on GitHub

More from athola/claude-night-market