Heuristic Mode
AI Engineer Nov 24, 2026 balanced default-text

Software Factories: Escape from Trash Mountain — Steve Yegge, Gas Town

Summary

Steve Yegge argues that agent-driven "software factories" can emit code far faster than teams can review, integrate, and own it, leaving a growing trash mountain of unmaintained output. His answer is to run the factory like an organization: constrain context and memory, control token spend, delegate through hierarchies of agents, and instrument rework rather than raw output. Engineers should care because throughput without intake capacity converts model gains directly into maintenance debt.

Key takeaways

  • Model factory output as a pipeline with a hard downstream limit: review bandwidth, integration capacity, and ownership decide how much generated code is actually usable.
  • Treat context and memory as budgeted resources — per-agent window allocation, retrieval hygiene, and cost ceilings matter more to sustained throughput than raw model capability.
  • Delegate in layers: lead agents scope work and hand off to specialized sub-agents with explicit roles, escalation paths, and review gates, mirroring how human teams scale.
  • Measure rework rate, cost per merged change, and orphaned-code accumulation instead of lines or PRs shipped; those are the signals that reveal a forming trash mountain.
  • Define trust boundaries and predictable agent behavior up front so failures surface as visible errors rather than silent drift in the codebase.

Key moments