Do programmers understand what context Copilot actually sees?
Explores whether users accurately grasp how AI code assistants access and use their codebase context. Matters because misconceptions about model visibility shape how developers write prompts and structure code.
In the same 20-participant grounded-theory study of Copilot use, the authors report "general confusion among participants about how Copilot uses their code to provide suggestions." Some assumed a hard input-length limit — P8 theorized "I think the README is too long and complicated for it to actually extract [helpful information]" — while others (P8, P10, P15, P18) "were unsure about which pieces of information Copilot had extracted about their local codebase." The clearest misconception: "there appeared to be a broad misconception that commenting out code made it invisible to Copilot," with P20 stating they "assumed it wouldn't be aware of code if [they] commented it out" — despite those same participants using comment prompts, and despite four participants (P2, P3, P4, P6) deliberately commenting out Copilot's own generated code hoping to prompt an alternative suggestion.
The paper's recommendation follows directly from this confusion: participants who understood Copilot's context-sensitivity wanted explicit mechanisms to control it, not just better explanations. P15 wished to "emphasize a subset of their code" (such as niche imported libraries) to raise confidence that suggestions were relevant; P4 and P12 wanted to query Copilot with a bare natural-language prompt, "without any code context, just as they would query StackOverflow"; P2 tried to force a specific function by "using the function name in backquotes"; P4 wanted Copilot to show only "syntax examples." The authors conclude that "future tools could give programmers ways to customize the context," for instance "a scratchpad to isolate general, StackOverflow-style prompts from the rest of the codebase."
This sits next to Do programmers switch between fast and slow modes with AI code assistants? (same study): the paper does not state which mode these context-confused participants were in, but the behaviors described — theorizing about input limits, commenting out code to test the model's awareness, trying invented syntax — read as exploration-mode behavior, where validation and prompting are already explicit rather than accepted on faith. It also parallels How should AI interfaces handle the shift from doing to supervising?: the backquote syntax, the StackOverflow-style bare prompt, and the requested scratchpad are all participant-invented substitutes for an intent surface that lets the user state what the agent should and should not attend to, which Copilot in this study did not provide. And it shares a root cause with Do proactive AI coding agents actually disrupt programmer workflow?, where disruption was eased by showing the agent's presence and shared context; here the friction is the mirror image — programmers cannot see what context the agent is already using, and the paper's proposed fix (a scratchpad, dedicated syntax) is a request for the same kind of visibility applied to inputs rather than agent state.
The excerpt does not say how often this confusion changed a participant's outcome — whether misjudging context led to worse suggestions, wasted time, or abandoned attempts — only that the misconception was widespread and that several participants acted on it. It also does not test whether the recommended fixes (a scratchpad, explicit syntax) would resolve the confusion if built, since these are the authors' design recommendations rather than something evaluated in the study. The finding that does follow directly from the data: a code-generating assistant that uses implicit, invisible context creates specific, describable misconceptions in experienced programmers, not just vague unease, and those misconceptions are concrete enough to name as missing product features.
Inquiring lines that read this note 6
This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.
Why does AI assistance boost immediate performance but reduce learning transfer? Do AI coding tools meaningfully improve developer productivity and quality? How should design principles adapt for AI-generated interfaces?Related concepts in this collection 3
This note in its neighbourhood — explore the map, then jump to a related concept in the list below.
Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph
-
Do programmers switch between fast and slow modes with AI code assistants?
When do programmers use AI tools to accelerate existing plans versus exploring new possibilities? Understanding these modes could reveal how to design assistants that support both quick completions and deliberate problem-solving.
same study: this context confusion mainly surfaces in exploration mode, where validation and prompting are already explicit
-
How should AI interfaces handle the shift from doing to supervising?
Nielsen explores what UI architecture allows users to oversee AI work rather than perform it themselves. This matters because intent-based systems fundamentally change the user's role from operator to supervisor.
the requested scratchpad and backquote syntax are ad hoc attempts to build an intent surface the tool does not provide
-
Do proactive AI coding agents actually disrupt programmer workflow?
Proactive AI agents promise to reduce programmer effort, but their impact on workflow interruption is unclear. This study explores whether design choices around timing, visibility, and context can minimize disruption while preserving efficiency gains.
both findings trace user friction to the agent's context or state being invisible to the user
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- Grounded Copilot: How Programmers Interact with Code-Generating Models
- How much does AI impact development speed? An enterprise-based randomized controlled trial
- Assistance or Disruption? Exploring and Evaluating the Design and Trade-offs of Proactive AI Programming Support
- Human-AI Synergy in Agentic Code Review
- Generative AI Uses and Risks for Knowledge Workers in a Science Organization
- Who Controls the Conversation? User Perspectives On Generative AI (LLM) System Prompts
- The Work Behind Delegation: A Framework for Supervising AI Coding Agents
- Exploring Student-AI Interactions in Vibe Coding
Original note title
Copilot users misjudge what context the model can see and want explicit syntax to scope it