Quoting Prompting Claude Fable 5.2
Quoting Prompting Claude Fable 5.2
Claude Fable 5.2 会密切关注它所处理的代码的拥有者。在 Anthropic 对小型编码任务的测试中,当提示中没有提到所有权或把代码库描述为别人的代码时,该模型往往会添加到现有结构中,即使这会重复现有的代码。当提示中说明代码库是该模型自己的时,它通常会合并重复的代码,有时甚至在未被要求的情况下进行相关修复。如果你想让模型在工作时改进结构,请说明代码是它自己的:你是该代码库的所有者和长期维护者,其设计由你决定。拥有权的说明会让模型更有可能将重复的代码合并到一个共享函数中。在 Anthropic 对小型编码任务的测试中,没有该说明的情况下,模型在不到 10% 的运行中合并了重复的代码,而有该说明的情况下,这一比例约为 75%。—— 引导 Claude Fable 5.2,Anthropic 文档 标签:提示工程、Anthropic、生成式AI、AI、大语言模型、Claude-Mythos-Fable
Claude Fable 5.2 pays close attention to who owns the code it works on. In Anthropic’s testing on small coding tasks, the model tended to add to the existing structure when the prompt said nothing about ownership or presented the code base as someone else’s, even when that duplicated existing code. When the prompt said the code base was the model’s own, it often consolidated duplicated code and sometimes made related fixes without being asked. If you want the model to improve the structure as it works, say that the code is its own: You are the owner and long-term maintainer of this codebase, and its design is up to you. The ownership sentence makes the model much more likely to consolidate duplicated code into one shared function. In Anthropic’s testing on small coding tasks, the model consolidated duplicated code in under 10 percent of runs without the sentence and in about 75 percent of runs with it. — Prompting Claude Fable 5.2 , Anthropic documentation Tags: prompt-engineering , anthropic , generative-ai , ai , llms , claude-mythos-fable
应来源方要求,这里只提供摘要与原文入口。完整内容请阅读原文。
来源:Simon Willison · simonwillison.net