CoPrompt: Supporting Prompt Sharing and Referring in Collaborative Natural Language Programming

被引:4
作者
Feng, Li [1 ]
Yen, Ryan [2 ]
You, Yuzhe [2 ]
Fan, Mingming [1 ]
Zhao, Jian [2 ]
Lu, Zhicong [3 ]
机构
[1] Hong Kong Univ Sci & Technol, Computat Media & Arts Thrust, Guangzhou, Peoples R China
[2] Univ Waterloo, Sch Comp Sci, Waterloo, ON, Canada
[3] City Univ Hong Kong, Dept Comp Sci, Hong Kong, Peoples R China
来源
PROCEEDINGS OF THE 2024 CHI CONFERENCE ON HUMAN FACTORS IN COMPUTING SYTEMS, CHI 2024 | 2024年
基金
加拿大自然科学与工程研究理事会;
关键词
large language model; collaborative programming; prompt engineering; natural language programming; natural language interface; DOCUMENTATION;
D O I
10.1145/3613904.3642212
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Natural language (NL) programming has become more approachable due to the powerful code-generation capability of large language models (LLMs). This shift to using NL to program enhances collaborative programming by reducing communication barriers and context-switching among programmers from varying backgrounds. However, programmers may face challenges during prompt engineering in a collaborative setting as they need to actively keep aware of their collaborators' progress and intents. In this paper, we aim to investigate ways to assist programmers' prompt engineering in a collaborative context. We first conducted a formative study to understand the workflows and challenges of programmers when using NL for collaborative programming. Based on our findings, we implemented a prototype, CoPrompt, to support collaborative prompt engineering by providing referring, requesting, sharing, and linking mechanisms. Our user study indicates that CoPrompt assists programmers in comprehending collaborators' prompts and building on their collaborators' work, reducing repetitive updates and communication costs.
引用
收藏
页数:21
相关论文
共 96 条
[1]  
Anna Montoya D., 2016, House prices-advanced regression techniques
[2]  
[Anonymous], 1992, P 1992 ACM C COMPUTE, DOI [DOI 10.1145/143457.143468, 10.1145/143457.143468]
[3]  
[Anonymous], 2001, Your wish is my command: Programming by example
[4]  
[Anonymous], 2022 IEEE VIS DAT SC
[5]  
[Anonymous], 2020, 2020 CHI C HUM FACT
[6]  
[Anonymous], 2022, P ACM HUM COMPUT INT
[7]  
[Anonymous], 2023, Copilot: Your AI pair programmer
[8]  
[Anonymous], 1993, Watch What I Do: Programming by Demonstration
[9]   Prompting Is Programming: A Query Language for Large Language Models [J].
Beurer-Kellner, Luca ;
Fischer, Marc ;
Vechev, Martin .
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2023, 7 (PLDI)
[10]   Third-wave HCI, 10 years later - Participation and sharing [J].
Bødker, Susanne .
Interactions, 2015, 22 (05) :24-31