跪拜 Guibai
← All articles
Algorithms · Architecture

AI Code Generation's Final Bottleneck Is Human Judgment, Not Compute

By ENCI ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

The consequence is concrete: AI collapses the cost of generating code, which shifts the bottleneck to judgment. Developers who can't review intent will ship the class of defects that showed up as thousands of vulnerabilities in vibe coding apps, while teams that build structured prompts and keep expert review in the loop spend less on rework and stay out of the security tail.

Summary

AI code generation has hit a wall that better models won't remove: compute supply can't keep pace with demand, and human judgment, not model strength, decides whether the output is usable. China's daily token calls grew from 100 trillion at the end of 2025 to 500 trillion by June 2026, while GPU supply stays choked by production capacity, advanced process nodes, and import restrictions. The architectural fix is shifting AI compute nodes from a CPU-centered design to a GPU-interconnect-centered one, but hardware is the wrong lever; how developers use the models matters more.

The damage shows up where entry is easiest. A scan of over 5,600 vibe coding apps surfaced 2,000+ security vulnerabilities, 400+ exposed keys, and 175 cases of leaked personal data. The failures trace to three recurring patterns: hallucinated dependencies (slopsquatting) where AI invents real-looking package names, code that gets the structure right but the intent wrong (a catch block that only logs and does nothing), and an inability to trace backwards from a symptom because the developer lacks a mental model of the correct system. AI lowers the cost of writing code but not the cost of debugging or judging it.

The remedy is structured prompting, a six-element task spec (role, context, task, constraints, output format, acceptance criteria) that injects expert knowledge into the model. The claimed numbers are stark: 84% of developers use AI tools but under 30% reliably get production-usable code; vague prompts yield around 80% rework while structured prompts push first-pass success above 80%. The stated rule of thumb: invest in expertise and verifiability before reaching for AI, and keep expert review mandatory for high-risk, audited paths like finance cores or real-user backends.

Takeaways
— China's daily token calls reached 500 trillion by June 2026, up from 100 trillion at the end of 2025, while GPU supply stays constrained by capacity, advanced process nodes, and import limits.
— A scan of over 5,600 vibe coding apps found 2,000+ security vulnerabilities, 400+ exposed keys, and 175 personal data leak cases.
— 84% of developers use AI tools, but fewer than 30% reliably get code usable in production.
— The article's figures put vague-prompt rework around 80% and structured-prompt first-pass success above 80%; in its own demo, the result is hardcoded by checking whether three substrings appear in the prompt string.
— A structured expert prompt carries six elements: role, context, task, constraints, output format, and acceptance criteria.
— AI code review tools reliably catch pattern-based defects (unused variables, unreachable code, null pointers) but miss intent-level failures: wrong business logic, hallucinated auth flows, cross-service privilege escalation, and race conditions.
— AI compute nodes are shifting from CPU-centered architecture to GPU-interconnect-centered design to relieve the bottleneck.
— The guidance: use AI to amplify domains you understand and tasks that are verifiable; for unknown domains and high-risk audited paths, expert review is non-negotiable.
— AI-generated catch blocks that only log an error and do nothing are cited as a common 'quiet failure' sign of wrong intent.
— The worst-case scenario for AI code writing is not a weak model but a developer who cannot judge output: they can't fix bugs, can't verify dependencies, and can't trace symptoms back to causes.
Conclusions

The demo's 'proof' is circular: the generate_code function returns 80% rework or 0% solely by checking whether three substrings are in the prompt, so it validates the framing without testing any real model behavior.

The division of labor the piece describes is durable: AI absorbs mechanical checks while humans keep architecture review, security analysis, performance evaluation, and mentoring, a transfer of work rather than displacement of engineers.

Because scanning tools miss intent-level bugs, the security numbers (2,000+ vulnerabilities from 5,600 apps) reflect a risk transfer: people who cannot judge generated code now sit at the deployment gate.

Concepts & terms
Vibe coding
Writing software by describing the goal in natural language and letting an AI assistant generate the code, often without reading or understanding what it produces. The writing barrier drops, but debugging still demands real technical skill.
Slopsquatting (hallucinated dependencies)
AI invents package or method names that look plausible but don't exist; attackers pre-register those names as malicious packages, and developers who blindly install from the AI's suggestion pull in malware.
Structured prompt
A task specification with six elements (role, context, task, constraints, output format, acceptance criteria) that converts an expert's implicit knowledge into instructions an AI model can act on.
From the discussion
Featured comments
ENCI

The pitfall I stepped in wasn't that my prompts weren't good enough — it was that I didn't understand the business at all. When AI ran logic that looked reasonable, I believed it, and only during debugging did I realize the direction was wrong. A: Are you more often blocked by insufficient compute/model? B: Are you more often blocked by not understanding enough? Let's discuss in the comments — I guess most people would pick B.

See top comments, translated →
Source: juejin.cn ↗ Google Translate ↗ Backup ↗