REprompt : Prompt Generation for Intelligent Software Development Guided by Requirements Engineering

Junjie Shi, Weisong Sun, Zhenpeng Chen, Zhujun Wu, Xiaohong Chen, Zhi Jin, Yang Liu · 2026

Read REprompt : Prompt Generation for Intelligent Software Development Guided by Requirements Engineering by Junjie Shi, Weisong Sun, Zhenpeng Chen, Zhujun Wu, Xiaohong Chen, Zhi Jin, Yang Liu (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2601-16507.txt.

Introduction

Junjie Shi and coauthors grow prompts for code agents from need texts. Their 2026 preprint, named REprompt, deals with code built with model help. Models now fill code, act as base for agents and aid free code work. Good prompts steer those acts to what users need. Hand prompts oft miss needs hid in long need texts.

Need led growth draws prompts from the need text steps. Drawn prompts tie each code ask to a clear need part. Ties cut drift of code from what was asked for. They also ease checks that code meets each need. The work joins need craft to code agent use.

Catalog record

CREATORJunjie Shi, Weisong Sun, Zhenpeng Chen, Zhujun Wu, Xiaohong Chen, Zhi Jin, Yang Liu
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE63 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2601-16507

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

REprompt : Prompt Generation for Intelligent Software Development Guided by Requirements Engineering Junjie Shi, Weisong Sun, Zhenpeng Chen, Zhujun Wu, Xiaohong Chen, Zhi Jin, Yang Liu Abstract . The development of large language models (LLMs) is transforming software development. LLMs can not only work as code auto-completion tools in an integrated development environment, but also as a foundation model in a coding agent in a vibe-coding scenario. Consequently, prompts become increasingly crucial in driving agent-based intelligent software development as it not only work as displinary of LLM it self, but holder of user requirement. In the dominant conversational paradigm of LLMs ( 26 ; 5 ; 1 ) , prompts are divided into system prompt and user prompt, where the system prompt provides high-level instructions to steer the AI’s behavior and set the context for the entire conversation, and the user prompt represents the input or questions from the human user. However, designing effective prompts remains a highly challenging task, as it requires a deep understanding of both prompt engineering and software engineering, particularly requirements engineering. To reduce the difficulty of prompt construction, a series of automated prompt engineering techniques have been proposed. Nevertheless, these approaches largely neglect the methodological principles of requirements engineering, making them inadequate for generating artifacts that conform to formal requirement specifications in software development scenarios. To address these challenges, we propose REprompt , a multi-agent prompt optimization framework guided by requirements engineering. Inspired by requirements engineering, we treat prompts from user as initial requirements and employ multiple agents to simulate crucial activities in requirements development. Specifically, requirements development consists of four stages: elicitation, analysis, specification, and validation. Correspondingly, REprompt is designed with four stages. To validate the effectiveness of REprompt , we conduct experiments on two tasks: system prompt optimization and user prompt optimization. For the system prompt experiment, we examine whether REprompt can optimize different system prompts. Evaluation is performed using both LLM-as-a-judge and human assessment. In this scenario, REprompt achieves positive improvements across all agents. In LLM-as-a-judge scoring, the optimized role prompts receive scores of up to 4.7 in consistency and 4.5 in communication (out of 5). In human evaluation, we obtain scores of 5.75 in overall user satisfaction and 5.42 in usability (out of 7). These results show that REprompt effectively improves the usability of role prompts. For the user prompt experiment, we use YouWare ( 51 ) , a vibe-coding platform hosting hundreds of thousands of projects, as our test platform. In this scenario, our framework achieves overall satisfaction scores of 6.3 (games subset) and 6.5 (tools subset). Additionally, for the games subset, it achieves 6.17 in usability, 6.4 in information quality, and 6.53 in interface quality (all out of 7), which indicates that REprompt comprehensively optimizes user prompts. 1. Introduction Large language models (LLMs) and LLM-based agents have profoundly transformed software development. Developers can now utilize tools like Copilot ( 44 ) as integrated development environment plugins to accelerate coding or input their requirements into LLM-based coding agents in vibe-coding scenarios ( 34 ) to achieve end-to-end generation of software projects. Prompts play a pivotal role in intelligent software development, as they not only define the role, persona, and behavioral guidelines for LLM and coding agents but also serve as carriers of user requirements. In the dominant conversational paradigm of LLMs ( 26 ; 6 ; 1 ; 32 ) , prompts are structured as role-specific messages, where the system prompt provides high-level instructions to steer the AI’s behavior and set the context for the entire conversation, and the user prompt represents the input or questions from the human user. However, crafting effective prompts for software development is challenging because of the misalignment between naive prompt caused by human intent and fine-grained requirements needed for software development ( 18 ; 39 ) . This indicates the need for dedicated requirements engineering methodologies to refine prompt generation, thereby bridging the gap between users’ vague initial requirements and the well-specified requirement specifications necessary for correct software development. However, existing prompt optimization approaches often naively refine initial prompts along simple dimensions, such as making them more detailed, longer, or safer ( 9 ; 37 ; 50 ) . Therefore, we propose REprompt , a requirements engineering ( 40 ; 15 ) -guided prompt optimization framework that supports the refinement of both system and user prompts in agent-based software development. We posit that prompts in software development can be viewed as a form of software requirements. set up four agents in REprompt , which are Interviewee, Interviewer, CoTer, and Critic. Inspired by the four stages of requirements engineering, which are elicitation, analysis, specification, and validation, we design corresponding phases in REprompt . We implement requirements elicitation stage as interviewing process between Interviewer and Interviewee for interviewing is commonly used in requirements elicitation. Then in requirements analysis, Interviewer will transform interview record into a draft of software requirements specification. Specifically, we reformulate the target output of requirements specification from software requirements specification into a chain-of-thought structure: for user prompts, the chain takes the form of a strictly ordered and dependency-aware programming task list, while for system prompts, we use predefined agent prompt templates. Finally, in the validation stage, Critic agent is employed to evaluate the generated chain-of-thought. To validate effectiveness of REprompt , we conduct experiments on both role prompt optimization and user prompt optimization. In the system prompt experiment, we select a multi-agent architecture example provided within MetaGPT ( 14 ) as our test case since MetaGPT is the first open-source meta-programming framework. This architecture accepts direct user requirements and generates the corresponding product requirement documents (PRDs) and system design documents (SDDs). To demonstrate the effectiveness of REprompt , we independently optimize different agents within this architecture and compare whether REprompt achieves improved results. We employ both LLM-based evaluation and human evaluation as our assessment benchmarks. For LLM-based evaluation, we use an LLM to score the generated documents. For human evaluation, we treat the generated documents as input to YouWare ( 51 ) , a platform for vibe coding that has hosted more than 100,000 projects to date, and relies on human assessors to rate the final software artifacts. Our framework demonstrates consistent improvements across all evaluated agents. For documentation scoring, the optimized role prompts achieves scores of up to 4.7 in consistency and 4.5 in communication (on a 5-point scale). In artifact evaluation, the framework receives scores of 5.75 for overall user satisfaction and 5.42 for usability (on a 7-point scale). These results indicate that REprompt is effective in improving both documentation quality and software artifact usability. For user prompt experiment, we directly optimize the corresponding prompt for each scenario and use the optimized prompt as the input to YouWare. To evaluate the effectiveness of REprompt in practice, we further employ human evaluation to assess the final software artifacts. REprompt achieves overall satisfaction scores of 6.3 on the games subset and 6.5 on the tools subset (also on a 7-point scale). Additionally, within the games subset, REprompt is scored 6.17 in usability, 6.4 in information quality, and 6.53 in interface quality. These evaluation outcomes demonstrate the strong practical effectiveness of REprompt . In summary, this paper makes the following contributions: (1) We incorporate

Read the complete text