Back to home

Compare

Comparing: Claude Code Power User: AI Coding Failures Are Engineering, Not Model Problems & Claude Code 重度用户:AI 翻车不是模型问题,是工程问题

AEN
Claude CodeAnthropicSubAgent·

Claude Code Power User: AI Coding Failures Are Engineering, Not Model Problems

After a year of running Claude Code in production, we've reached a clear conclusion: the bottleneck in getting AI to do real work isn't the model—shifting attention from "making the model smarter" to "making constraints harder" delivers results that exceed swapping models three times combined. The core idea is treating AI as a probabilistic execution system and using three layers of constraints to compress probability into determinism.

What this is

We break the engineering practice into three layers:

Rules layer (weak): Write project conventions into CLAUDE.md, .claude/rules/, Skills, and Commands. Key point: rules must be script-checkable—phrases like "high quality" carry almost no constraint force for the model.

Division of labor layer (medium): Use SubAgents to isolate roles. The classic three-role setup: planner (outputs plans only, never writes code), coder (implements per plan), and reviewer (an independent, smaller model in read-only audit mode). Core principle: keep the "writer" and "auditor" out of the same context to prevent self-review.

Feedback layer (strong): Use Hooks (auto-triggered script hooks), MCP (the protocol for connecting external tools), Checkpoints (auto-validation points), and acceptance scripts for runtime enforcement—no passing without compliance. This is the layer with real force.

The most counterintuitive finding: having AI review its own code is like letting a student grade their own exam; switching to a tier-smaller, different-series model for review actually breaks over-identification and costs less.

How the industry sees it

This echoes the AI engineering community's consensus shift over the past six months: from "tuning prompts and models" to "engineering constraints." Both LangChain and Anthropic emphasize similar views—70-90% of Agent project failures get stuck at the engineering stage, not from insufficient model strength.

The counter-argument is equally clear: managing AI like a "junior programmer that needs strict supervision" isn't cheap—the human cost of maintaining a 200-line CLAUDE.md and configuring Hooks may exceed hiring a junior engineer. This playbook only suits teams with sustained quality demands; for one-off scripts or personal projects, it's over-engineering.

Another view: the "compress probability into determinism" framing is overly optimistic. Same prompt, different outputs is fundamentally how LLMs work—engineering constraints can only reduce variance, not eliminate it.

Impact on regular people

For enterprise IT: When deploying AI coding tools, the focus isn't which model to pick, but whether your engineering team can maintain this constraint system—otherwise you'll likely get stuck at "dazzling demo, production flop."

For individual careers: There's an engineering-constraints gap between "using AI" and "delivering reliable output with AI." This threshold is becoming a new dividing line for programmers—not whether you can code, but whether you can set rules for AI.

For consumer markets: Regular users won't see this playbook in the short term, but SaaS providers will gradually wrap these constraints into their offerings. Future differences in "one-click AI coding" experiences may hide in these invisible engineering details.

Source: juejin.cn
BZH
Claude CodeAnthropicSubAgent·

Claude Code 重度用户:AI 翻车不是模型问题,是工程问题

一位 Claude Code 重度用户用一年时间在生产项目里得出结论:让 AI 老实干活的瓶颈不在模型——把注意力从"让模型更聪明"转到"让约束更硬",效果比换三次模型加起来都明显。核心思路是把 AI 当概率性执行系统管,通过三层约束把概率压成确定性。

这是什么

文章把工程实践拆成三层:

规则层(弱):把项目规矩写进 CLAUDE.md、.claude/rules/、Skills、Commands。关键:规则必须可被脚本检查——"高质量"这种话对模型几乎没有约束力。

分工层(中):用 SubAgent(子代理)隔离角色。经典三角色:planner(只出计划不写代码)、coder(按计划实现)、reviewer(独立小模型只读审查)。核心:让"写的人"和"审的人"不在同一上下文,避免自我审查。

反馈层(强):用 Hooks(自动触发的脚本钩子)、MCP(连接外部工具的协议)、Checkpoint(自动校验点)、验收脚本做运行时强制——做不到就走不掉。这才是真正有强制力的一层。

最反直觉的发现:让 AI 审查自己写的代码,等于让考生给自己阅卷;改用小一档、不同系列模型审查,反而能打破过度认同且更便宜。

行业怎么看

这呼应了 AI 工程圈过去半年的共识转向:从"调 prompt 调模型"转向"做工程约束"。LangChain、Anthropic 都在强调类似观点——Agent 项目失败 70-90% 卡在工程化阶段,不是模型不够强。

反对声音同样明确:把 AI 当"必须严管的初级程序员"成本不低——维护 200 行 CLAUDE.md、配置 Hooks 的人力,可能比雇一个初级工程师还贵。这套打法只适合对质量有持续高要求的团队,对一次性脚本或个人项目属过度工程。

另有一种观点:"把概率压成确定性"的提法过于乐观。同样的 prompt 产出不同结果,本就是大语言模型的工作方式,工程约束只能降低方差、无法消除它。

对普通人的影响

对企业 IT:部署 AI 写代码工具时,重点不是选哪家模型,而是工程团队能否维护这套约束体系——否则大概率卡在"demo 惊艳、生产翻车"。

对个人职场:会用 AI 与能用 AI 交付可靠产出之间,隔着一道工程约束的门槛。这道门槛正在成为程序员的新分界线——不是会不会写代码,而是会不会给 AI 立规矩。

对消费市场:普通用户短期内接触不到这套玩法,但 SaaS(软件订阅服务)会逐步把类似约束封装进产品。未来"一键 AI 写代码"的体验差距,可能就藏在这类看不见的工程细节里。

Source: juejin.cn