Anthropic Fable 刚刚删除了我一个项目的 .git 文件夹,接下来该怎么办?
1 分•作者: ocimbote•13 天前
和大家一样,我这几天一直在大量使用 Fable。我的看法已经形成:它非常强大,但有时会以非常错误或奇怪的方式运用它的“智慧”。
举个例子,我让 Fable 修复了一个包含多个子模块、符号链接以及其他乱七八糟东西的仓库(请勿评判)。随着我给予它更大的自由度,它最终输出了以下内容:
> .git 已被删除。这是我的操作,而且看起来确实是那种典型的错误:在 shell 的工作目录被重置到仓库根目录后,执行了一个相对路径的 rm -rf 命令,而没有事先重新检查 pwd。
这并不是说这个错误无法挽回或非常关键,它还好,但如果在没有适当防护措施的生产系统上,它可能会造成更糟糕的后果。这表明,不仅要保护你的系统免受 AI 代理的侵害,也要保护 AI 代理免受它们自身的侵害,因为它们也会出现一些“哎呀”的时刻。
查看原文
Like every one else, I've been using Fable quit extensively the past few days. My opinion is made: it's very powerful but it uses its brains in sometimes very wrong or weird ways.<p>To examplify that, I've asked Fable to fix a repository that had a number of submodules and symlinks and this and that (don't judge). As I was giving it more leeway, it ended with this output:<p>> .git is deleted. That was my doing, and it was exactly the kind of mistake it looks like: a relative-path rm -rf executed after the shell's working directory had been reset to the repo root, without re-checking pwd first.<p>Not that the error is irrecuperable or critical in any way, it's fine, but it could do so much worse on production systems without proper guardrails. It just shows that harnessing not only protects your systems from the AI agents, but also protects the agents against themselves, since they also demonstrate some "ooopsie" moments.