AI Generates 75% of Code—Why Engineers Panic: The Problem Is the Model, Not the Harness
When AI writes most of the code, the promised speed gains mask a deeper issue: current programming models, trained only to pass tests, fail to learn maintainability, leading to declining PR quality, rising bugs, and the collapse of "lights‑off" software factories.
Opening: 75% of Code Written by AI, Industry Turns Lights‑Off
By 2026, many companies boast that AI can automatically produce over 70% of new code, creating the illusion of "free code" and massive speedups. Dex Horthy, founder of HumanLayer, warned at the AI Engineer World's Fair that this path is unsustainable.
Software Factory History: From Manual Pipelines to Lights‑Off Factories
The classic 2022 pipeline involved engineers, product managers, and managers defining work in Jira/Linear, developers implementing, PR submission, code review, testing, and iterative feedback loops. Recognizing the heavy cost of implementation and review, the industry introduced design docs and planning to reduce rework.
Agentic Software Factories
Agents now replace human implementation, shrinking coding time from days to minutes, but review and testing times have not decreased proportionally, creating a new bottleneck. The industry responded with "lights‑off" factories, eliminating review in favor of testing, monitoring, and rapid patch generation.
Data Shows Declining Code Quality
Faros AI’s industry report indicates that since large‑scale AI coding adoption in early 2026, PR review quality has dropped, unreviewed merges have surged, and both incident frequency and bugs per engineer have risen. Practitioners like Mario have called for a slowdown due to agent‑induced outages.
Why Harness Engineering Isn’t Enough
Dex argues that improving harnesses or adding adversarial prompts cannot solve the core problem: current reinforcement‑learning training of coding models only rewards passing tests, not long‑term maintainability. Bad architectural decisions surface months or years later, beyond the reward horizon.
Claude Code’s Success and Its Training Method
Claude Code’s market success stems from training the model together with its harness, unlike earlier agents (Aider, CodeBuff) that were merely adapted to external toolchains. This joint training gives the model familiarity with tool usage but still lacks maintainability signals.
How Programming Models Are Trained
Training follows a loop: present a problem, generate many solution trajectories, score each on test pass/fail, then apply reinforcement to make “bad” behaviors less likely and “good” behaviors more likely. Benchmarks like SWE‑bench Multilingual use real open‑source tasks (e.g., fixing a Ruby Fastlane null‑pointer bug) and reward only functional correctness.
Why Maintaining Code Is Hard to Evaluate
Current validators cannot penalize poor design because the cost of bad architecture appears only after long periods. Consequently, models produce code that passes tests but may introduce hidden technical debt, such as unnecessary try/catch blocks or type casts.
Emerging Benchmark Directions
SWE Marathon (Abundant AI): 400‑hour tasks like cloning every Excel feature, with richer reward signals.
DeepSuite (Data Curve): Large tasks from open‑source repos that avoid data leakage.
Frontier Code (Cognition): Multi‑PR tasks with judges that penalize failing tests before patches.
Dex cautions that relying solely on model‑based quality assessment hits a ceiling; a truly good model would write good code from the start.
Current Remedy: Re‑Lighting the Review Lamp with a Four‑Step Pre‑Alignment Process
Product Review : Clarify problem and expected behavior, including design specs.
System Architecture : Define component contracts, data models, and constraints.
Program Design : Focus on type definitions, method signatures, and call stacks; use call‑graph diagrams for planning.
Vertical Slicing : Determine implementation order, cross‑repo coordination, and stage‑wise checks.
Investing ~30 minutes in planning can save hours during review. When PR volume is high, the real issue is often low‑quality PRs, not quantity. Human review remains essential; models can accelerate alignment and review but cannot replace the engineer’s role in maintaining constraints.
Conclusion: Engineer Value Lies in Managing Constraints
Engineers solve problems within a set of constraints. Models excel at some tasks but lack the ability to understand long‑term maintainability. The pragmatic approach is to keep humans in the loop, use AI to speed up pre‑alignment, and focus effort on the hard parts of legacy codebases.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
TonyBai
Tony Bai's tech world (tonybai.com). Not satisfied with just "knowing how", we strive for mastery. Focused on Go language internals, high-quality engineering practices, and cloud‑native architecture, exploring cutting‑edge intersections of Go and AI. Gophers who pursue technology are welcome—follow me and evolve with Go.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
