Sponsor Suno AI Music arrow_forward
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.

Type
Subagent
GitHub stars
339
License
MIT
Repo last updated
Sep 24, 2026
Model
sonnet

What Ai Hygiene Auditor is

Ai Hygiene Auditor is a subagent published in the athola/claude-night-market repository on GitHub, which has about 339 stars. The repository describes itself as: “23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context optimization, research, and multi-LLM delegation. 186 skills, 128 commands, 54 agents.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Ai Hygiene Auditor and get back a compact result.

It is set up to use these tools: Bash, Grep, Glob, Read. Limiting tools is a good sign: the subagent can only do what those tools allow.

How to install Ai Hygiene Auditor

Claude Code

  1. Download ai-hygiene-auditor.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/conserve/agents/ai-hygiene-auditor.md, shared under the repository's MIT license. Read the full file on GitHub.

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):

Corrections (reduce weighting in detection):

  • Verbose/robotic variable names: NOT a top tell. Only 1 in 6 tagged comments were actually mocking AI naming.
  • Reinventing stdlib: mostly misattributed after re-read.
  • Leftover print/console.log debugging: rejected as keyword artifact; zero confirmed quotes. Remove if present in detection logic.

Detection priority: tutorial-shape (#1), hallucinated APIs (#2), and style-mismatch (#6) are the production-biting tells. Weight them more than comment-density or naming.

Detection Categories

Category 0: Tutorial-Shape Detection

Reddit tell #1 (18.6% citation rate, 90% precision). The single strongest code tell is that AI-generated code looks like a textbook example: one-page scope, placeholder data, no real backend, the most common design pattern for the task regardless of fit.

def detect_tutorial_shape(code_path):
    """Detect boilerplate / tutorial-shaped code (Reddit #1 tell)."""
    findings = []

    # Placeholder data signatures
    placeholder_patterns = [
        r"\bexample\.com\b",
        r"\bfoo@bar\b",
        r"\bhello[,\s]+world\b",
        r"\b(?:dummy|fake|placeholder|sample|test)\s+data\b",
        r'user(?:name)?["\s]*[:=]["\s]*["\']?admin["\']?',
        r'"id"\s*:\s*["\']?(?:1|123|uuid-1234)',
        r"\bLorem ipsum\b",
    ]
    for pat in placeholder_patterns:
        hits = bash(f'rg -rl "{pat}" --type py --type js --type ts . 2>/dev/null')
        if hits:
            findings.append(
…

Category 6b: Style Mismatch Detection

Reddit tell #6 (3.5% citation rate). A tell that scales with project size: AI ignores existing conventions and invents new ones mid-file. "A PR that should be 50 LoC because it follows existing patterns, versus a 2000 LoC PR that ignores codebase conventions."

def detect_style_mismatch(changed_files, baseline_sample=None):
    """Detect convention breaks vs. the rest of the codebase."""
    findings = []

    # --- Docstring style mismatch ---
    # Detect if changed files use a different docstring format
    # than the rest of the codebase (numpy vs google vs reST)
    repo_docstyle = bash(
        r'rg -l "Parameters\s*\n\s*----------" --type py . | '
        r"head -5"
    )
    numpy_style = bool(repo_docstyle.strip())

    for f in changed_files or []:
        if not f.endswith(".py"):
            continue
        file_has_google = bash(f'rg -l "Args:\\n" {f}').strip()
        if numpy_style and file_has_google:
…

Category 1: Git History Analysis

def analyze_git_patterns(repo_path):
    """Detect vibe coding signatures in git history."""
    findings = []

    # Massive single commits (vibe coding signature)
    massive_commits = bash("""
        git log --oneline --shortstat |
        grep -E '[0-9]{3,} insertion' |
        head -20
    """)
    if massive_commits:
        findings.append(
            {
                "type": "massive_commits",
                "severity": "MEDIUM",
                "evidence": massive_commits,
                "recommendation": "Break into smaller, reviewable commits",
            }
…

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Ai Hygiene Auditor?

Ai Hygiene Auditor is a subagent for Claude Code and Claude Cowork from the athola/claude-night-market repository on GitHub. Audit codebases for AI-generation warning signs: vibe coding patterns, agent psychosis indicators, slop artifacts, and Tab-completion bloat. Specialized complement to bloat-auditor.

How do I install Ai Hygiene Auditor in Claude Code?

Download ai-hygiene-auditor.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Ai Hygiene Auditor in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Ai Hygiene Auditor safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.