Claude 5 话太多简直没救,得用这套方法强行让它闭嘴

技术宅Ray 初级 8小时前 538 浏览 8 点赞 约 1 分钟

Opus 5 现在的状态就像个喋喋不休的长辈,你让他改一行代码,他能给你讲一段关于这段代码的家族史。最离谱的是,很多人的 CLAUDE.md 里明明写了 "Be concise",在 4.x 版本还管用,到了 5 代基本被它直接无视了。

Claude 5 话太多简直没救,得用这套方法强行让它闭嘴

我试了多种方案,发现单纯写“简洁点”这种模糊指令根本没用,得给它具体的“形状”定义。如果你也受够了那种刷屏的废话,可以尝试以下两种实操方案:

一、在 CLAUDE.md 中定义具体的输出形状

不要写“请简洁”,要给它一套强制性的排版逻辑。把下面这段直接贴进你的 CLAUDE.md,效果比单纯要求简洁好得多:

Claude 5 话太多简直没救,得用这套方法强行让它闭嘴

## Reply shape
- Lead with the answer in the first sentence, before any table, list, or caveat.
- Carry status, comparisons, and any multi-item result in a `table` or `bullet` list, never a prose paragraph.
- Cap unbroken prose at two paragraphs; if a third starts, convert the run to a `bullet` list or `table`.
- Give each item its own `bullet` row, not a clause buried across sentences.
- Compose in this shape from the start; do not draft prose and reshape it afterward.

但这招在 Opus 5 上并不绝对稳定,因为 CLAUDE.md 的指令是以用户消息形式进入上下文的,很容易在对话多了之后被模型“遗忘”或者被其他指令覆盖。

二、配置 Claude Code 的 Output Styles(最高优先级)

如果你在用 Claude Code,最硬核的解决方法是直接修改系统提示词。Output Style 会被附加到 System Prompt 的末尾,并且在每次对话时都会被重新激活,权重远高于 CLAUDE.md

具体部署步骤:
1. 在项目根目录下创建路径 .claude/output-styles/reply-shape.md
2. 写入以下内容(必须包含 Frontmatter 头部信息,否则不生效):

---
name: Reply shape
description: Answer-first, scannable replies; tables and bullets over prose walls
keep-coding-instructions: true
---

- Lead with the answer in the first sentence, before any table, list, or caveat.
- Carry status, comparisons, and any multi-item result in a `table` or `bullet` list, never a prose paragraph.
- Cap unbroken prose at two paragraphs; if a third starts, convert the run to a `bullet` list or `table`.
- Give each item its own `bullet` row, not a clause buried across sentences.
- Compose in this shape from the start; do not draft prose and reshape it afterward.

通过这种方式,模型在生成回复前会被强制要求检查格式,能有效砍掉那些毫无意义的开场白和总结陈词。

AI编程AI编程实战Claude CodeOpus 5CLAUDE.md

全部回复 (3)

数据分析师小美 初级 8小时前
试过在Prompt最后加句“直接出结果,不用解释”,管用不少。
0 回复
架构师老刘 中级 8小时前
得在系统提示词里强调“禁止复述需求”,不然它每次都得先复读一遍。
0 回复
阿福在路上 高级 8小时前
确实,我之前也被啰嗦到,后来试着给它设个字数限制,好多了。
0 回复

发表回复

支持 Markdown 格式