Prompting in the Wild: An Empirical Study of Prompt Evolution in Software Repositories
Mahan Tafreshipour, Aaron Imani, Eric Huang, Eduardo Almeida, Thomas, Zimmermann, Iftekhar Ahmed

TL;DR
This paper empirically investigates how developers modify prompts in LLM-integrated software projects, revealing patterns, challenges, and the need for better tools and documentation to improve prompt management and system reliability.
Contribution
It provides the first large-scale empirical analysis of prompt evolution in real-world software repositories, highlighting common practices, challenges, and areas for improvement.
Findings
Most prompt changes are additions or modifications during feature development.
Only 21.9% of prompt changes are documented in commit messages.
Prompt changes can cause logical inconsistencies and misalignments.
Abstract
The adoption of Large Language Models (LLMs) is reshaping software development as developers integrate these LLMs into their applications. In such applications, prompts serve as the primary means of interacting with LLMs. Despite the widespread use of LLM-integrated applications, there is limited understanding of how developers manage and evolve prompts. This study presents the first empirical analysis of prompt evolution in LLM-integrated software development. We analyzed 1,262 prompt changes across 243 GitHub repositories to investigate the patterns and frequencies of prompt changes, their relationship with code changes, documentation practices, and their impact on system behavior. Our findings show that developers primarily evolve prompts through additions and modifications, with most changes occurring during feature development. We identified key challenges in prompt engineering:…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Open Source Software Innovations · Software Engineering Techniques and Practices
