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

Li Feng, Ryan Yen, Yuzhe You, Mingming Fan, Jian Zhao and Zhicong Lu

Abstract

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.

Venue
CHI 2024
Volume
Proceedings of the CHI Conference on Human Factors in Computing Systems
DOI
10.1145/3613904.3642212
PDF
https://dl.acm.org/doi/pdf/10.1145/3613904.3642212
Anthology ID
2024.chi.320

Cite

@inproceedings{feng-etal-2024-coprompt,
    title = {{CoPrompt: Supporting Prompt Sharing and Referring in Collaborative Natural Language Programming}},
    author = {Li Feng and Ryan Yen and Yuzhe You and Mingming Fan and Jian Zhao and Zhicong Lu},
    booktitle = {Proceedings of the CHI Conference on Human Factors in Computing Systems},
    isbn = {9798400703300},
    year = {2024},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3613904.3642212},
    url = {https://doi.org/10.1145/3613904.3642212},
    abstract = {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.}
}