INQUIRING LINE

Why do AI code suggestions that spit out many lines at once break your concentration instead of saving you time?

Why do long multi-line code suggestions disrupt programmer flow?

This explores why long, multi-line AI code completions can break a programmer's concentration rather than help, and what the collection says about the hidden costs of AI that offers code you didn't ask for.


This explores why long, multi-line AI code suggestions can break a programmer's concentration instead of speeding them up. One caveat first: the collection has no study that measures suggestion length directly. What it does have is a set of findings about why unrequested AI output costs programmers attention, and together they suggest an answer: the problem is less the number of lines than the work of checking them.

The closest evidence comes from a study of proactive coding agents, meaning AI that acts without waiting to be asked Do proactive AI coding agents actually disrupt programmer workflow?. Programmers did less work overall, but the agent's interventions broke their workflow. The fix wasn't making the AI do less. It was making the AI's activity visible: presence cues and a shared view of what the agent was working on cut the disruption. Applied to code completions, a long suggestion may be disruptive because it shows up as a block of finished-looking code with no visible reasoning, and the programmer has to stop and work out what it is trying to do.

That reverse-engineering is harder than it sounds, because programmers often don't know what the model was looking at. In a study of Copilot users, many wrongly believed that commenting out code hid it from the model, and most couldn't say which parts of their codebase it could see Do programmers understand what context Copilot actually sees?. If you don't know what the AI based a 20-line suggestion on, you can't quickly judge whether it fits. Each extra line is something else to verify against assumptions you can't see. Code review research shows the same gap at larger scale. Developers rejected most AI review comments, mainly because the AI misunderstood the system's design and context Do developers actually accept AI code review suggestions?. Even suggestions that were technically correct were often turned down because they didn't match how the team writes code Why do developers reject code suggestions that actually work?. Long completions have the same problem: they can be correct and still feel foreign, and judging whether they're acceptable takes effort away from the task.

The less obvious connection is that this is an interface timing problem the collection discusses for generative AI in general. One proposal argues that AI tools should show their anticipated output before you commit, so you can catch mismatches early and steer Can previewing AI output before submission reduce prompt iteration?. A long inline completion does the opposite: it delivers a finished answer all at once, and the only options are to accept it, reject it, or edit it. Research on underspecified coding tasks points the same way. A quick clarifying exchange recovered most of the performance lost to vague instructions, but models rarely asked on their own Can asking for clarification recover lost software engineering performance?. A multi-line suggestion is, in effect, the model guessing your intent instead of checking it.

If the collection's evidence holds, the takeaway is that a long suggestion disrupts flow because it commits to many guesses at once, about your intent, your codebase, and your style, and none of them are visible to you. That points to fixes beyond "make suggestions shorter": show what context the model used, let programmers control that context, and preview or stage suggestions so they can be steered rather than just judged.


Sources 6 notes

Do proactive AI coding agents actually disrupt programmer workflow?

A study of 18 programmers found that proactive AI agents cut user effort compared to prompt-only interfaces, yet caused workflow disruptions. However, visible presence indicators and shared interaction context significantly reduced disruptions and improved programmer awareness of agent activity.

Do programmers understand what context Copilot actually sees?

A 20-person study found widespread misconceptions: participants wrongly believed commenting out code hid it from Copilot, didn't know which codebase information the model could access, and requested explicit syntax to control context scope, like scratchpads or dedicated syntax markers.

Do developers actually accept AI code review suggestions?

A study of 31,073 CodeRabbit reviews across 239 repositories found 56.3% rejected (mostly as false positives), 36.4% accepted, with rejections driven by misunderstanding of system design and code context.

Why do developers reject code suggestions that actually work?

CodeRabbit's rejected evolvability suggestions were valid but dismissed 31.6% of the time due to conflicts with developer preferences, not technical errors. This differs from rejected functional suggestions and reveals a gap between algorithmic correctness and developer acceptance.

Can previewing AI output before submission reduce prompt iteration?

A preprint proposes that GenAI systems need feedforward design—showing anticipated output before prompt submission—to bridge the gulf between user intent and model response. Four key properties (anticipation, disambiguation, direct engagement, reflection) and a detailed LLM UI example demonstrate how live previews can surface misalignments and reduce excessive conversational exchanges.

Show all 6 sources
Can asking for clarification recover lost software engineering performance?

Testing AI agents on ambiguous software engineering tasks showed that live clarification exchanges recover 74–80% of the performance drop caused by incomplete instructions. However, models rarely initiate these queries without explicit prompting, suggesting a training rather than capability gap.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.