Cheap Code: Why Agentic Coding Demands Better Specs

Cheap Code: Why Agentic Coding Demands Better Specs

When AI generates code at near-zero marginal cost, the bottleneck shifts from writing code to specifying what code should do and verifying it does it correctly. This practical explainer translates Breunig's lessons into concrete workflow changes, tradeoffs, and adoption guidance for engineering teams.

Drew Breunig published a provocative essay on May 4, 2026, arguing that the era of cheap code demands a fundamental rethinking of how we build software. The Hacker News community has been debating his thesis ever since — and the implications for every developer, team lead, and CTO are more operational than philosophical.
  • Drew Breunig published '10 Lessons for Agentic Coding' on May 4, 2026, arguing that cheap code changes the fundamental economics of software development.
  • The key insight: when code generation is free, the constraint becomes specification quality and verification rigor, not typing speed.
  • This article translates Breunig's lessons into operational decisions for teams — what to keep, what to change, and what to watch for.

Why Does Cheap Code Change the Software Engineering Equation?

According to Drew Breunig's essay, the marginal cost of generating code has effectively dropped to zero with modern agentic coding tools. This is not a marginal improvement — it's a structural shift. When code was expensive, the entire software development lifecycle was optimized around minimizing lines written: careful planning, detailed specs, code reviews, and cautious testing. Each line had a cost. Now, as Breunig argues, "the bottleneck is no longer writing code — it's deciding what code to write." This flips the economics. The expensive parts become specification, design, and verification. Teams that fail to adapt will find themselves drowning in generated code that doesn't solve real problems, or worse, introduces subtle bugs that automated tests don't catch. Breunig's framing is deliberately provocative: if code is cheap, then the value of a developer shifts entirely to the ability to define correct behavior and validate that the generated code matches that definition. The Hacker News discussion thread confirmed this tension — multiple commenters noted that their teams had already experienced "AI code bloat" where generated code was abundant but quality was inconsistent.

What Are the Practical Tradeoffs for Teams Adopting Agentic Coding?

Cheap Code: Why Agentic Coding Demands Better Specs
The most immediate tradeoff is between velocity and correctness. Breunig's essay explicitly warns that "generating more code faster without better verification is a recipe for disaster." This is not theoretical — according to the Hacker News thread, several engineering teams reported that their initial excitement about agentic coding tools led to a 3x increase in code output but only a 1.2x increase in delivered features, because the generated code required extensive rework. Here's the operational tradeoff: teams that adopt agentic coding must invest in three areas simultaneously: 1. **Specification infrastructure**: structured prompts, formal specifications, or test-driven development workflows that force explicit definition of expected behavior before code generation. 2. **Verification tooling**: automated testing, property-based testing, and human review processes that can handle high-volume code generation. 3. **Feedback loops**: rapid iteration cycles where generated code is immediately tested against real-world conditions, not just synthetic benchmarks. Teams that skip any of these three will see diminishing returns. The Hacker News commenters were split: some argued that the real win is using AI for exploration and prototyping, while others insisted that production code still requires human judgment for non-functional requirements like security and maintainability.
DimensionTraditional CodingAgentic Coding (Cheap Code)Verdict
BottleneckWriting codeSpecifying and verifyingShift to spec/verify
Cost structureHigh marginal cost per lineNear-zero marginal costFixed costs dominate
Quality riskUnder-generationOver-generation with subtle bugsNew risk profile
Developer roleTypist + architectSpecifier + verifierRole expansion
Team structureWrite-first, review-secondSpec-first, verify-continuouslyWorkflow inversion
Tooling priorityIDEs, linters, formattersSpec languages, property testers, AI orchestrationNew tooling needed
VerdictOptimized for expensive codeOptimized for cheap codeAgentic wins only with spec/verify investment

Who Benefits Most From This Shift — and Who Loses?

Breunig's essay implicitly identifies winners and losers, though he doesn't name them directly. Let me be explicit. **Winners**: Teams with existing strong testing cultures, companies that invest in specification languages (like TLA+, Alloy, or even structured prompt templates), and platforms that provide verification infrastructure for AI-generated code. According to Breunig, "the teams that will thrive are those that already treat code as a liability, not an asset." This aligns with what the Hacker News community observed: teams with mature CI/CD pipelines and rigorous code review processes adapted faster to agentic coding. **Losers**: Teams that treat AI code generation as a pure productivity multiplier without changing their workflow, startups that optimize for lines of code as a metric, and consultancies that bill by the hour for coding work. The Hacker News thread included a telling anecdote: one commenter's team measured "AI-generated code acceptance rate" and found it dropped from 80% to 40% when they moved from prototypes to production systems with real security and performance requirements. Breunig's ninth lesson is particularly damning: "If you can generate 10x more code but can't verify it 10x faster, you've just created 10x more technical debt." This is not a hypothetical — it's a direct warning that the cheap-code era will separate teams that invest in verification from those that don't.

What Should Engineering Teams Do Starting Tomorrow?

Based on Breunig's lessons and the Hacker News discussion, here is a concrete playbook for teams adopting agentic coding: 1. **Invest in specification-first workflows**: Before generating any code, write structured specifications. This could be formal (TLA+, Alloy) or informal (detailed acceptance criteria, Gherkin scenarios). The key is that the spec must be testable. 2. **Build a verification pipeline**: Treat AI-generated code as untrusted input. Every generated snippet must pass automated tests, property checks, and a human review focused on non-functional requirements. According to one Hacker News commenter, their team found that "80% of AI bugs were in edge cases the spec didn't cover." 3. **Measure the right things**: Stop tracking lines of code or pull request velocity. Start tracking spec coverage, verification pass rates, and the ratio of generated code that survives to production. 4. **Redefine developer roles**: The best developers in the cheap-code era will be those who can write precise specifications and design robust verification strategies, not those who type fastest. Breunig's essay argues that "the most valuable engineer becomes the one who can most clearly describe what success looks like." 5. **Be skeptical of productivity claims**: Any vendor claiming 10x productivity from AI coding tools is either ignoring or hiding the verification costs. The Hacker News thread was full of cautionary tales: teams that saw initial speed gains but then spent weeks debugging generated code that looked correct but wasn't.
**My thesis**: Breunig's essay is correct in diagnosis but too optimistic about adoption speed. Most teams will not voluntarily invest in specification and verification infrastructure until they experience a costly failure. The cheap-code era will create a bimodal distribution: a small number of teams that invest early in spec/verify workflows will see genuine productivity gains, while the majority will generate massive technical debt and blame the tools. **Short-term** (next 6 months): We will see a wave of blog posts and conference talks about "AI code debt" as teams that adopted agentic coding without workflow changes hit the wall. The Hacker News thread already shows this pattern. **Long-term** (next 2 years): The market will consolidate around a few platforms that provide end-to-end spec-to-verification pipelines. Companies like GitHub (Copilot), Replit, and Cursor will need to add specification and verification features to survive, or they will be replaced by new entrants that treat code generation as a commodity and focus on the hard problem of correctness. **Who gains**: Teams with existing testing culture, specification tooling vendors, and platform providers that integrate verification natively. **Who loses**: Teams that treat AI as a typing accelerator, consultancies that bill by the line, and any tool that optimizes for generation speed over correctness. **Concrete prediction**: By Q2 2027, at least one major AI coding platform (GitHub Copilot, Cursor, or Replit) will introduce a mandatory verification step before generated code can be committed to production, and this will be framed as a safety feature, not a limitation.
**Predictions**: 1. By Q3 2027, GitHub Copilot will introduce a "verification mode" that requires generated code to pass automated property tests before being suggested, as a direct response to the cheap-code debt problem. 2. By Q1 2028, at least three startups will emerge focused exclusively on specification-to-verification pipelines for AI-generated code, and at least one will be acquired for over $100M. 3. By Q4 2027, a major open-source project will publicly blame agentic coding tools for introducing a security vulnerability, triggering a community debate about verification standards.

Estimated Developer Time Allocation Shift with Agentic Coding

**Article Summary**:
  • Cheap code shifts the bottleneck from generation to specification and verification — teams that don't adapt will accumulate technical debt faster than ever.
  • The real productivity winners will be teams with existing strong testing cultures, not teams that maximize AI code output.
  • Most current AI coding platforms lack the verification infrastructure needed for production use — this is a market opportunity, not a solved problem.
  • Developer roles will bifurcate: specifiers/verifiers vs. code generators, with the former commanding higher value.
  • Adoption speed will be slower than vendors claim because workflow changes are harder than tool changes.

Source and attribution

Hacker News
Lessons for Agentic Coding: What should we do when code is cheap?

Discussion

Add a comment

0/5000
Loading comments...