Back to Home
RadarAI··Papers & Tech

提示 Claude Fable 5.2:声明代码归属影响重构行为

中文摘要

Claude Fable 5.2 对代码归属敏感,明确声明“此代码库归你所有”可显著增强其合并重复代码和重构结构的能力。

English Summary

Claude Fable 5.2 is sensitive to ownership; stating "This codebase is yours" significantly improves its ability to merge duplicate code and refactor structures.

Original Excerpt

Simon Willison 转引 Anthropic 文档:Claude Fable 5.2 对提示词中代码归属表述很敏感,提示不提及归属或把代码库说成别人的,模型倾向沿用现有结构、即使代码重复。文档建议写明 This codebase is yours,小任务测试中加这句话后模型约一半尝试会合并重复代码,不加则不足十分之一。