Live in the Loop: Rapid Run-time Feedback for Prompts
Abstract
Programmers formulate prompts for code generation based on their understandings of problem domain and LLM ability to execute instructions. A deficiency in either understanding yields inadequate generated code, requiring programmers to revise their understandings based on deficiencies observed in the generated code. We propose ReFiQ (“Result-first Queries”), a tool that simultaneously offers concrete run-time execution results of multiple generated code variations for one prompt. In an exploratory user study (n=8), we observed that programmers systematically compared those results to identify issues in their understandings, deliberately formulated single prompts to explore a range of options of a domain concept, and were more often encouraged to make a deliberate decision informed by their observations instead of directly applying generated code. Participants in our study required fewer iterations to arrive at a satisfying solution in ReFiQ than in our baseline, GitHub Copilot.
- Venue
- CHI 2026
- Volume
- Proceedings of the 2026 CHI Conference on Human Factors in Computing Systems
- DOI
- 10.1145/3772318.3791731
- https://dl.acm.org/doi/pdf/10.1145/3772318.3791731
- Anthology ID
2026.chi.1422
Cite
@inproceedings{mattis-etal-2026-live,
title = {{Live in the Loop: Rapid Run-time Feedback for Prompts}},
author = {Toni Mattis and Abdullatif Ghajar and Tom Beckmann and Robert Hirschfeld},
booktitle = {Proceedings of the 2026 CHI Conference on Human Factors in Computing Systems},
isbn = {9798400722783},
year = {2026},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
doi = {10.1145/3772318.3791731},
url = {https://doi.org/10.1145/3772318.3791731},
abstract = {Programmers formulate prompts for code generation based on their understandings of problem domain and LLM ability to execute instructions. A deficiency in either understanding yields inadequate generated code, requiring programmers to revise their understandings based on deficiencies observed in the generated code. We propose ReFiQ (“Result-first Queries”), a tool that simultaneously offers concrete run-time execution results of multiple generated code variations for one prompt. In an exploratory user study (n=8), we observed that programmers systematically compared those results to identify issues in their understandings, deliberately formulated single prompts to explore a range of options of a domain concept, and were more often encouraged to make a deliberate decision informed by their observations instead of directly applying generated code. Participants in our study required fewer iterations to arrive at a satisfying solution in ReFiQ than in our baseline, GitHub Copilot.}
}