Back to search

University of Toronto

Interaction and Cognition in AI-Assisted Programming

Abstract

dc:description.abstract

Programming tools empower people to solve problems, automate tasks, and create new technology. However, the rise of Generative AI is transforming how programming is learned and practiced. While AI can boost productivity by generating code from natural language descriptions, novice learners may over-rely on AI, creating cognitive debt. Learners may struggle to self-regulate their AI use or critically evaluate AI-generated solutions, leading to an illusion of learning that hinders the development of higher-order skills such as computational thinking. These risks also extend to professionals like end-user programmers, who may accept AI-generated solutions without proper verification, increasing the likelihood of errors, reduced control, and the accumulation of technical debt. In this dissertation, we investigate the changing landscape of programming with AI and how to address the challenges it poses for interaction and cognition through scaffolding and learner-centered design. Through a controlled experiment with novice programmers, we first investigate the impact of AI access on short-term learning outcomes. Our results show that for novices with higher prior code-comprehension skills, unmoderated AI access can significantly improve learning outcomes. However, more passive forms of AI use--such as asking the AI to autonomously solve entire tasks during learning--were correlated with reduced learning gains. Next, we explore two pedagogically informed design strategies to mitigate the negative impacts of over-reliance on AI: (1) adding guardrails that prevent AI from generating direct code solutions while still providing instructional support in formal classroom settings, and (2) designing interfaces that require learners to cognitively engage with AI-generated code at various types and levels of engagement. We then shift to end-user programmers solving more complex programming tasks with AI, such as data analysis, and identify challenges including reduced control in conversational AI systems and difficulty verifying AI solutions. Eventually, our design explorations with learners and professionals point to a common solution: AI interaction techniques that involve users in the AI's step-by-step reasoning and problem-solving process, while providing opportunities to inspect the AI's assumptions, verify them, or steer them in different directions. Such approaches can improve short-term verification and control, as well as help preserve higher-order problem-solving and critical thinking skills.

Degree

thesis:*
Department dc:contributor.department
Computer Science
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Kazemitabaar, SeyedMajeed
Advisor dc:contributor.advisor
  • Grossman, Tovi

Subjects

dc:subject × 5

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/1807/153596

Chain of custody

source
Harvested from
University of Toronto
Base URL
utoronto.scholaris.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Kazemitabaar, SeyedMajeed. Interaction and Cognition in AI-Assisted Programming. 2026. https://hdl.handle.net/1807/153596