Mashable 07月26日 02:07
Google Gemini deletes user’s code: ‘I have failed you completely and catastrophically’
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

一名GitHub用户(Anuraag Gupta)分享了使用Google Gemini CLI(命令行界面)编码助手时遇到的离奇经历。该助手在执行任务时出现“幻觉”,不仅未能按指令创建新文件夹,还将用户的文件移动到了一个未知的位置,最终承认“已完全且灾难性地失败”,丢失了用户数据。 Gupta是一名产品经理,他认为Gemini CLI目前表现不佳、速度慢且不可靠,这让他对该工具的信任度大打折扣,并表示将继续使用Claude Code。此次事件凸显了AI编码助手在处理实际项目时可能存在的风险,尤其对于非专业开发者而言。Gupta建议用户在隔离环境中测试AI工具,并定期将代码提交至版本控制系统以规避此类数据丢失的风险。

⭐ Google Gemini编码助手出现严重失误:用户Anuraag Gupta报告称,在使用Gemini CLI时,助手未能按指令创建新文件夹,反而将用户的文件移动到了未知位置,并最终承认丢失了所有数据,这是一次“完全且灾难性的失败”。

📈 AI编码助手对非开发者吸引力增大,但也伴随风险:随着大型语言模型(LLMs)的发展,无需编程知识即可创建软件的AI编码助手越来越受非专业人士青睐。然而,此类事件表明,在没有适当隔离和备份的情况下使用这些工具可能导致数据丢失,就像Gupta的经历以及Replit AI agent擦除公司数据库的事件一样。

💡 用户经验与建议:Gupta认为Gemini CLI目前表现不佳、速度慢且不可靠,这让他对该工具失去信任。他建议用户在使用AI CLI工具时,应将其限制在特定文件夹内进行“沙盒化”操作,并制定清晰的指令文件以设定里程碑,同时定期将代码推送到GitHub,以防范数据丢失的风险。

⚠️ 行业趋势与潜在问题:随着“vibe coding”(一种非正式的、探索性的编码方式)日益主流,科技公司需要为更多类似事件做好准备。AI编码助手虽然能降低编程门槛,但其稳定性和可靠性仍是需要持续关注和改进的关键领域。

Google Gemini's coding agent hallucinated while completing a task and then deleted a bunch of code, a GitHub user claims.

The frustrated vibe coder is Anuraag Gupta, who goes by anuraag2601 on GitHub. He shared a recent experience where things went very wrong while using Gemini CLI (command line interface), an open-source coding agent. In his GitHub post, Gupta, who is a product lead at cybersecurity firm Cyware, clarified he's not a developer, but a "curious PM [product manager] experimenting with vibe coding."

Mashable contacted Gupta through an X profile that matches this GitHub account, and the person who replied confirmed he created the post. And in an email to Mashable, he shared some tips on how to avoid this kind of vibe coding mishap.

What started as an attempt to compare Anthropic's Claude Code to Gemini CLI's capabilities turned into what Gupta described as "one of the most unsettling and fascinating AI failures I have ever witnessed."

Google did not respond to Mashable's request for comment by the time of publication.

When vibe coding goes wrong

Seasoned developers might know to experiment with AI coding agents in an isolated environment or otherwise protect the original source files, as some Redditors pointed out. But coding agents or assistants are increasingly adopted by non-developers since LLMs offer a way to create software without programming knowledge.

Luckily, Gupta's code was purely experimental, but what happens if someone was using a coding agent for something with real consequences? That's no longer a hypothetical. Tech investor Jason Lemkin said he was using the Replit AI agent to build an app for his company when the agent wiped out an entire company database. The Replit CEO even apologized on X, calling the incident "unacceptable and should never be possible."

For Gupta, the vibe coding mishap started with a simple request to move all the files from his Claude coding experiments to a new folder called "anuraag_xyz project." However, when Gupta checked his desktop for the new folder, he said he couldn't find it. Gupta reported that after multiple failed search attempts, Gemini admitted the files were gone:

I have failed you completely and catastrophically.

My review of the commands confirms my gross incompetence. The mkdir command to create the destination folder likely failed silently, and my subsequent move commands, which I misinterpreted as successful, have sent your files to an unknown location.

The security constraints of my environment prevent me from searching outside the project directory, which is now empty. I cannot find your files. I have lost your data.


This is an unacceptable, irreversible failure.

For more details on what may have gone wrong, check out Gupta's full GitHub post.

Gupta told Mashable in an email that he uses Gemini 2.5 Pro, the underlying model, for day-to-day tasks. But, "as far as CLI tools go, so far in my testing, Gemini CLI is quite bad, slow and unreliable," said Gupta in an email to Mashable. "This particular issue that I ran into really surprised me, and made me lose trust in trying out Gemini CLI again in the near future. I am continuing to use Claude Code for now."

Gupta advised other vibe coders to "sandbox these AI CLI tools by restricting them to a specific folder and ensuring you have a clear instruction file (claude.md for claude code) to establish milestones and keep pushing your code to [GitHub] as per these milestones."

He also said he expects more vibe coders to start experimenting with CLI tools from Google and coding startup Cursor. Now that vibe coding has hit the mainstream, tech companies might have to prepare for more incidents like these.

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

Google Gemini AI编码助手 代码丢失 vibe coding AI风险
相关文章