Claude Code buddy品质修改办法
- 内容介绍
- 文章标签
- 相关推荐
用codex分析了一下这个claude code buddy,核心在cli.js 文件中:
文件路径大致可能是这样的C:\Users\你的用户名\AppData\Roaming\npm\node_modules@anthropic-ai\claude-code\cli.js
原版:
function Pk_(q){
let K=Object.values(Uh1).reduce((z,Y)=>z+Y,0),_=q()*K;
for(let z of Iq4) if(_-=Uh1[z],_<0) return z;
return "common";
}
我们可以修改为:
function Pk_(q){return"legendary"} #也可以修改为其他品质
这样claude code buddy 固定返回五星级的buddy.
image1052×716 19.4 KB
--【壹】--:
没有这段代码啊,佬
--【贰】--:
我也有啦!
--【叁】--:
能和宝可梦联动吗
用codex分析了一下这个claude code buddy,核心在cli.js 文件中:
文件路径大致可能是这样的C:\Users\你的用户名\AppData\Roaming\npm\node_modules@anthropic-ai\claude-code\cli.js
原版:
function Pk_(q){
let K=Object.values(Uh1).reduce((z,Y)=>z+Y,0),_=q()*K;
for(let z of Iq4) if(_-=Uh1[z],_<0) return z;
return "common";
}
我们可以修改为:
function Pk_(q){return"legendary"} #也可以修改为其他品质
这样claude code buddy 固定返回五星级的buddy.
image1052×716 19.4 KB
--【壹】--:
没有这段代码啊,佬
--【贰】--:
我也有啦!
--【叁】--:
能和宝可梦联动吗

