Software factory quality decay patterns

AI Engineer: twelve practices to prevent quality decay in agent-driven software factories AI Engineer
TL;DW
  • Forward pressure (auto-routing features/incidents to agents) + back pressure (agentic review/testing) balance enables autonomous code quality improvements without human involvement in every step.
  • Slop Code Bench benchmark shows models at 15-16% on evolving codebases over time—they excel at one-off problems but struggle maintaining code quality across incremental feature development.
  • Models increasingly write legacy patterns: Python 2 style strings, returning tuples instead of exceptions, higher cyclomatic complexity—treat agent output with skepticism about code quality degradation.
  • Plan before building: balance between detailed specs (reduces rework risk) and minimal prompts (faster iteration); align on architecture and database schemas before execution to avoid costly rewrites.
  • Anti-Slop Manifesto principles: humans own intent, taste, and consequences; review exists to prevent asymmetric cost where producing output approaches zero but reviewing remains constant.
  • Slop compounds—more low-quality code in repos means agents copy and amplify it; lossy review cycles (Slack back-and-forth between humans and agents) introduce errors and waste tokens.
  • Use feature flags and stat sig testing to let agents experiment autonomously; unreviewed high-stakes code is dangerous, but experimentation behind flags reduces risk.
  • Centralize all designs, decisions, and context in unified forge (Git/GitHub) rather than scattered Slack/Notion; prevents losing rationale and enables agents to understand system history.
  • Code quality tooling (Anti-Slop ESLint plugin, Slop Code Bench rules for your language) fights degradation; TypeScript adoption, formal verification, and lean checks provide measurable guardrails.
  • Verification and code review cannot be fully outsourced to purchased black boxes—you must own opinions about what good code looks like for your codebase and test infrastructure.

Dex Horthy presents data from the Slop Code Bench benchmark showing models degrade codebases over successive iterations, then walks through twelve countermeasures—visual design specs, screenshot-based test suites, code linters, feature flags, and centralized design forges—arguing review cost stays fixed while generation cost approaches zero, creating compounding quality decay.