Understanding Prompt Programming Tasks and Questions

Jenny T. Liang, Chenyang Yang, Agnia Sergeyuk, Travis D. Breaux, Brad A. MyersarXiv 2025 · DOI

Introduction

As Large Language Model (LLM) prompts transition from simple chat interfaces into production codebases, the practice of "prompt engineering" is maturing into prompt programming. This shift introduces complex software engineering challenges. This research identifies a taxonomy of 25 tasks and 51 questions that developers navigate during this process. Crucially, it highlights a significant "support gap": 16 of the most critical developer questions—such as those regarding data representativeness and cross-language code dependencies—currently lack any support from existing research or commercial tools.

The Challenge of Prompt Programming

Building a "prompt program"—software where prompts act as functional components—is an inherently iterative and often opaque process. Unlike traditional code, foundation models (FMs) are "black boxes," making it difficult for developers to plan, debug, or justify changes. To address this, researchers sought to understand the specific information needs of developers to inform the design of future Integrated Development Environments (IDEs) and debugging tools.

Methodology

The study utilized a four-phase mixed-methods approach:

  1. Taxonomy Creation: 16 interviews with experienced prompt programmers to elicit initial questions.
  2. Observational Study: "Think-aloud" sessions with 8 developers on real-world tasks to see questions in action.
  3. Validation Survey: 50 professional developers ranked the frequency and "helpfulness" (impact vs. difficulty) of identified tasks.
  4. Tool Audit: A systematic review of 48 tools (29 research, 19 commercial) to evaluate current support levels.

A Taxonomy of Developer Activities

The researchers categorized developer needs into eight major activity themes, ranging from initial comprehension to managing long-term prompt history. This framework illustrates the lifecycle of a prompt as it moves from initial design through execution and debugging.

Overview of the prompt programming taxonomy, highlighting the transition from comprehension and execution to debugging and history management.

Key Results: The Support Gap

The study's most striking finding is the mismatch between developer needs and tool capabilities. While current tools excel at tracking non-functional metrics like cost and token usage, they often fail to assist with the core logic of prompt development. Out of 51 identified questions, 16 have zero tool support.

Detailed breakdown of tasks and questions, showing frequency of occurrence, perceived helpfulness, and the current lack of tool support for many critical items.

Key insights from the data include:

  • The "Representativeness" Crisis: Developers are deeply concerned about whether their test datasets actually reflect real-world scenarios (Q13). This was rated as the second most important question but remains largely unsupported.
  • Hidden Dependencies: Prompts are rarely isolated; they often depend on external code for data parsing or context (Q10). No existing tools currently track these cross-language dependencies.
  • Internal Logic: Understanding how different prompt components (e.g., instructions vs. few-shot examples) interact was rated as the #1 most important question (Q3), yet it lacks systematic tool support.
  • Manual Debugging: Most prompt programming tasks—including version comparison and fault localization—are still performed manually, often through "eyeballing" outputs or using ad-hoc spreadsheets.

Conclusion and Future Directions

This research provides a roadmap for the next generation of AI development tools. To bridge the identified gaps, future work should focus on:

  • Integrated IDEs: Treating prompts and code as a unified system with shared dependency tracking.
  • Behavioral Retrieval: Enabling developers to search prompt histories based on specific performance trade-offs or model behaviors rather than just keywords.
  • Automated Fault Localization: Developing techniques to automatically identify which specific part of a prompt or change caused a regression in performance.

By addressing these 16 "unanswered" questions, tool builders can transform prompt programming from a manual art into a disciplined engineering practice.

Summary updated

BibTeX
@misc{liang2025understanding,
  author = {Jenny T. Liang and Chenyang Yang and Agnia Sergeyuk and Travis D. Breaux and Brad A. Myers},
  title = {{Understanding Prompt Programming Tasks and Questions}},
  year = {2025},
  eprint = {2507.17264},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.17264},
}
Figure