CoPrompt: Supporting Prompt Sharing and Referring in Collaborative Natural Language Programming
Authors
Document Title
CoPrompt: Supporting Prompt Sharing and Referring in Collaborative Natural Language Programming
Document Information
- Subject Area: Human-Computer Interaction (HCI), Natural Language Programming, Collaborative Programming
- Keywords: Large Language Models, Collaborative Programming, Prompt Engineering, Natural Language Programming, User Interface Design
Research Background and Problem
-
Key Issues:
- With the advancement of code generation capabilities driven by Large Language Models (LLMs), natural language programming is becoming an important programming approach. However, in collaborative programming environments, programmers may face significant challenges in prompt engineering, such as difficulty in assessing collaborators' progress, lack of efficient communication methods, and repetitive updates to prompt code.
- During collaborative programming, programmers frequently need to switch contexts, understand collaborators' intentions, and ensure that prompt instructions align with collaborators' results, which increases cognitive workload.
-
Research Significance:
This study aims to address efficiency issues in prompt engineering during collaborative natural language programming. It explores new mechanisms to support collaborative prompt engineering, reducing repetitive updates, improving communication efficiency, and helping programmers better understand and utilize collaborators' work outcomes.
Solution
Proposed System: CoPrompt
-
Core Mechanisms:
- Sharing Mechanism (Sharing): Programmers can easily share intermediate results without interrupting collaborators' workflows.
- Linking Mechanism (Linking): Supports programmers in associating prompts with interactive dependencies, automatically updating related code snippets to reduce repetitive modifications.
- Referring Mechanism (Referring): Provides a method to reference collaborators' prompt content, assisting in generating more accurate code.
- Requesting Mechanism (Requesting): Programmers can initiate requests for collaborators to complete tasks and provide feedback without requiring real-time communication.
-
Implementation Steps:
- Develop a rich text editor that supports generating prompt blocks and code blocks.
- Establish a tree-structured task and prompt manager (Prompt Wiki) to display task hierarchies and track collaboration progress.
- Implement a user interface featuring Message Panel, History View, and Explanation View.
- Integrate a large language model (GPT-4 API) to support prompt generation and automatic code updates.
-
Innovations:
- Supports various functionalities required for collaborative prompt engineering, from understanding collaborators' work to efficiently utilizing and sharing work.
- Provides real-time synchronization and asynchronous collaboration capabilities.
- Reduces communication costs and cognitive workload, enhancing collaboration efficiency.
Research Outcomes
-
Experimental Results:
- User studies show that CoPrompt significantly reduces the number of repetitive code updates in collaborative programming, saving task completion time compared to traditional editors.
- The system helps users understand collaborators' prompt content and progress, significantly lowering cognitive workload and improving work efficiency.
- Demonstrates clear advantages in supporting programmers to utilize collaborators' work, such as generating precise code by referencing collaborators' prompts.
-
Advantages:
- Provides a smoother collaborative programming workflow.
- Supports programmers in simultaneously handling distributed tasks without waiting for collaborators to complete subtasks.
- Reduces the need for repetitive modifications to code or prompt content through automatic synchronization.
-
Limitations and Future Directions:
- The current system design and experimental participants primarily target programmers with LLM experience, and the study does not cover users of all technical levels.
- CoPrompt is more suited for tasks in the data science domain, and general-purpose programming requires further exploration.
- The highly automated design may make some users feel a lack of control over code generation. Future work could optimize the balance between user control and automation.
Conclusion
This paper proposes an innovative tool, CoPrompt, for collaborative natural language programming scenarios, featuring four mechanisms (Sharing, Requesting, Referring, Linking) and multiple user interface functionalities. Experimental results indicate that CoPrompt significantly improves collaborative programming efficiency, reduces programmers' cognitive workload, and facilitates collaborative workflows in prompt engineering. These findings provide valuable insights for the design of future collaborative programming tools.
Research Questions / Practical Problems
Question signals indexed for this paper.
Research Questions
3- In collaborative natural language programming, how can programmers' repetitive modifications and cognitive burden in prompt engineering be reduced?Category: Coding Assistants and Multi-Turn Code SupportSimilar questionsarrow_forward
- How can shared, relay, and reference mechanisms improve programmers' understanding and utilization efficiency of collaborators' work?Category: Coding Assistants and Multi-Turn Code SupportSimilar questionsarrow_forward
- How can prompt engineering tools balance real-time synchronous and asynchronous collaboration to optimize programming efficiency?Category: Coding Assistants and Multi-Turn Code SupportSimilar questionsarrow_forward
Practical Problems
1- Programmers struggle to communicate efficiently and avoid duplicate work in collaborative prompt engineering.Category: Coding Assistants and Multi-Turn Code SupportSimilar questionsarrow_forward
- 71%
Human-Centered AI Communication in Co-Creativity: An Initial Framework and Insights
C&C '25· Human-LLM Collaboration +1
- 67%
Can You Move These Over There? Exploring an LLM-based VR Mover to Support Natural Multi-object Manipulation
UIST '25· Immersion & Presence Research +1
Based on Jaccard similarity of research subtopics & professions (≥60%)