Table of Contents
Fetching ...

Human-Human-AI Triadic Programming: Uncovering the Role of AI Agent and the Value of Human Partner in Collaborative Learning

Taufiq Daryanto, Xiaohan Ding, Kaike Ping, Lance T. Wilhelm, Yan Chen, Chris Brown, Eugenia H. Rho

TL;DR

This work investigates whether AI in programming should replace or augment human collaboration by introducing a human–human–AI (HHAI) triadic programming setup. Using a within-subjects design with $n=20$ CS students across three conditions (Shared AI, Personal AI, and Human–AI), the study shows that HHAI enhances collaborative learning and social presence relative to a dyadic HAI baseline, while reducing reliance on AI-generated code—most strongly in the Shared AI condition. The authors demonstrate that AI integrated as a peer alongside humans activates socially shared regulation of learning, improving accountability and preserving conversational flow. They derive design implications emphasizing visible AI outputs to peers, calibrated proactivity, and multimodal integrated interfaces to augment rather than automate peer collaboration in educational programming contexts.

Abstract

As AI assistance becomes embedded in programming practice, researchers have increasingly examined how these systems help learners generate code and work more efficiently. However, these studies often position AI as a replacement for human collaboration and overlook the social and learning-oriented aspects that emerge in collaborative programming. Our work introduces human-human-AI (HHAI) triadic programming, where an AI agent serves as an additional collaborator rather than a substitute for a human partner. Through a within-subjects study with 20 participants, we show that triadic collaboration enhances collaborative learning and social presence compared to the dyadic human-AI (HAI) baseline. In the triadic HHAI conditions, participants relied significantly less on AI-generated code in their work. This effect was strongest in the HHAI-shared condition, where participants had an increased sense of responsibility to understand AI suggestions before applying them. These findings demonstrate how triadic settings activate socially shared regulation of learning by making AI use visible and accountable to a human peer, suggesting that AI systems that augment rather than automate peer collaboration can better preserve the learning processes that collaborative programming relies on.

Human-Human-AI Triadic Programming: Uncovering the Role of AI Agent and the Value of Human Partner in Collaborative Learning

TL;DR

This work investigates whether AI in programming should replace or augment human collaboration by introducing a human–human–AI (HHAI) triadic programming setup. Using a within-subjects design with CS students across three conditions (Shared AI, Personal AI, and Human–AI), the study shows that HHAI enhances collaborative learning and social presence relative to a dyadic HAI baseline, while reducing reliance on AI-generated code—most strongly in the Shared AI condition. The authors demonstrate that AI integrated as a peer alongside humans activates socially shared regulation of learning, improving accountability and preserving conversational flow. They derive design implications emphasizing visible AI outputs to peers, calibrated proactivity, and multimodal integrated interfaces to augment rather than automate peer collaboration in educational programming contexts.

Abstract

As AI assistance becomes embedded in programming practice, researchers have increasingly examined how these systems help learners generate code and work more efficiently. However, these studies often position AI as a replacement for human collaboration and overlook the social and learning-oriented aspects that emerge in collaborative programming. Our work introduces human-human-AI (HHAI) triadic programming, where an AI agent serves as an additional collaborator rather than a substitute for a human partner. Through a within-subjects study with 20 participants, we show that triadic collaboration enhances collaborative learning and social presence compared to the dyadic human-AI (HAI) baseline. In the triadic HHAI conditions, participants relied significantly less on AI-generated code in their work. This effect was strongest in the HHAI-shared condition, where participants had an increased sense of responsibility to understand AI suggestions before applying them. These findings demonstrate how triadic settings activate socially shared regulation of learning by making AI use visible and accountable to a human peer, suggesting that AI systems that augment rather than automate peer collaboration can better preserve the learning processes that collaborative programming relies on.
Paper Structure (52 sections, 5 figures, 4 tables)

This paper contains 52 sections, 5 figures, 4 tables.

Figures (5)

  • Figure 1: Integrated Interface to Facilitate Human–Human–AI Triadic Programming.A) Collaborative Code Editor: A live-shared editor where all participants can work together in real time. B) Conversational Interface: Supports dialogue between the two humans and the AI. The AI can also be queried directly through spoken or typed questions (Direct Request). C) Proactive Intervention: The AI agent can proactively intervene in the conversation with contextually relevant suggestions. D) Live Transcription: All spoken input is automatically transcribed using speech-to-text, allowing AI suggestions to be grounded in the ongoing conversation, the typed code, and the given problem. E) Code Run Feedback: Each time the code is executed, the AI analyzes the output and provides debugging tips or improvement suggestions when necessary. F) Code Block Analysis: By right-clicking a code block (e.g., a loop or function), users can request AI feedback that evaluates correctness and suggests improvements.
  • Figure 2: Collaborative Learning Scale (CLS) and Social Presence Questionnaire (SPQ): Both HHAI conditions showed significant differences compared to the HAI condition.
  • Figure 3: A) Proportion of AI-generated code; B) Perceived responsibility for understanding AI suggestions before applying
  • Figure 4: A) Proportion of AI suggestions being used (i.e., used in code, discussed, or followed up) based on annotated events; B) Questionnaire results on participants’ experiences about AI proactivity
  • Figure 5: Mean number of subtasks completed by condition type.