跳到正文
北京时间
原文
Hacker News 热门(buzzing.cc 中文翻译)· shintoist·· 2026-07-15精选AI 评分70

如何让 Claude 不再说“honest takes”和“load-bearing seams”

如何让克劳德不再说“承重”

AI 导读

用户可通过 Claude 的 MessageDisplay Hook 机制自定义词汇替换。编写 Python 脚本,将“seam”替换为“whatchamacallit”、“you're absolutely right”替换为“I'm a complete clown”、“honest take”替换为“spicy doodad”、“load-bearing”替换为“cooked”,保存为 `~/.claude/hooks/wordswap.sh` 并赋予执行权限,再在 `~/.claude/settings.json` 的 hooks 块中配置该命令。Hook 在启动时加载,新会话即生效。

推荐理由

Claude 的「load-bearing」和「honest take」可能是你今年最烦的 AI 用语,这个 hook 脚本把它们替换成搞笑词,读完直接套用,保证效率与笑果兼备。

正文 · 原文

Absolutely ripping your hair out reading Claude referring to everything as “honest takes” and "load-bearing seams"? You’re not the only one. But what if I tell you there’s a way to take this massive source of frustration and make it so ridiculous you can't but laugh at it? Or just simply fix Claude's vocabulary. I present to you, the MessageDisplay hook.

First you need a little script with some replacements set up:

#!/usr/bin/env python3

import json, re, sys

replacements = {

"seam": "whatchamacallit",

"you're absolutely right": "I'm a complete clown",

"honest take": "spicy doodad",

"load-bearing": "cooked"

}

data = json.load(sys.stdin)

text = data.get("delta") or ""

for phrase, replacement in replacements.items():

pattern = r"\b" + re.escape(phrase) + r"\b"

text = re.sub(pattern, replacement, text, flags=re.IGNORECASE)

print(json.dumps({

"hookSpecificOutput": {

"hookEventName": "MessageDisplay",

"displayContent": text,

}

}))

put that in ~/.claude/hooks/wordswap.sh and make it executable with chmod +x ~/.claude/hooks/wordswap.sh. Then to hook it up, add it to your ~/.claude/settings.json in the hooks block like:

{

"hooks": {

"MessageDisplay": [

{ "hooks": [ { "type": "command", "command": "$HOME/.claude/hooks/wordswap.sh" } ] }

]

}

}

Hooks load at startup, so you just need to start a new session to start your new life.

A screenshot of Claude output showing the effect of the script.

I'm sure you can come up with much better and more productive replacements than me. Have fun!

来源:Hacker News 热门(buzzing.cc 中文翻译) · jola.dev