Vibe Coding: An Experiment with Test-Driven Development

📅 2026-07-24
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the suboptimal collaboration between humans and large language models (LLMs) in co-programming, which often leads to poor code quality. To mitigate this issue, the authors propose “ambient coding”—a novel approach that integrates prompt engineering, agile design principles, and human–AI collaboration paradigms into test-driven development (TDD) for the first time. They introduce four distinct interaction modes—individual, collaborative, fully automated, and agent-based—each with a corresponding workflow. Experimental evaluations leveraging structured prompts, Python scripts, and the MetaGPT~X platform demonstrate that the agent mode rapidly generates functionally correct code but tends to introduce redundancy, whereas the collaborative mode significantly enhances both the quality and structure of test suites. This work systematically elucidates how different collaboration paradigms impact code and test quality, offering a new framework for effective human–AI co-programming.
📝 Abstract
Context: Conversational Large Language Models (CLLMs) can automatically generate code by collaborating with users through natural language. However, poor collaboration can lead to poor quality output. Objective: This exploratory study aims to investigate how humans and CLLMs can collaborate as peers through vibe coding, an approach that integrates principles from prompt engineering, agile design, and human-AI co-creation to enhance collaboration. Method: We designed four interaction models representing different collaboration patterns in the software development process: the solo model (human-only development), the collaborative model (human-CLLM collaboration), the fully automated model (development autonomously performed by a CLLM), and the agentic model (development autonomously performed by the MetaGPT~X platform). Based on these models, we implemented corresponding Test-Driven Development (TDD) workflows using structured prompts and Python scripts. We then conducted a controlled pre-experimental study with TDD professionals to compare the solo and collaborative workflows. In addition, we performed repeated exploratory executions of fully automated and agentic workflows on the same development tasks to obtain complementary evidence. Results: Our findings suggest that the choice of interaction model should depend on the development objective. Agentic workflows are best suited for rapid development and functionally correct production code but may introduce additional implementation complexity. However, they may also introduce additional implementation decisions that are not explicitly required by the functional specifications, resulting in untested decision points. In contrast, collaborative workflows produce higher-quality, better-organized test suites. Conclusions: Our work explored how...
Problem

Research questions and friction points this paper is trying to address.

Conversational Large Language Models
human-AI collaboration
code generation
vibe coding
Test-Driven Development
Innovation

Methods, ideas, or system contributions that make the work stand out.

Vibe Coding
Test-Driven Development
Conversational LLMs
Human-AI Collaboration
Agentic Workflow
🔎 Similar Papers
No similar papers found.