Can LLMs be Effective Code Contributors? A Study on Open-source Projects

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Chong, Chun Jie, Ahmed, Muyeed, Zhihao, Yao, Neamtiu, Iulian
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910166142681088
author Chong, Chun Jie
Ahmed, Muyeed
Zhihao
Yao
Neamtiu, Iulian
author_facet Chong, Chun Jie
Ahmed, Muyeed
Zhihao
Yao
Neamtiu, Iulian
contents LLM-generated code is widely used, and the share of committed code produced by LLMs is expected to increase. However, we are not at a point where LLMs can be effective contributors to production code. We present an approach that exposes the shortcomings of LLM generation on such projects, and proposes recommendations; the targets of our study are sizable open-source projects, e.g., FFmpeg and wolfSSL. First, we developed a framework that uses verification and validation to evaluate a given LLM's suitability to fix or add features to an existing project. Second, we apply the framework to 212 commits (bug fixes and small feature improvements) in eight popular open-source projects and three LLMs: GPT-4o, Ministral3, and Qwen3-Coder. The success rate varied from 0% to 60% depending on the project. The LLMs failed in a variety of ways, from generating syntactically incorrect code, to producing code that fails basic (static) verification, or validation via the project's test suite. In particular, the LLMs struggle with generating new code, handling contexts (function or file) outside a certain size range, and in many cases their success is due to parroting code changes they have been trained on.
format Preprint
id arxiv_https___arxiv_org_abs_2604_23340
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Can LLMs be Effective Code Contributors? A Study on Open-source Projects
Chong, Chun Jie
Ahmed, Muyeed
Zhihao
Yao
Neamtiu, Iulian
Software Engineering
LLM-generated code is widely used, and the share of committed code produced by LLMs is expected to increase. However, we are not at a point where LLMs can be effective contributors to production code. We present an approach that exposes the shortcomings of LLM generation on such projects, and proposes recommendations; the targets of our study are sizable open-source projects, e.g., FFmpeg and wolfSSL. First, we developed a framework that uses verification and validation to evaluate a given LLM's suitability to fix or add features to an existing project. Second, we apply the framework to 212 commits (bug fixes and small feature improvements) in eight popular open-source projects and three LLMs: GPT-4o, Ministral3, and Qwen3-Coder. The success rate varied from 0% to 60% depending on the project. The LLMs failed in a variety of ways, from generating syntactically incorrect code, to producing code that fails basic (static) verification, or validation via the project's test suite. In particular, the LLMs struggle with generating new code, handling contexts (function or file) outside a certain size range, and in many cases their success is due to parroting code changes they have been trained on.
title Can LLMs be Effective Code Contributors? A Study on Open-source Projects
topic Software Engineering
url https://arxiv.org/abs/2604.23340