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

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

Research output: Chapters, Conference Papers, Creative and Literary WorksRGC 32 - Refereed conference paper (with host publication)peer-review

8 Citations (Scopus)

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. © 2024 Copyright held by the owner/author(s)
Original languageEnglish
Title of host publicationCHI '24: Proceedings of the CHI Conference on Human Factors in Computing Systems
PublisherAssociation for Computing Machinery
ISBN (Print)9798400703300
DOIs
Publication statusPublished - May 2024
Event2024 CHI Conference on Human Factors in Computing Sytems (CHI 2024): "Surfing the World" - Hawaiʻi Convention Center, Honolulu, United States
Duration: 11 May 202416 May 2024
https://chi2024.acm.org/for-attendees/

Publication series

NameConference on Human Factors in Computing Systems - Proceedings

Conference

Conference2024 CHI Conference on Human Factors in Computing Sytems (CHI 2024)
Country/TerritoryUnited States
CityHonolulu
Period11/05/2416/05/24
Internet address

Funding

This research was partially supported by the 2021 CCF-Tencent Rhino-Bird Research Fund, the Research Matching Grant Scheme (RMGS, Project No. 9229095), 2023 Guangzhou Science and Technology Program City-University Joint Funding Project (Project No. 2023A03J0001), Guangdong Provincial Key Lab of Integrated Communication, Sensing and Computation for Ubiquitous Internet of Things (No.2023B1212010007), and Natural Sciences and Engineering Research Council of Canada (NSERC) Discovery Grant. We thank our reviewers for their constructive feedback and participants for their participation.

Research Keywords

  • collaborative programming
  • large language model
  • natural language interface
  • natural language programming
  • prompt engineering

Fingerprint

Dive into the research topics of 'CoPrompt: Supporting Prompt Sharing and Referring in Collaborative Natural Language Programming'. Together they form a unique fingerprint.

Cite this