7 个赞
之前就听说有这种事情出现,现在看来是真的,佬,问题解决了吗
1 个赞
习惯就好,大伙应该都被删过东西了吧,所以我现在都是 docker/虚拟机 隔离起来跑 ![]()
1 个赞
佬不是第一个被删,也不是最后一个被删,所以日常需要备份
1 个赞
除非备份到外部,不然备份也有删的可能性 ![]()
1 个赞
哪个AI,说出来让大伙儿避避坑啊~~~ 目前用克劳德没遇到过
1 个赞
哈哈哈,解决不了问题就把问题解决
1 个赞
写一个删除、git相关危险操作的hook 拦截脚本就行了,危险操作弹框人工确认
1 个赞
避不了的,任何AI都有可能做这种事
2 个赞
没解决啊,还好只是放了些代码还有一点不重要的文档,git上重新拉下来了
我本来grok用的好好的,突发奇想公益站一大把额度没用,换了个glm5.2用用就这样了
2 个赞
是 Windows 专属问题么 我看到非常多的人都是在 Windows 上出现的
不能笑不能笑,万一那天发生在自己身上呢(哈哈哈哈哈)
可以试试提示词引导下,删除文件或者大规模重写(有版本控制可以不要这个)前做好备份,这样至少还有捞一捞的可能性
1 个赞
所以现在我都是在独立机子上跑ai了,跑完再同步到电脑
1 个赞
是在 windows 上出现的概率高,不是专属问题,我很少开 full acces 几乎没有过删除文件/目录
1 个赞
我的agents.md加了这段后,从来没有出现过误删的问题,佬可以试试:
## 7. Dangerous Operations
Ask for explicit confirmation before clearly high-risk actions such as:
- deleting files or directories
- destructive VCS commands
- large automated search/replace operations
- data, schema, protocol, or public API changes with compatibility risk
- reading, modifying, or printing secrets or environment credentials
- calling production endpoints or critical internal services
Never place secrets, tokens, cookies, authorization headers, private keys, or complete environment dumps in prompts, ledgers, logs, reports, patches, or documentation. Use secret bindings or environment references and redact evidence.
Use this template:
```markdown
**Dangerous Operation Detected**
- Planned action: ...
- Impact scope: ...
- Risk assessment: ...
Please confirm whether to continue. Reply with `继续` or `confirm` to proceed.
4 个赞
加上批量删除文件限制吧,这后果太严重
1 个赞
好了好了这下坏了, 让ai写代码带有git记录才行,自己写的时候生怕一个不小心

