Abstract
Writing code has been one of the most transformative ways for human societies to translate abstract ideas into tangible technologies. Modern AI is changing this process by enabling experts and non-experts alike to generate code without actually writing it, instead using natural language instructions or "vibe coding". While increasingly popular, the impact of vibe coding on productivity and collaboration, and the role of humans in this process, remains unclear. Here, we introduce a controlled experimental framework for studying collaborative vibe coding and use it to compare human-led, AI-led, and hybrid groups. Across 20 experiments involving 737 human participants, we show that people provide uniquely effective high-level instructions for vibe coding, whereas AI-provided instructions often result in performance collapse. We further demonstrate that hybrid systems perform best when humans lead by providing instructions while evaluation is delegated to AI. Although AI systems can rapidly optimize performance for specific tasks, our work highlights the importance of human guidance in shaping future hybrid societies.
Introduction
The rapid advancement of Large Language Models (LLMs) has popularized "vibe coding," a conversational programming style where users provide high-level guidance rather than writing precise syntax. As AI agents become more autonomous, a critical question emerges: is there a unique advantage to keeping humans in the loop during iterative coding, or can AI pipelines manage themselves? Furthermore, if humans and AI collaborate, how should the labor of instructing, executing, and evaluating be divided? Most prior work focuses on single-turn interactions or offline benchmarks, leaving the dynamics of multi-round, collaborative human-AI coding poorly understood.
Methods
We developed a controlled experimental framework using PsyNet to study multi-round vibe coding. The task required participants to recreate a reference image using Scalable Vector Graphics (SVG) code, providing immediate visual feedback.
The workflow involved two main roles:
- Instructor: Views the current SVG and writes a natural language prompt to improve it.
- Selector: Compares the newly generated SVG to the previous one and keeps the best version.
Code generation was handled by OpenAI's GPT-5. Across 15 iterations, we tested fully human-led, fully AI-led, and hybrid teams. The dataset included 10 reference images and 4,800 generated SVG images, which were subsequently evaluated by 120 independent human raters.
Results
Our findings reveal a stark contrast between human and AI guidance. Human-led teams showed steady improvement across 15 iterations, achieving up to a 27.1% relative improvement in visual similarity scores. Conversely, fully AI-led teams suffered from "performance collapse," where code quality significantly degraded over time ($r=-0.351$).
Key insights include:
- Instructional Quality: Humans provide actionable, goal-oriented instructions (e.g., "make the eyes larger"), whereas AI tends toward exhaustive, granular descriptions that fail to drive strategic progress.
- Hybrid Efficiency: The most effective division of labor occurs when humans act as instructors and AI serves as the selector. This configuration achieved performance comparable to fully human teams, suggesting that while humans must steer the creative direction, evaluation can be successfully offloaded to AI.
- Model Robustness: This failure of AI-led iteration was not limited to GPT-5; other state-of-the-art models like Claude 4.5 Opus and Gemini 3 Pro exhibited similar degradation when tasked with self-instruction.
Discussion
While SVG generation is a simplified visual task, it highlights a fundamental limitation in current LLMs: the inability to maintain strategic, multi-round coordination without human intervention. Future work should explore more complex software engineering tasks and multi-agent mixtures. Ultimately, our results suggest that as we move toward more autonomous AI systems, human guidance remains essential to prevent performance decay and ensure alignment with human goals.
Summary updated