A Survey of Vibe Coding with Large Language Models
本文对基于大型语言模型的Vibe编码进行了全面系统的综述,建立了该开发方法的理论基础和实践框架。
更新于 2025-10-15。作者:Yuyao Ge、Lingrui Mei、Zenghao Duan、Tianhao Li、Yujia Zheng、Yiwei Wang、Lexin Wang、Jiayu Yao、Tianyu Liu、Yujun Cai、Baolong Bi、Fangda Guo、Jiafeng Guo、Shenghua Liu、Xueqi Cheng。
中文摘要
大型语言模型(LLMs)的进步推动了从代码生成辅助到自主编码代理的范式转变,从而催生了一种新的开发方法,称为“Vibe Coding”。在这种方法中,开发者通过观察结果来验证AI生成的实现,而不是逐行理解代码。尽管这种新兴范式具有变革潜力,但其有效性仍处于探索阶段,实证研究表明存在意外的工作效率损失和人类-人工智能协作中的基本挑战。为了填补这一空白,本调查提供了对Vibe Coding的LLMs的第一份全面和系统性的回顾,为这种变革性的开发方法建立了理论和实践框架。通过对1000多篇研究论文的系统分析,我们调查了整个Vibe Coding生态系统,包括用于编码的LLMs、基于LLMs的编码代理、编码代理的开发环境以及反馈机制。我们首先将Vibe Coding作为一门正式学科通过一个约束马尔可夫决策过程来正式化,该过程捕捉了人类开发者、软件项目和编码代理之间的动态三元关系。在此基础上,我们将现有的实践归纳为五种不同的开发模型:不受约束的自动化、迭代对话协作、规划驱动、测试驱动和情境增强模型,从而为该领域提供了第一个全面的分类法。关键的是,我们的分析揭示,成功的Vibe Coding不仅取决于代理的能力,还取决于系统性的情境工程、成熟的开发环境和人类-代理协作开发模型。
英文摘要
The advancement of large language models (LLMs) has catalyzed a paradigm shift from code generation assistance to autonomous coding agents, enabling a novel development methodology termed "Vibe Coding" where developers validate AI-generated implementations through outcome observation rather than line-by-line code comprehension. Despite its transformative potential, the effectiveness of this emergent paradigm remains under-explored, with empirical evidence revealing unexpected productivity losses and fundamental challenges in human-AI collaboration. To address this gap, this survey provides the first comprehensive and systematic review of Vibe Coding with large language models, establishing both theoretical foundations and practical frameworks for this transformative development approach. Drawing from systematic analysis of over 1000 research papers, we survey the entire vibe coding ecosystem, examining critical infrastructure components including LLMs for coding, LLM-based coding agent, development environment of coding agent, and feedback mechanisms. We first introduce Vibe Coding as a formal discipline by formalizing it through a Constrained Markov Decision Process that captures the dynamic triadic relationship among human developers, software projects, and coding agents. Building upon this theoretical foundation, we then synthesize existing practices into five distinct development models: Unconstrained Automation, Iterative Conversational Collaboration, Planning-Driven, Test-Driven, and Context-Enhanced Models, thus providing the first comprehensive taxonomy in this domain. Critically, our analysis reveals that successful Vibe Coding depends not merely on agent capabilities but on systematic context engineering, well-established development environments, and human-agent collaborative development models.
解读
一句话总结
本文对基于大型语言模型的Vibe编码进行了全面系统的综述,建立了该开发方法的理论基础和实践框架。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:随着大型语言模型(LLMs)的进步,软件开发的范式从代码生成辅助转变为自主编码代理,出现了称为“Vibe编码”的新开发方法,通过观察结果来验证AI生成的实现,而不是逐行理解代码。
- 现有方案不足:尽管Vibe编码具有变革潜力,但其有效性仍未充分探索,实证研究表明存在意外的工作量损失和人类-人工智能协作的基本挑战。
- 研究目标:为了解决这一差距,本文提供了对基于大型语言模型的Vibe编码的第一次全面和系统性的回顾,为这种变革性的开发方法建立了理论基础和实践框架。
问题2:论文的核心创新点是什么?
- 技术创新:将Vibe编码正式化,通过约束马尔可夫决策过程(Constrained MDP)捕捉人类开发者、软件项目和编码代理之间的动态三元关系。
- 方法改进:将现有实践综合为五种不同的开发模型:无约束自动化、迭代对话协作、规划驱动、测试驱动和上下文增强模型。
- 优势:与现有方法相比,这些模型提供了更系统、更灵活的编码代理管理方法,有助于提高开发效率和代码质量。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:对超过1000篇研究论文进行了系统分析,涵盖了整个Vibe编码生态系统,包括LLMs、基于LLMs的编码代理、编码代理的开发环境和反馈机制。
- 性能提升:通过将现有实践综合为五种不同的开发模型,论文表明Vibe编码的有效性不仅取决于代理的能力,还取决于系统的上下文工程、成熟的开发环境和人类-代理协作开发模型。
- 对比结果:论文分析了不同开发模型的特点和应用,为开发人员提供了选择和实施适当开发策略的指导。
问题4:这个研究的实际应用价值是什么?
- 应用场景:Vibe编码可以应用于各种软件开发场景,包括原型设计、系统维护、复杂项目开发等。
- 实施建议:为了成功实施Vibe编码,需要考虑上下文工程、安全机制和以人为本的设计等方面。
- 局限与展望:尽管Vibe编码具有巨大潜力,但仍存在一些挑战,例如模型的可解释性和安全性。未来的研究应关注这些挑战,并探索更有效的Vibe编码方法。