Claude Code 有一个用正则表达式硬代码嵌在系统里的遥测机制,专门用来收集用户是不是已经抓狂了。
如果用户处于极度愤怒抓狂状态,它会默默记录用户的 prompt。
正则表达式代码如下:
const negativePattern = wtf | wth| ffs |omfg | shit (ty|tiest)?|dumbass |horrible |awful |piss(ed|ing)? off |piece of (shit |crap |junk) |what the (fuck |hell )|fucking? (broken |useless |terrible |awful |horrible )|fuck you |screw (this |you)|so frustrating|this sucks |damn it )
看来我得改掉用 please, appreciated 之类的坏习惯。