AI-Generated Code Is Not Reproducible (Yet): An Empirical Study of Dependency Gaps in LLM-Based Coding Agents
Vangala, Bhanu Prakash, Adibifar, Ali, Gehani, Ashish, Malik, Tanu
–arXiv.org Artificial Intelligence
Consider what reproducibility means for AI-generated code. A developer asks an LLM to create a complete sentiThe rise of Large Language Models (LLMs) as coding agentsment analysis web application. The AI generates an imprespromises to accelerate software development, but their im-sive project: backend API files, frontend code, and a requirepact on generated code reproducibility remains largely un-ments.txt For this code to be reproexplored. This paper presents an empirical study investigatducible, another developer should be able to take these filesing whether LLM-generated code can be executed successand specifications, set up a clean environment, install thefully in a clean environment with only OS packages and using listed dependencies, and run the application. But in practice,only the dependencies that the model specifies. We evaluate execution fails in 31.7% of cases. While missing dependen-three state-of-the-art LLM coding agents (Claude Code, OpenAICodex, and Gemini) across 300 projects generated fromcies like ImportError: No module named nltk 100 standardized prompts in Python, JavaScript, and Java.
arXiv.org Artificial Intelligence
Mar-25-2026
- Country:
- North America > United States > Missouri (0.28)
- Genre:
- Research Report > New Finding (0.68)
- Technology: