Back to home

Compare

Comparing: Same Request, Different Words: Claude Code, Different Result? & 同一句需求换个说法,Claude Code 会做出不同结果吗

AEN
Claude Code独立创业者自由职业者·

Same Request, Different Words: Claude Code, Different Result?

The first time I said the same thing, and it acted like it hadn’t heard me

At 10 p.m. last Tuesday, I was updating a client demo site from my Hangzhou rental. The page kept throwing errors, so I tried rewording the same request several times: first, “fix it,” then, “find the cause, explain it first, then make the change.” The second version was clearly more stable. That was when I realized that, when assigning work to AI, wording may matter as much as the code itself.

I’m not the only one. Lin Yue, who was building a mini-program in Shenzhen last week, changed “add a login feature” to “keep the existing login flow, and only add the registration entry and error messages.” Claude Code didn’t refactor the entire page on its own. She told me, “If I’d known it was this simple, I wouldn’t have dragged the rework into the early morning.” This preliminary study tested a similar question: after framing the same task differently, does the execution process and final result remain consistent?

It’s not about being more obedient—the task frame changes its order of action

Claude Code is a coding assistant that can read project files, modify code, and run commands. A task frame isn’t a mysterious concept; it’s the order in which you define the goal, boundaries, and checks. For example, saying “build a login page” may prompt it to start immediately. Saying “inspect the existing structure first, list the files you plan to change, then implement and verify” makes it more likely to follow your working style.

The researchers’ findings are still preliminary. We can’t conclude that one sentence is always better, and the experiment is also affected by the model, task, and evaluation method. Still, for those of us who aren’t coders, it offers one practical reminder: don’t dump everything you want into the tool, and don’t stare only at the final code. First, check whether it handled the task through the process you expected.

Reproduce it today: nearly zero cost, with a visible difference in ten minutes

Money: 0 yuan, using your existing Claude Code allowance. Time: about 5 minutes to prepare, 5 minutes per version, or roughly 10–15 minutes total. Technical barrier: you don’t need to code, but it’s best to have a small project that’s safe to test with; never use a client’s live files. First step: create a test folder, copy in some noncritical sample code, then create the same task twice. Frame one as “make the changes directly,” and the other as “inspect the current state, explain what you’ll change, then modify the code and run checks.”

Record three things: what it did first, whether it changed any files outside the plan, and whether it could explain the verification process after finishing. Run each version two or three more times so a fluke doesn’t become a rule. My mistake was testing once and jumping to a conclusion; after adding three more rounds, the difference became clear.

Decide whether to try based on how you work now

If you’re just starting and can’t yet judge whether code is reliable, I’d pick a low-risk page and ask it to change only one thing at a time, explaining every step. Not testing it now is fine too; writing the request down clearly is already useful. If you already have one or two clients, I’d split the client’s original request into three parts—“goal,” “what must not change,” and “acceptance check”—then hand it over and keep copies from before and after. If you’re scaling, I’d turn stable, frequent changes into task templates so the team can use them consistently. Still, this tool isn’t for everyone, and there’s no need to build a complicated workflow on day one.

BZH
Claude Code独立创业者自由职业者·

同一句需求换个说法,Claude Code 会做出不同结果吗

我第一次遇到“明明说了同一件事,它却像没听懂”

上周二晚上十点,我在杭州的出租屋改客户演示站。页面反复报错,我盯着同一句需求换了几种说法:先说“修好它”,又改成“请定位原因并先解释,再修改”。结果第二次明显更稳。那一刻我才发现,给 AI 安排任务时,措辞可能和代码本身一样重要。

这也不是只有我遇到。上周在深圳做小程序的林悦,把“加登录功能”改成“沿用现有登录流程,只补注册入口和错误提示”,Claude Code 才没有顺手重构整套页面。她跟我说,早知道这么简单,我就不会把返工拖到凌晨。这项初步研究也测试了类似问题:同一任务采用不同框架后,执行过程和结果是否仍保持一致。

它不是多会“听话”,而是任务框架会改变它的行动顺序

Claude Code 是能阅读项目文件、修改代码并运行命令的编程助手。任务框架不是神秘术语,而是你把目标、边界、检查步骤写成什么顺序。比如只说“做一个登录页”,它可能直接动手;说“先检查现有结构,列出准备修改的文件,再实现并验证”,它就更容易按你的工作方式来。

研究者的结论仍很初步,不能据此断言某句话永远更好;实验还受到模型、任务和评估方式影响。但对咱们非码农来说,它至少给了一个实用提醒:别把“我要什么”全丢给工具,也别只盯最终代码,先看它有没有按你期待的过程做事。

今天复刻:几乎零成本,十分钟能看出明显差别

钱:0 元,用 Claude Code 的现有额度即可。时间:准备约 5 分钟,每个版本跑 5 分钟,共约 10—15 分钟。技术门槛:不需要会写代码,但最好准备一个能安全测试的小项目;千万别拿客户正式文件直接试。第一步:新建一个测试文件夹,复制一份无关紧要的示例代码,然后新建两次相同任务,只把任务描述分别写成“直接完成修改”和“先检查现状、说明改动点,再修改并运行检查”。

记录三件事:它先做了什么、是否改动了计划外的文件、完成后能否说明验证过程。每组多跑两三次,避免把偶然当规律。我之前犯过的错,就是只试一次就下结论;后来补了三轮,差别才看得清。

按你现在的工作节奏,决定要不要试

如果你刚起步、还不会判断代码是否靠谱,我会先选低风险的小页面,并要求它每次只改一个地方、每步都解释;现在不试也没事,先把需求写具体同样有价值。如果你已经有 1—2 个客户,我会把客户原始需求拆成“目标、不能动的地方、验收方式”三段,再交给它执行,并保留修改前后的副本。如果你在扩规模,我会把稳定且高频的修改写成任务模板,让团队统一使用;但这工具不是所有人都需要,也不用一上来就搭复杂流程。