跳到主内容
@wquguru
精选88VoxAI 产品与模型

Fable 5.2:一句指令实现代码自动重构与去重

Fable 5.2 is already strong at refactoring. Give it 𝘁𝗵𝗶𝘀 𝗼𝗻𝗲 𝘀𝗲𝗻𝘁𝗲𝗻𝗰𝗲 and it fee…

原文
发到 X
推荐理由

提供了具体的 Prompt 模板和对比数据,结构清晰,对开发者有直接参考价值。

Fable 5.2 is already strong at refactoring. Give it 𝘁𝗵𝗶𝘀 𝗼𝗻𝗲 𝘀𝗲𝗻𝘁𝗲𝗻𝗰𝗲 and it feels like cheating: it merges duplicate code on its own and fixes nearby problems along the way.

Fable 5.2 在重构方面已经相当强大。给它这一句话,感觉就像开了挂:它能自动合并重复代码,并顺便修复附近的问题。

Add it to your AGENTS.md or CLAUDE.md 👇

把它添加到你的 AGENTS.md 或 CLAUDE.md 中 👇

“This codebase is yours: what it's for and how it's built are your call, and you'll keep building on it.”

“这个代码库归你所有:它的用途和构建方式由你决定,你将在此基础上持续开发。”

Anthropic tested it: with this sentence, it merged duplicate code 𝗮𝗯𝗼𝘂𝘁 𝗵𝗮𝗹𝗳 𝘁𝗵𝗲 𝘁𝗶𝗺𝗲. Without it, under 1 in 10. The cost is about 1.5x the output tokens, and it will change things you didn't ask it to. Its summary often leaves out the small changes, so read the diff every time.

Anthropic 对此进行了测试:有了这句话,它合并重复代码的概率约为 50%;没有这句话,成功率不到 1/10。成本大约是输出 token 的 1.5 倍,并且它会修改你未要求更改的内容。其摘要通常会省略细微改动,因此每次都要查看 diff。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件